git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b93f07e
)
pam_winbind: Use strchr instead of strstr for a single character
author
Volker Lendecke
<vl@samba.org>
Sat, 6 Feb 2010 11:55:00 +0000
(12:55 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 6 Feb 2010 11:57:32 +0000
(12:57 +0100)
nsswitch/pam_winbind.c
patch
|
blob
|
history
diff --git
a/nsswitch/pam_winbind.c
b/nsswitch/pam_winbind.c
index 52a8daa1e7c77123d91d5b9bcf7b0427d19567bd..fcad15c0003731bf30a2b926689bd9e995e01021 100644
(file)
--- a/
nsswitch/pam_winbind.c
+++ b/
nsswitch/pam_winbind.c
@@
-1144,7
+1144,7
@@
static bool winbind_name_list_to_sid_string_list(struct pwb_context *ctx,
}
search_location = name_list;
- while ((comma = str
str(search_location, ","
)) != NULL) {
+ while ((comma = str
chr(search_location, ','
)) != NULL) {
current_name = strndup(search_location,
comma - search_location);
if (NULL == current_name) {