diff options
| author | Andrew Tridgell <tridge@samba.org> | 1998-12-05 01:56:45 +0000 |
|---|---|---|
| committer | Andrew Tridgell <tridge@samba.org> | 1998-12-05 01:56:45 +0000 |
| commit | 2b086e033cfcf377d6668ae121a7142766f4a6e8 (patch) | |
| tree | 9a048400721f11e7aef991c8cb19f3f43778872a /syscall.c | |
| parent | 241fc706a9f41e1f3168d99d51e6a5d746275867 (diff) | |
| download | android_external_rsync-2b086e033cfcf377d6668ae121a7142766f4a6e8.tar.gz android_external_rsync-2b086e033cfcf377d6668ae121a7142766f4a6e8.tar.bz2 android_external_rsync-2b086e033cfcf377d6668ae121a7142766f4a6e8.zip | |
paranoia change - treat list_only like read_only and refuse all
syscalls that might change the filesystem. This shouldn't be needed,
but I like paranoid coding :)
Diffstat (limited to 'syscall.c')
| -rw-r--r-- | syscall.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -24,8 +24,9 @@ extern int dry_run; extern int read_only; +extern int list_only; -#define CHECK_RO if (read_only) {errno = EROFS; return -1;} +#define CHECK_RO if (read_only || list_only) {errno = EROFS; return -1;} int do_unlink(char *fname) { |
