diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-05-11 15:39:50 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-05-11 15:39:50 +0000 |
commit | 0175b5311e921ddfb5f246eacc5c7c5e3b426e1b (patch) | |
tree | 7dfabc7ab2539c2710b5d89acd2582ae8e1e2079 /winsup/cygwin/fhandler.cc | |
parent | 75b5f30fdd7ba21f6ec05644113c45e065f6187c (diff) | |
download | cygnal-0175b5311e921ddfb5f246eacc5c7c5e3b426e1b.tar.gz cygnal-0175b5311e921ddfb5f246eacc5c7c5e3b426e1b.tar.bz2 cygnal-0175b5311e921ddfb5f246eacc5c7c5e3b426e1b.zip |
* fhandler.cc (fhandler_base::open): Set file attributes to correct
value when creating files.
* path.h (class path_conv): Add write accessor for file_attributes.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index ae9bd8a04..bcc43074a 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -631,6 +631,8 @@ fhandler_base::open (int flags, mode_t mode) set_security_attribute (mode, &sa, sd); attr.SecurityDescriptor = sa.lpSecurityDescriptor; } + /* The file attributes are needed for later use in, e.g. fchmod. */ + pc.file_attributes (file_attributes); } status = NtCreateFile (&x, access, &attr, &io, NULL, file_attributes, shared, |