* 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:
parent
75b5f30fdd
commit
0175b5311e
|
@ -1,3 +1,9 @@
|
|||
2004-05-10 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* 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.
|
||||
|
||||
2004-05-10 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler.h (class fhandler_socket): Add "owner" status flag.
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -201,6 +201,7 @@ class path_conv
|
|||
DWORD get_devn () {return dev.devn;}
|
||||
short get_unitn () {return dev.minor;}
|
||||
DWORD file_attributes () {return fileattr;}
|
||||
void file_attributes (DWORD new_attr) {fileattr = new_attr;}
|
||||
DWORD drive_type () {return fs.drive_type ();}
|
||||
DWORD fs_flags () {return fs.flags ();}
|
||||
bool fs_has_ea () {return fs.has_ea ();}
|
||||
|
|
Loading…
Reference in New Issue