[dovecot-cvs] dovecot/src/lib-settings settings.c,1.2,1.3
cras at procontrol.fi
cras at procontrol.fi
Sat Feb 8 09:42:29 EET 2003
Update of /home/cvs/dovecot/src/lib-settings
In directory danu:/tmp/cvs-serv10350
Modified Files:
settings.c
Log Message:
Don't skip trailing whitespace, it might be wanted (eg. log_timestamp).
Index: settings.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-settings/settings.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- settings.c 31 Jan 2003 06:57:40 -0000 1.2
+++ settings.c 8 Feb 2003 07:42:27 -0000 1.3
@@ -64,7 +64,7 @@
{
struct istream *input;
const char *errormsg;
- char *line, *key, *p;
+ char *line, *key;
int fd, linenum;
fd = open(path, O_RDONLY);
@@ -107,12 +107,6 @@
/* skip whitespace after '=' */
*line++ = '\0';
while (IS_WHITE(*line)) line++;
-
- /* skip trailing whitespace */
- p = line + strlen(line);
- while (p > line && IS_WHITE(p[-1]))
- p--;
- *p = '\0';
errormsg = callback(key, line, context);
}
More information about the dovecot-cvs
mailing list