search for: set_modtime_and_accesstim

Displaying 1 result from an estimated 1 matches for "set_modtime_and_accesstim".

2001 Sep 01
3
Patch to make rsync preserve access times
...eserve_times && st->st_mtime != file->modtime) || > + (preserve_access_times && st->st_atime != file->accesstime))) > + { > + /* don't complain about not setting times on directories > + because some filesystems can't do it */ > + if (set_modtime_and_accesstime(fname,file->modtime, > + file->accesstime) != 0 && > + !S_ISDIR(st->st_mode)) { > + rprintf(FERROR,"failed to set times on %s : %s\n", > + fname,strerror(errno)); > + return 0; > + } else { > + updated = 1; > + } > +...