From 2b086e033cfcf377d6668ae121a7142766f4a6e8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 5 Dec 1998 01:56:45 +0000 Subject: [PATCH] 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 :) --- syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.34.1