* 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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user