diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-23 01:53:54 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-23 01:53:54 +0000 |
commit | d47d14f2ffc7a6d2cc306530b777f364767998b3 (patch) | |
tree | 5ff4972c9bea1a5104a2aac2986f2331db96d101 /source4/smbd/rewrite.c | |
parent | 7ab05c2ffa87c962a38a9ac90fa5705d93516a57 (diff) | |
download | samba-d47d14f2ffc7a6d2cc306530b777f364767998b3.tar.gz samba-d47d14f2ffc7a6d2cc306530b777f364767998b3.tar.bz2 samba-d47d14f2ffc7a6d2cc306530b777f364767998b3.zip |
reduced the number of magic types we need in mkproto.pl
In general I prefer "struct foo" to just "foo" for most
structures. There are exceptions.
(This used to be commit 04eb12b56c653f98801ab29411f47564ab32fa58)
Diffstat (limited to 'source4/smbd/rewrite.c')
-rw-r--r-- | source4/smbd/rewrite.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/smbd/rewrite.c b/source4/smbd/rewrite.c index 4421d0c960..18ff62e9dc 100644 --- a/source4/smbd/rewrite.c +++ b/source4/smbd/rewrite.c @@ -64,15 +64,13 @@ BOOL init_names(void) BOOL uid_to_sid(DOM_SID *sid, uid_t uid) { - *sid = *get_global_sam_sid(); - sid_append_rid(sid, uid*2); + ZERO_STRUCTP(sid); return True; } BOOL gid_to_sid(DOM_SID *sid, gid_t gid) { - *sid = *get_global_sam_sid(); - sid_append_rid(sid, gid*2 + 1); + ZERO_STRUCTP(sid); return True; } |