diff options
| author | Andrew Tridgell <tridge@samba.org> | 1998-03-24 06:39:16 +0000 |
|---|---|---|
| committer | Andrew Tridgell <tridge@samba.org> | 1998-03-24 06:39:16 +0000 |
| commit | 7308bd66e0d5e5d2d04e41b0052879b4f3283109 (patch) | |
| tree | 98d730972f553bd47040d2ecc057944721ec7258 /syscall.c | |
| parent | 0d0e2e93e81a650898c1a5b332cef6db90f2dece (diff) | |
| download | android_external_rsync-7308bd66e0d5e5d2d04e41b0052879b4f3283109.tar.gz android_external_rsync-7308bd66e0d5e5d2d04e41b0052879b4f3283109.tar.bz2 android_external_rsync-7308bd66e0d5e5d2d04e41b0052879b4f3283109.zip | |
added chmod() and chown() to syscall.c
Diffstat (limited to 'syscall.c')
| -rw-r--r-- | syscall.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -42,6 +42,12 @@ int do_link(char *fname1, char *fname2) return link(fname1, fname2); } +int do_lchown(const char *path, uid_t owner, gid_t group) +{ + if (dry_run) return 0; + return lchown(path, owner, group); +} + int do_mknod(char *pathname, mode_t mode, dev_t dev) { if (dry_run) return 0; @@ -59,3 +65,9 @@ int do_open(char *pathname, int flags, mode_t mode) if (dry_run) return -1; return open(pathname, flags, mode); } + +int do_chmod(const char *path, mode_t mode) +{ + if (dry_run) return 0; + return chmod(path, mode); +} |
