summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/uid.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index f2b3bdbe6c..c3156b7b14 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -591,16 +591,16 @@ DOM_SID *gid_to_sid(DOM_SID *psid, gid_t gid)
BOOL sid_to_uid(DOM_SID *psid, uid_t *puid, enum SID_NAME_USE *sidtype)
{
- fstring dom_name, name, sid_str;
- enum SID_NAME_USE name_type;
-
- *sidtype = SID_NAME_UNKNOWN;
-
+ fstring sid_str;
/* (tridge) I commented out the slab of code below in order to support foreign SIDs
Do we really need to validate the type of SID we have in this case?
*/
#if 0
+ fstring dom_name, name;
+ enum SID_NAME_USE name_type;
+
+ *sidtype = SID_NAME_UNKNOWN;
/*
* First we must look up the name and decide if this is a user sid.
*/