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:
0b7c6d5
)
vfs_default: use change_to_user_by_fsp() instead of change_to_user()
author
Ralph Boehme
<slow@samba.org>
Mon, 14 Jan 2019 12:54:29 +0000
(13:54 +0100)
committer
Jeremy Allison
<jra@samba.org>
Mon, 14 Jan 2019 18:13:15 +0000
(19:13 +0100)
Cosmetic change.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_default.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_default.c
b/source3/modules/vfs_default.c
index 8d40cd64540a1fe193da3e9f9ffa7c9cec9ebee6..a27d33a6bead6b2c5d1a275b8716c5e5cd84d5d9 100644
(file)
--- a/
source3/modules/vfs_default.c
+++ b/
source3/modules/vfs_default.c
@@
-3177,12
+3177,8
@@
static void vfswrap_getxattrat_done(struct tevent_req *subreq)
/*
* Make sure we run as the user again
*/
- ok = change_to_user(state->dir_fsp->conn,
- state->dir_fsp->vuid);
- if (!ok) {
- smb_panic("Can't change to user");
- return;
- }
+ ok = change_to_user_by_fsp(state->dir_fsp);
+ SMB_ASSERT(ok);
ret = pthreadpool_tevent_job_recv(subreq);
TALLOC_FREE(subreq);