diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2017-07-24 11:00:45 +1200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2017-07-31 11:31:12 +0200 |
commit | 05231408b4db97f9223f9586d3a51435ba5a8d6f (patch) | |
tree | 3e2f06d0582393a6136ba102c041f83367cc6532 /auth/gensec | |
parent | eb6e82035566dfb44e1bfc6d6eec383ad0ba66b9 (diff) | |
download | samba-05231408b4db97f9223f9586d3a51435ba5a8d6f.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>
(cherry picked from commit 1898096c7ecef4c323b14b7cf30db4283386f913)
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; |