summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-10-14 08:31:54 +0000
committerTim Potter <tpot@samba.org>2001-10-14 08:31:54 +0000
commit5fc97e72ebf5976d66345107f3d9e6d3ae27eb94 (patch)
treed69aae5733a2cc18d34ecc0721cf29d5c9e10ce7 /source/nsswitch
parentc6338d7eaeb31db2666603fcdd9179e61891a1c9 (diff)
downloadsamba-5fc97e72ebf5976d66345107f3d9e6d3ae27eb94.tar.gz
samba-5fc97e72ebf5976d66345107f3d9e6d3ae27eb94.tar.xz
samba-5fc97e72ebf5976d66345107f3d9e6d3ae27eb94.zip
Some reformatting.
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/winbindd_util.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/nsswitch/winbindd_util.c b/source/nsswitch/winbindd_util.c
index 3998c4d2bda..859b0850dca 100644
--- a/source/nsswitch/winbindd_util.c
+++ b/source/nsswitch/winbindd_util.c
@@ -508,9 +508,8 @@ BOOL winbindd_param_init(void)
/* Parse winbind uid and winbind_gid parameters */
if (!(parse_id_list(lp_winbind_uid(), True) &&
- parse_id_list(lp_winbind_gid(), False))) {
+ parse_id_list(lp_winbind_gid(), False)))
return False;
- }
/* Check for reversed uid and gid ranges */
@@ -559,9 +558,8 @@ BOOL check_domain_env(char *domain_env, char *domain)
char *tmp = domain_env;
while(next_token(&tmp, name, ",", sizeof(fstring))) {
- if (strequal(name, domain)) {
+ if (strequal(name, domain))
return True;
- }
}
return False;
@@ -573,9 +571,15 @@ void parse_domain_user(char *domuser, fstring domain, fstring user)
{
char *p;
char *sep = lp_winbind_separator();
- if (!sep) sep = "\\";
+
+ if (!sep)
+ sep = "\\";
+
p = strchr(domuser,*sep);
- if (!p) p = strchr(domuser,'\\');
+
+ if (!p)
+ p = strchr(domuser,'\\');
+
if (!p) {
fstrcpy(domain,"");
fstrcpy(user, domuser);