summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-11-28 19:51:25 +0000
committerJeremy Allison <jra@samba.org>2001-11-28 19:51:25 +0000
commit7d2d605f0db0c3689a263d6857721eac66a1b9c1 (patch)
treea410c9a099349e1ea4aed1aaca035718c29c18ba
parent3a193f1597741fb630c50290101daf8231337298 (diff)
downloadsamba-7d2d605f0db0c3689a263d6857721eac66a1b9c1.tar.gz
samba-7d2d605f0db0c3689a263d6857721eac66a1b9c1.tar.bz2
samba-7d2d605f0db0c3689a263d6857721eac66a1b9c1.zip
space -> tab.
Jeremy. (This used to be commit c7dd0364f2b084d9a372ac885fd788bbb5113125)
-rw-r--r--source3/smbd/uid.c44
1 files changed, 20 insertions, 24 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 14b0290e33..524ddb15ab 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -551,24 +551,22 @@ BOOL lookup_sid(DOM_SID *sid, fstring dom_name, fstring name, enum SID_NAME_USE
DOM_SID *uid_to_sid(DOM_SID *psid, uid_t uid)
{
- uid_t low, high;
+ uid_t low, high;
fstring sid;
- if (lp_winbind_uid(&low, &high) && uid >= low && uid <= high) {
- if (winbind_uid_to_sid(psid, uid)) {
+ if (lp_winbind_uid(&low, &high) && uid >= low && uid <= high) {
+ if (winbind_uid_to_sid(psid, uid)) {
- DEBUG(10,("uid_to_sid: winbindd %u -> %s\n",
- (unsigned int)uid,
- sid_to_string(sid, psid)));
+ DEBUG(10,("uid_to_sid: winbindd %u -> %s\n",
+ (unsigned int)uid, sid_to_string(sid, psid)));
- return psid;
- }
- }
+ return psid;
+ }
+ }
- local_uid_to_sid(psid, uid);
+ local_uid_to_sid(psid, uid);
- DEBUG(10,("uid_to_sid: local %u -> %s\n",
- (unsigned int)uid, sid_to_string(sid, psid)));
+ DEBUG(10,("uid_to_sid: local %u -> %s\n", (unsigned int)uid, sid_to_string(sid, psid)));
return psid;
}
@@ -581,24 +579,22 @@ DOM_SID *uid_to_sid(DOM_SID *psid, uid_t uid)
DOM_SID *gid_to_sid(DOM_SID *psid, gid_t gid)
{
- gid_t low, high;
+ gid_t low, high;
fstring sid;
- if (lp_winbind_gid(&low, &high) && gid >= low && gid <= high) {
- if (winbind_gid_to_sid(psid, gid)) {
+ if (lp_winbind_gid(&low, &high) && gid >= low && gid <= high) {
+ if (winbind_gid_to_sid(psid, gid)) {
- DEBUG(10,("gid_to_sid: winbindd %u -> %s\n",
- (unsigned int)gid,
- sid_to_string(sid, psid)));
+ DEBUG(10,("gid_to_sid: winbindd %u -> %s\n",
+ (unsigned int)gid, sid_to_string(sid, psid)));
- return psid;
- }
- }
+ return psid;
+ }
+ }
- local_gid_to_sid(psid, gid);
+ local_gid_to_sid(psid, gid);
- DEBUG(10,("gid_to_sid: local %u -> %s\n",
- (unsigned int)gid, sid_to_string(sid, psid)));
+ DEBUG(10,("gid_to_sid: local %u -> %s\n", (unsigned int)gid, sid_to_string(sid, psid)));
return psid;
}