git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f5ba89
)
libsmb: Correctly report error for rename failure
author
Volker Lendecke
<vl@samba.org>
Mon, 12 Dec 2016 15:20:29 +0000
(16:20 +0100)
committer
Jeremy Allison
<jra@samba.org>
Mon, 12 Dec 2016 19:19:10 +0000
(20:19 +0100)
This prevents renaming a file over an existing one with SMB2
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12468
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/cli_smb2_fnum.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/cli_smb2_fnum.c
b/source3/libsmb/cli_smb2_fnum.c
index 325ae7812d90585a9530303aa816eb683e8231e9..5a96b052f669dcfba8172f362ba67df725605f15 100644
(file)
--- a/
source3/libsmb/cli_smb2_fnum.c
+++ b/
source3/libsmb/cli_smb2_fnum.c
@@
-1829,6
+1829,10
@@
fail:
cli_smb2_close_fnum(cli, fnum);
}
+ if (!NT_STATUS_IS_OK(status)) {
+ cli->raw_status = status;
+ }
+
TALLOC_FREE(frame);
return status;
}