Commit 2b086e03 authored by Andrew Tridgell's avatar Andrew Tridgell

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 :)
parent 241fc706
...@@ -24,8 +24,9 @@ ...@@ -24,8 +24,9 @@
extern int dry_run; extern int dry_run;
extern int read_only; 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) int do_unlink(char *fname)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment