[dovecot-cvs] dovecot/src/auth db-passwd-file.c,1.4,1.5
cras at procontrol.fi
cras at procontrol.fi
Mon Mar 10 02:36:11 EET 2003
Update of /home/cvs/dovecot/src/auth
In directory danu:/tmp/cvs-serv29409/auth
Modified Files:
db-passwd-file.c
Log Message:
Added i_stream_read_next_line()
Index: db-passwd-file.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/db-passwd-file.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- db-passwd-file.c 20 Feb 2003 16:40:16 -0000 1.4
+++ db-passwd-file.c 10 Mar 2003 00:36:09 -0000 1.5
@@ -142,14 +142,7 @@
str_hash, (hash_cmp_callback_t *)strcmp);
input = i_stream_create_file(pw->fd, default_pool, 4096, FALSE);
- for (;;) {
- line = i_stream_next_line(input);
- if (line == NULL) {
- if (i_stream_read(input) <= 0)
- break;
- continue;
- }
-
+ while ((line = i_stream_read_next_line(input)) != NULL) {
if (*line == '\0' || *line == ':')
continue; /* no username */
More information about the dovecot-cvs
mailing list