patch-1.3.71 linux/fs/ncpfs/ioctl.c
Next file: linux/fs/ncpfs/mmap.c
Previous file: linux/fs/ncpfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Sat Mar 2 13:15:35 1996
- Orig file:
v1.3.70/linux/fs/ncpfs/ioctl.c
- Orig date:
Thu Jan 4 21:54:58 1996
diff -u --recursive --new-file v1.3.70/linux/fs/ncpfs/ioctl.c linux/fs/ncpfs/ioctl.c
@@ -1,7 +1,7 @@
/*
* ioctl.c
*
- * Copyright (C) 1995 by Volker Lendecke
+ * Copyright (C) 1995, 1996 by Volker Lendecke
*
*/
@@ -73,6 +73,16 @@
return server->reply_size;
+ case NCP_IOC_CONN_LOGGED_IN:
+
+ if ( (permission(inode, MAY_WRITE) != 0)
+ && (current->uid != server->m.mounted_uid))
+ {
+ return -EACCES;
+ }
+
+ return ncp_conn_logged_in(server);
+
case NCP_IOC_GET_FS_INFO:
if ( (permission(inode, MAY_WRITE) != 0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this