Commit b51c0c92 authored by Petr Vandrovec's avatar Petr Vandrovec

[PATCH] Mark executable files as executable on ncpfs

* 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.
parent bb0d3f5d
...@@ -909,7 +909,7 @@ int ncp_create_new(struct inode *dir, struct dentry *dentry, int mode, ...@@ -909,7 +909,7 @@ int ncp_create_new(struct inode *dir, struct dentry *dentry, int mode,
if (S_ISREG(mode) && if (S_ISREG(mode) &&
(server->m.flags & NCP_MOUNT_EXTRAS) && (server->m.flags & NCP_MOUNT_EXTRAS) &&
(mode & S_IXUGO)) (mode & S_IXUGO))
attributes |= aSYSTEM; attributes |= aSYSTEM | aSHARED;
result = ncp_open_create_file_or_subdir(server, dir, __name, result = ncp_open_create_file_or_subdir(server, dir, __name,
OC_MODE_CREATE | OC_MODE_OPEN | OC_MODE_REPLACE, OC_MODE_CREATE | OC_MODE_OPEN | OC_MODE_REPLACE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment