patch-2.1.100 linux/fs/autofs/root.c
Next file: linux/fs/buffer.c
Previous file: linux/fs/attr.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed May 6 10:56:05 1998
- Orig file:
v2.1.99/linux/fs/autofs/root.c
- Orig date:
Mon Apr 6 17:41:00 1998
diff -u --recursive --new-file v2.1.99/linux/fs/autofs/root.c linux/fs/autofs/root.c
@@ -478,7 +478,7 @@
_IOC_NR(cmd) - _IOC_NR(AUTOFS_IOC_FIRST) >= AUTOFS_IOC_COUNT )
return -ENOTTY;
- if ( !autofs_oz_mode(sbi) && !fsuser() )
+ if ( !autofs_oz_mode(sbi) && !capable(CAP_SYS_ADMIN) )
return -EPERM;
switch(cmd) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov