patch-2.4.1 linux/fs/ncpfs/dir.c
Next file: linux/fs/ncpfs/sock.c
Previous file: linux/fs/inode.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Sat Jan 20 08:51:51 2001
- Orig file:
v2.4.0/linux/fs/ncpfs/dir.c
- Orig date:
Wed Nov 8 19:01:34 2000
diff -u --recursive --new-file v2.4.0/linux/fs/ncpfs/dir.c linux/fs/ncpfs/dir.c
@@ -871,6 +871,12 @@
goto out;
error = -EACCES;
+
+ if (S_ISREG(mode) &&
+ (server->m.flags & NCP_MOUNT_EXTRAS) &&
+ (mode & S_IXUGO))
+ attributes |= aSYSTEM;
+
result = ncp_open_create_file_or_subdir(server, dir, __name,
OC_MODE_CREATE | OC_MODE_OPEN | OC_MODE_REPLACE,
attributes, AR_READ | AR_WRITE, &finfo);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)