* 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.
This commit is contained in:
Corinna Vinschen
2004-05-11 15:39:50 +00:00
parent 75b5f30fdd
commit 0175b5311e
3 changed files with 9 additions and 0 deletions

View File

@@ -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,