diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-07-04 07:36:09 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-07-04 07:36:09 +0000 |
commit | c41fc06376d1a2b83690612304e85010b5e5f3cf (patch) | |
tree | 59f4f1203405c352984a30e0d4eb4d0955248e1e /source/nsswitch/wb_client.c | |
parent | debb471267960e56005a741817ebd227ecfc512a (diff) | |
download | samba-c41fc06376d1a2b83690612304e85010b5e5f3cf.tar.gz samba-c41fc06376d1a2b83690612304e85010b5e5f3cf.tar.xz samba-c41fc06376d1a2b83690612304e85010b5e5f3cf.zip |
strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
Diffstat (limited to 'source/nsswitch/wb_client.c')
-rw-r--r-- | source/nsswitch/wb_client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/nsswitch/wb_client.c b/source/nsswitch/wb_client.c index 2a29773b9ec..05c68d240c8 100644 --- a/source/nsswitch/wb_client.c +++ b/source/nsswitch/wb_client.c @@ -36,8 +36,8 @@ static void parse_domain_user(char *domuser, fstring domain, fstring user) char *p; char *sep = lp_winbind_separator(); if (!sep) sep = "\\"; - p = strchr(domuser,*sep); - if (!p) p = strchr(domuser,'\\'); + p = strchr_m(domuser,*sep); + if (!p) p = strchr_m(domuser,'\\'); if (!p) { fstrcpy(domain,""); fstrcpy(user, domuser); @@ -286,7 +286,7 @@ int winbind_initgroups(char *user, gid_t gid) sep = lp_winbind_separator(); - if (!strchr(user, *sep)) { + if (!strchr_m(user, *sep)) { return initgroups(user, gid); } |