git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3: smbd: rename - missing early error exit if source and destination prefixes are...
[sfrench/samba-autobuild/.git]
/
source3
/
smbd
/
reply.c
diff --git
a/source3/smbd/reply.c
b/source3/smbd/reply.c
index 6b16458e19cad3df3b964bd4c5c88d07fbf5110d..9504d1b3039e0df4f94282688fea8861b61395bd 100644
(file)
--- a/
source3/smbd/reply.c
+++ b/
source3/smbd/reply.c
@@
-6769,6
+6769,7
@@
NTSTATUS rename_internals_fsp(connection_struct *conn,
if (rename_path_prefix_equal(fsp->fsp_name, smb_fname_dst)) {
status = NT_STATUS_ACCESS_DENIED;
+ goto out;
}
lck = get_existing_share_mode_lock(talloc_tos(), fsp->file_id);