git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e8597a
)
durable reconnect: fix return code if SMB_VFS_OPEN failed.
author
Michael Adam
<obnox@samba.org>
Sat, 18 Feb 2012 15:38:57 +0000
(16:38 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 10 May 2012 16:41:53 +0000
(18:41 +0200)
source3/smbd/smb2_create.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_create.c
b/source3/smbd/smb2_create.c
index 4fdb52e91ebbea5200ef387e4e169f9dcea732e8..93edc345673c6c2cde83e01b1f3230db13835208 100644
(file)
--- a/
source3/smbd/smb2_create.c
+++ b/
source3/smbd/smb2_create.c
@@
-539,8
+539,8
@@
DEBUG(0, ("OBNOX - durable_reconnect: new fsp created (%s:%s)\n", __location__,
sharemode_lock->data->share_modes[0].flags,
0 /* mode */);
if (fsp->fh->fd == -1) {
- /* ... */
- return
NT_STATUS_UNSUCCESSFUL; // TODO ERROR CODE?
+ status = map_nt_error_from_unix(errno);
+ return
status;
}
/* - release the sharemode lock: this writes the changes */