summaryrefslogtreecommitdiff
path: root/rsync.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-03-24 06:39:16 +0000
committerAndrew Tridgell <tridge@samba.org>1998-03-24 06:39:16 +0000
commit7308bd66e0d5e5d2d04e41b0052879b4f3283109 (patch)
tree98d730972f553bd47040d2ecc057944721ec7258 /rsync.c
parent0d0e2e93e81a650898c1a5b332cef6db90f2dece (diff)
downloadrsync-7308bd66e0d5e5d2d04e41b0052879b4f3283109.tar.gz
added chmod() and chown() to syscall.c
Diffstat (limited to 'rsync.c')
-rw-r--r--rsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rsync.c b/rsync.c
index 1be378f6..45604551 100644
--- a/rsync.c
+++ b/rsync.c
@@ -223,7 +223,7 @@ static int set_perms(char *fname,struct file_struct *file,struct stat *st,
if (preserve_perms && !S_ISLNK(st->st_mode) &&
st->st_mode != file->mode) {
updated = 1;
- if (chmod(fname,file->mode) != 0) {
+ if (do_chmod(fname,file->mode) != 0) {
fprintf(FERROR,"failed to set permissions on %s : %s\n",
fname,strerror(errno));
return 0;
@@ -234,7 +234,7 @@ static int set_perms(char *fname,struct file_struct *file,struct stat *st,
if ((am_root && preserve_uid && st->st_uid != file->uid) ||
(preserve_gid && st->st_gid != file->gid)) {
updated = 1;
- if (lchown(fname,
+ if (do_lchown(fname,
(am_root&&preserve_uid)?file->uid:-1,
preserve_gid?file->gid:-1) != 0) {
if (verbose>1 || preserve_uid)