diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-08-27 11:27:57 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-09-11 18:46:08 +1000 |
commit | eb8e3155dee3e4258a603da61a9e7822503cd8dd (patch) | |
tree | 0a36829633536a130978de78c91ec6cf9bb1db66 /source3 | |
parent | cdda15c062369d94bc468dce7b541ea505d664e5 (diff) | |
download | samba-eb8e3155dee3e4258a603da61a9e7822503cd8dd.tar.gz samba-eb8e3155dee3e4258a603da61a9e7822503cd8dd.tar.bz2 samba-eb8e3155dee3e4258a603da61a9e7822503cd8dd.zip |
libcli/privileges Simplify get_privilege_luid() to return just the enum
As Samba only deals with the lower 32 bits of the LUID, just return those
and let the LSA layer deal with the upper 0 bits.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_lsa_nt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index 2f7e975b82..449b5c894f 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -1497,10 +1497,8 @@ NTSTATUS _lsa_EnumPrivs(struct pipes_struct *p, init_lsa_StringLarge(&entries[i].name, privs[i].name); - luid = get_privilege_luid( &privs[i].privilege_mask ); - - entries[i].luid.low = luid.luid.low; - entries[i].luid.high = luid.luid.high; + entries[i].luid.low = get_privilege_luid( &privs[i].privilege_mask ); + entries[i].luid.high = 0; } } |