git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8e7c4b
)
Check ro in set_create_time() for Cygwin too.
author
Wayne Davison
<wayne@opencoder.net>
Sat, 2 Oct 2021 18:39:41 +0000
(11:39 -0700)
committer
Wayne Davison
<wayne@opencoder.net>
Sat, 2 Oct 2021 18:39:41 +0000
(11:39 -0700)
syscall.c
patch
|
blob
|
history
diff --git
a/syscall.c
b/syscall.c
index bf0de8ba41051168c8e4fcd5a7aa138f5efd655e..fe79fe014fe4c5d6f2744c8bf3f56d2f0609c871 100644
(file)
--- a/
syscall.c
+++ b/
syscall.c
@@
-427,13
+427,14
@@
time_t get_create_time(const char *path, STRUCT_STAT *stp)
int set_create_time(const char *path, time_t crtime)
{
+ if (dry_run) return 0;
+ RETURN_ERROR_IF_RO_OR_LO;
+
+ {
#ifdef HAVE_GETATTRLIST
struct attrlist attrList;
struct timespec ts;
- if (dry_run) return 0;
- RETURN_ERROR_IF_RO_OR_LO;
-
ts.tv_sec = crtime;
ts.tv_nsec = 0;
@@
-462,6
+463,7
@@
int set_create_time(const char *path, time_t crtime)
CloseHandle(handle);
return ok ? 0 : -1;
#endif
+ }
}
#endif