projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d611b07
)
Replace strsep() by strtok()
author
Marc G. Fournier
Tue, 18 Mar 1997 21:43:06 +0000
(21:43 +0000)
committer
Marc G. Fournier
Tue, 18 Mar 1997 21:43:06 +0000
(21:43 +0000)
By: Dan McGuirk
src/backend/libpq/password.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/libpq/password.c
b/src/backend/libpq/password.c
index b9ec4d55cc6812afe572c5d8218096c16a6e1796..6d93b4094dcfa0b267a4e5714c4cb9a09a936db6 100644
(file)
--- a/
src/backend/libpq/password.c
+++ b/
src/backend/libpq/password.c
@@
-67,8
+67,8
@@
verify_password(char *user, char *password, Port *port,
fgets(pw_file_line, 255, pw_file);
p = pw_file_line;
- test_user = str
sep(&
p, ":");
- test_pw =
p
;
+ test_user = str
tok(
p, ":");
+ test_pw =
strtok(0, ":")
;
if(!test_user || !test_pw ||
test_user[0] == '\0' || test_pw[0] == '\0') {
continue;