diff options
author | Christopher Faylor <me@cgf.cx> | 2007-03-01 15:13:47 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2007-03-01 15:13:47 +0000 |
commit | 6e070c257c9026b433cdae7b0ad7f2ba909558bf (patch) | |
tree | b9b2ced0b412b53afd7ae4068de5c604c7db6c71 /winsup/cygwin/fhandler.cc | |
parent | a49625d566c34c895ed2eac3055977bb07c319b7 (diff) | |
download | cygnal-6e070c257c9026b433cdae7b0ad7f2ba909558bf.tar.gz cygnal-6e070c257c9026b433cdae7b0ad7f2ba909558bf.tar.bz2 cygnal-6e070c257c9026b433cdae7b0ad7f2ba909558bf.zip |
* Makefile (DLL_OFILES): Remove ntea.o
* environ.cc (set_ntea): Delete.
(parse_thing): Delete "ntea" setting.
* fhandler.cc (fhandler_base::open): Remove allow_ntea considerations.
(check_posix_perm): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Ditto.
(fhandler_base::open_fs): Ditto.
(fhandler_disk_file::mkdir): Ditto.
* path.cc (symlink_worker): Ditto.
* security.cc (get_file_attribute): Ditto.
(set_file_attribute): Ditto.
* security.h: Remove allow_ntea declaration.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index f92e844c0..33ef6ae4e 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -495,13 +495,11 @@ fhandler_base::open (int flags, mode_t mode) create_options = FILE_OPEN_FOR_BACKUP_INTENT; break; case query_stat_control: - access = READ_CONTROL | FILE_READ_ATTRIBUTES - | (allow_ntea ? FILE_READ_EA : 0); + access = READ_CONTROL | FILE_READ_ATTRIBUTES; create_options = FILE_OPEN_FOR_BACKUP_INTENT; break; case query_write_control: - access = READ_CONTROL | WRITE_OWNER | WRITE_DAC | FILE_WRITE_ATTRIBUTES - | (allow_ntea ? FILE_WRITE_EA : 0); + access = READ_CONTROL | WRITE_OWNER | WRITE_DAC | FILE_WRITE_ATTRIBUTES; create_options = FILE_OPEN_FOR_BACKUP_INTENT | FILE_OPEN_FOR_RECOVERY; break; case query_write_attributes: @@ -1591,11 +1589,6 @@ fhandler_base::fsync () static int check_posix_perm (const char *fname, int v) { - /* ntea is ok for supporting permission bits but it doesn't support - full POSIX security settings. */ - if (v == _PC_POSIX_PERMISSIONS && allow_ntea) - return 1; - if (!allow_ntsec) return 0; |