X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a926daecbf3b31efb68e309e9d522a4fd01691f2..0503f06089b89aa4166d6ced8d5901ad6a112c41:/syscall.c 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) {