diff options
author | Stefan Metzmacher <metze@samba.org> | 2019-07-19 11:14:13 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-09-11 19:59:34 +0000 |
commit | 5da24aa18e9c0ff6f2852b5421945111ef5c6b2b (patch) | |
tree | f5777d28bbb00a75986797f175585ebda5a8e2dc /source3/utils | |
parent | 15699475d6031dd0ed5cd24e9915c574b35a233b (diff) | |
download | samba-5da24aa18e9c0ff6f2852b5421945111ef5c6b2b.tar.gz |
smbd: rename [un]become_user*() to [un]become_user_without_service*()
We should make the behavior change (that gives up some protection)
more obvious, by changing the function names.
At least some OEMs have patches relying on the 4.9/4.10 behaviour
and we want them to detect that they have to do more work when they
need to change directories.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_vfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/utils/net_vfs.c b/source3/utils/net_vfs.c index eca8b5f136e..c9e115292b3 100644 --- a/source3/utils/net_vfs.c +++ b/source3/utils/net_vfs.c @@ -186,9 +186,11 @@ static int net_vfs_init(struct net_context *c, int argc, const char **argv) state.conn_tos->conn->read_only = false; file_init(state.conn_tos->conn->sconn); - ok = become_user_by_session(state.conn_tos->conn, state.session_info); + ok = become_user_without_service_by_session(state.conn_tos->conn, + state.session_info); if (!ok) { - fprintf(stderr, "become_user_by_session failed\n"); + fprintf(stderr, + "become_user_without_service_by_session failed\n"); goto done; } |