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 :)
This commit is contained in:
Andrew Tridgell committed 1998-12-05 01:56:45 +00:00
1 parent 241fc706a9
commit 2b086e033c
1 file changed
+2 -1
+2 -1
View File
@@ -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)
{