]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Mark executable files as executable on ncpfs
authorPetr Vandrovec <vandrove@vc.cvut.cz>
Wed, 20 Nov 2002 04:02:27 +0000 (20:02 -0800)
committerPetr Vandrovec <vandrove@vc.cvut.cz>
Wed, 20 Nov 2002 04:02:27 +0000 (20:02 -0800)
* Executable files on ncpfs are marked by combination of SHARED and
  SYSTEM attribute, not by SYSTEM attribute alone.

  After this change gcc output is really marked executable on ncpfs.

fs/ncpfs/dir.c

index 58d2fbd70556158eb785ce6b84aaa90785b7cdb1..8b05f3f5bd4760510220079935bca4b7fd92f6e2 100644 (file)
@@ -909,7 +909,7 @@ int ncp_create_new(struct inode *dir, struct dentry *dentry, int mode,
        if (S_ISREG(mode) && 
            (server->m.flags & NCP_MOUNT_EXTRAS) && 
            (mode & S_IXUGO))
-               attributes |= aSYSTEM;
+               attributes |= aSYSTEM | aSHARED;
        
        result = ncp_open_create_file_or_subdir(server, dir, __name,
                                OC_MODE_CREATE | OC_MODE_OPEN | OC_MODE_REPLACE,