From: Andrew Tridgell Date: Sat, 5 Dec 1998 01:56:45 +0000 (+0000) Subject: paranoia change - treat list_only like read_only and refuse all X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/2b086e033cfcf377d6668ae121a7142766f4a6e8 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 :) --- diff --git a/syscall.c b/syscall.c index 558fe98d..58760664 100644 --- a/syscall.c +++ b/syscall.c @@ -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) {