mirror of
https://github.com/samba-team/samba.git
synced 2024-12-31 17:18:04 +03:00
r2916: longhorn client doesn't bother setting the directory bit in ntcreatex
when opening directories. This change allows samba4 server to work with longhorn client.
This commit is contained in:
parent
9560a6c8cc
commit
4a8b0302ef
@ -110,7 +110,12 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs,
|
||||
#define O_DIRECTORY 0
|
||||
#endif
|
||||
|
||||
if (io->generic.in.create_options & NTCREATEX_OPTIONS_DIRECTORY) {
|
||||
if ((io->generic.in.create_options & NTCREATEX_OPTIONS_DIRECTORY) &&
|
||||
!(name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY)) {
|
||||
return NT_STATUS_NOT_A_DIRECTORY;
|
||||
}
|
||||
|
||||
if (name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY) {
|
||||
flags = O_RDONLY | O_DIRECTORY;
|
||||
if (pvfs->flags & PVFS_FLAG_READONLY) {
|
||||
goto do_open;
|
||||
|
Loading…
Reference in New Issue
Block a user