Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.1 /fs/ncpfs/dir.c

Filename:/fs/ncpfs/dir.c
Lines Added:6
Lines Deleted:0
Also changed in: (Previous) 2.4.1-pre12  2.4.1-pre11  2.4.1-pre10  2.4.0-ac12  2.4.0-test11  2.4.0-test8 
(Following) 2.4.1-ac9  2.4.1-ac10  2.4.1-ac11  2.4.1-ac12  2.4.1-ac13  2.4.1-ac14 

Location
[  2.4.1
  [  fs
    [  ncpfs
       o  dir.c

Patch

diff -u --recursive --new-file v2.4.0/linux/fs/ncpfs/dir.c linux/fs/ncpfs/dir.c
--- v2.4.0/linux/fs/ncpfs/dir.c   Wed Nov  8 19:01:34 2000
+++ linux/fs/ncpfs/dir.c   Sat Jan 20 08:51:51 2001
@@ -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);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.