diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-07-24 22:42:16 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-07-24 22:42:16 +0000 |
commit | 834518eddd66c926b8aac7aa2b7024639417d6a2 (patch) | |
tree | daf3b9c52d746ba92a1bcbe0c6fb08a74f21cc33 /source3/smbd | |
parent | 7950c5e87082f4292780b0b1571c5111b291e39e (diff) | |
download | samba-834518eddd66c926b8aac7aa2b7024639417d6a2.tar.gz samba-834518eddd66c926b8aac7aa2b7024639417d6a2.tar.bz2 samba-834518eddd66c926b8aac7aa2b7024639417d6a2.zip |
loadparm.c: Changed default create mask to 755 to support MAP_ARCHIVE.
server.c: Added check for MAP_ARCHIVE before we set archive bit.
Jeremy (jallison@whistle.com)
(This used to be commit d21a166277776f6750b7bcc3c4f9073cce17eacb)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 30a3027de9..1b961ab7c7 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -194,7 +194,7 @@ int dos_mode(int cnum,char *path,struct stat *sbuf) result |= aRONLY; } - if ((sbuf->st_mode & S_IXUSR) != 0) + if (MAP_ARCHIVE(cnum) && ((sbuf->st_mode & S_IXUSR) != 0)) result |= aARCH; if (MAP_SYSTEM(cnum) && ((sbuf->st_mode & S_IXGRP) != 0)) |