git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bd2394
)
r21643: Put the correct bits on the wire for posix_mkdir.
author
Jeremy Allison
<jra@samba.org>
Thu, 1 Mar 2007 22:15:30 +0000
(22:15 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:18:20 +0000
(12:18 -0500)
We're not yet deleting open files on unlink. Investigating...
Jeremy.
(This used to be commit
334b34f131578c2a889caa90aa2425f41883cafd
)
source3/libsmb/clifile.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clifile.c
b/source3/libsmb/clifile.c
index ebace8f963a52ebe95c4d957e0c96352b9ffee1c..6d7a7dfb6f253d3a857352575b4e69fa1f7a5d74 100644
(file)
--- 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