svn commit: trunk/busybox/networking
vda at busybox.net
vda at busybox.net
Tue Jul 8 03:25:25 UTC 2008
Author: vda
Date: 2008-07-07 20:25:25 -0700 (Mon, 07 Jul 2008)
New Revision: 22680
Log:
ifupdown: /etc/network/interfaces can have comments with leading blanks
Modified:
trunk/busybox/networking/ifupdown.c
Changeset:
Modified: trunk/busybox/networking/ifupdown.c
===================================================================
--- trunk/busybox/networking/ifupdown.c 2008-07-08 02:57:40 UTC (rev 22679)
+++ trunk/busybox/networking/ifupdown.c 2008-07-08 03:25:25 UTC (rev 22680)
@@ -675,7 +675,7 @@
* the last character a backslash.
*
* Seen elsewhere in example config file:
- * A "#" character in the very first column makes the rest of the line
+ * A first non-blank "#" character makes the rest of the line
* be ignored. Blank lines are ignored. Lines may be indented freely.
* A "\" character at the very end of the line indicates the next line
* should be treated as a continuation of the current one.
@@ -711,7 +711,7 @@
#endif
rest_of_line = buf;
first_word = next_word(&rest_of_line);
- if (!first_word || *buf == '#') {
+ if (!first_word || *first_word == '#') {
free(buf);
continue; /* blank/comment line */
}
More information about the busybox-cvs
mailing list