From 0175b5311e921ddfb5f246eacc5c7c5e3b426e1b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 11 May 2004 15:39:50 +0000 Subject: * 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. --- winsup/cygwin/fhandler.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/fhandler.cc') 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, -- cgit v1.2.3