summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-07-14 20:22:03 +0000
committerCorinna Vinschen <corinna@vinschen.de>2008-07-14 20:22:03 +0000
commite2406d71aa6a1b632e67f7cd1e53c7d38533cec6 (patch)
treece6d14a7419c4ac381b3e734c91be6018474c9bd /winsup/cygwin/path.h
parentbf216dcad6ff26bc9c160402da639fdc89614fb4 (diff)
downloadcygnal-e2406d71aa6a1b632e67f7cd1e53c7d38533cec6.tar.gz
cygnal-e2406d71aa6a1b632e67f7cd1e53c7d38533cec6.tar.bz2
cygnal-e2406d71aa6a1b632e67f7cd1e53c7d38533cec6.zip
Throughout drop allow_ntsec and allow_smbntsec handling.
* environ.cc (set_ntsec): Remove. (set_smbntsec): Remove. (known): Remove ntsec and smbntsec options. * external.cc (check_ntsec): Return true if no filename is given. * mount.cc (oopts): Add "acl" and "noacl" options. Set MOUNT_NOACL flag accordingly. (fillout_mntent): Handle MOUNT_NOACL flag. * path.h (enum path_types): Add PATH_NOACL. * security.cc (allow_ntsec): Remove. (allow_smbntsec): Remove. * security.h (allow_ntsec): Drop declaration. (allow_smbntsec): Drop declaration. * include/sys/mount.h (MOUNT_NOACL): Define.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index 513d7e80d..2db254e58 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -80,6 +80,7 @@ enum path_types
PATH_CYGWIN_EXEC = MOUNT_CYGWIN_EXEC,
PATH_ENC = MOUNT_ENC,
PATH_RO = MOUNT_RO,
+ PATH_NOACL = MOUNT_NOACL,
PATH_ALL_EXEC = (PATH_CYGWIN_EXEC | PATH_EXEC),
PATH_NO_ACCESS_CHECK = PC_NO_ACCESS_CHECK,
PATH_LNK = 0x01000000,
@@ -148,7 +149,7 @@ class path_conv
bool case_clash;
bool isremote () const {return fs.is_remote_drive ();}
- bool has_acls () const {return fs.has_acls (); }
+ bool has_acls () const {return !(path_flags & PATH_NOACL) && fs.has_acls (); }
bool hasgood_inode () const {return fs.hasgood_inode (); }
bool isgood_inode (__ino64_t ino) const;
int has_symlinks () const {return path_flags & PATH_HAS_SYMLINKS;}