diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2017-07-24 11:00:45 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-07-24 23:29:22 +0200 |
commit | 1898096c7ecef4c323b14b7cf30db4283386f913 (patch) | |
tree | a7a90f87774e5a51cf58a1a4d08898929f3e4696 /auth/gensec | |
parent | 6ab9f789ff6e6328cf222fdb1a39457af7ed58b4 (diff) | |
download | samba-1898096c7ecef4c323b14b7cf30db4283386f913.tar.gz |
rpc: use symbolic constant to replace /root/ncalrpc_as_system
Modified to use constant AS_SYSTEM_MAGIC_PATH_TOKEN instead of string literal
"/root/ncalrpc_as_system"
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12865
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'auth/gensec')
-rw-r--r-- | auth/gensec/ncalrpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/gensec/ncalrpc.c b/auth/gensec/ncalrpc.c index f28a1c43b49..70b3bb5ea39 100644 --- a/auth/gensec/ncalrpc.c +++ b/auth/gensec/ncalrpc.c @@ -203,7 +203,7 @@ static NTSTATUS gensec_ncalrpc_update_internal( return NT_STATUS_LOGON_FAILURE; } - cmp = strcmp(unix_path, "/root/ncalrpc_as_system"); + cmp = strcmp(unix_path, AS_SYSTEM_MAGIC_PATH_TOKEN); TALLOC_FREE(unix_path); if (cmp != 0) { state->step = GENSEC_NCALRPC_ERROR; |