git.samba.org
/
asn
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d003f2f
)
smbd: Convert change_dir_owner_to_parent to synthetic_smb_fname
author
Volker Lendecke
<vl@samba.org>
Mon, 15 Apr 2013 09:21:09 +0000
(11:21 +0200)
committer
Jeremy Allison
<jra@samba.org>
Wed, 17 Apr 2013 21:50:01 +0000
(14:50 -0700)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index cbbd4e3d2fd69c203a204f68d6d2b5292e661028..2587d0966f88fe72d1337326cd153c7767b743bc 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-489,9
+489,9
@@
NTSTATUS change_dir_owner_to_parent(connection_struct *conn,
goto chdir;
}
- s
tatus = create_synthetic_smb_fname(ctx, ".", NULL, NULL,
- &smb_fname_cwd);
- if (!NT_STATUS_IS_OK(status)) {
+ s
mb_fname_cwd = synthetic_smb_fname(ctx, ".", NULL, NULL);
+ if (smb_fname_cwd == NULL) {
+ status = NT_STATUS_NO_MEMORY;
goto chdir;
}