summaryrefslogtreecommitdiff
path: root/source/lib/util_sid.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-04-23 09:19:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:38 -0500
commit805f01464f3feb30725dbce1f90d4296380dd796 (patch)
tree400778fe72d85edf3d5173866e1979b8c1ae3630 /source/lib/util_sid.c
parent3ef6181696d83cc4ebcc3722e6b45665146bd9b7 (diff)
downloadsamba-805f01464f3feb30725dbce1f90d4296380dd796.tar.gz
r22481: Move check for non-mappable SIDs to after sid_to_uid,
sid_to_gid mapping, add LocalSystem to non-mappable list. Jeremy.
Diffstat (limited to 'source/lib/util_sid.c')
-rw-r--r--source/lib/util_sid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/lib/util_sid.c b/source/lib/util_sid.c
index 032be9aa93b..c89abc916f2 100644
--- a/source/lib/util_sid.c
+++ b/source/lib/util_sid.c
@@ -510,6 +510,9 @@ BOOL non_mappable_sid(DOM_SID *sid)
DOM_SID dom;
uint32 rid;
+ if (sid_equal(sid, &global_sid_System))
+ return True;
+
sid_copy(&dom, sid);
sid_split_rid(&dom, &rid);