diff options
author | Gerald Carter <jerry@samba.org> | 2001-05-10 15:47:28 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2001-05-10 15:47:28 +0000 |
commit | 6cbce33ff8811b06056ce33248ea5ff3e254b45c (patch) | |
tree | 4a4b6fae94d0ec55a1c3d8fec6d2b4edb796ef2d /source | |
parent | 46518832a1c73045ffc44fcae63e168a51477c18 (diff) | |
download | samba-6cbce33ff8811b06056ce33248ea5ff3e254b45c.tar.gz samba-6cbce33ff8811b06056ce33248ea5ff3e254b45c.tar.xz samba-6cbce33ff8811b06056ce33248ea5ff3e254b45c.zip |
forgot to merge this one from HEAD as well
Diffstat (limited to 'source')
-rw-r--r-- | source/lib/util_sid.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/lib/util_sid.c b/source/lib/util_sid.c index de86b956c37..70341507cb7 100644 --- a/source/lib/util_sid.c +++ b/source/lib/util_sid.c @@ -445,6 +445,19 @@ BOOL sid_split_rid(DOM_SID *sid, uint32 *rid) } /***************************************************************** + Return the last rid from the end of a sid +*****************************************************************/ + +BOOL sid_peek_rid(DOM_SID *sid, uint32 *rid) +{ + if (sid->num_auths > 0) { + *rid = sid->sub_auths[sid->num_auths - 1]; + return True; + } + return False; +} + +/***************************************************************** Copies a sid *****************************************************************/ |