vfs_default: use change_to_user_by_fsp() instead of change_to_user()
authorRalph Boehme <slow@samba.org>
Mon, 14 Jan 2019 12:54:29 +0000 (13:54 +0100)
committerJeremy 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

index 8d40cd64540a1fe193da3e9f9ffa7c9cec9ebee6..a27d33a6bead6b2c5d1a275b8716c5e5cd84d5d9 100644 (file)
@@ -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);