summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-01 22:15:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:20 -0500
commit6b8e85866e761752fe87023285ad0294f362bd0d (patch)
tree154b2a4b80f79aedac85fffec28ca72b051c3e78 /source3/libsmb
parent3bd2394b20723809b0736bb8bd6d2340a811471d (diff)
downloadsamba-6b8e85866e761752fe87023285ad0294f362bd0d.tar.gz
samba-6b8e85866e761752fe87023285ad0294f362bd0d.tar.bz2
samba-6b8e85866e761752fe87023285ad0294f362bd0d.zip
r21643: Put the correct bits on the wire for posix_mkdir.
We're not yet deleting open files on unlink. Investigating... Jeremy. (This used to be commit 334b34f131578c2a889caa90aa2425f41883cafd)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clifile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index ebace8f963..6d7a7dfb6f 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -1783,8 +1783,8 @@ static uint32 open_flags_to_wire(int flags)
case O_RDWR:
ret |= SMB_O_RDWR;
break;
- case O_RDONLY:
default:
+ case O_RDONLY:
ret |= SMB_O_RDONLY;
break;
}
@@ -1811,6 +1811,7 @@ static uint32 open_flags_to_wire(int flags)
#endif
#if defined(O_DIRECTORY)
if (flags & O_DIRECTORY) {
+ ret &= ~(SMB_O_RDONLY|SMB_O_RDWR|SMB_O_WRONLY);
ret |= SMB_O_DIRECTORY;
}
#endif