projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
944d275
)
ifup: make /etc/network/interfaces parser tolerant to trailing spaces
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 16 Oct 2009 21:56:10 +0000
(23:56 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 16 Oct 2009 21:56:10 +0000
(23:56 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ifupdown.c
patch
|
blob
|
history
diff --git
a/networking/ifupdown.c
b/networking/ifupdown.c
index 6b9449213baef36c01ca62e3b4297cb22da5448d..d0c5cce07b552865d7c52783beca20946d53bd21 100644
(file)
--- a/
networking/ifupdown.c
+++ b/
networking/ifupdown.c
@@
-644,6
+644,9
@@
static const struct address_family_t addr_inet = {
#endif /* if ENABLE_FEATURE_IFUPDOWN_IPV4 */
+/* Returns pointer to the next word, or NULL.
+ * In 1st case, advances *buf to the word after this one.
+ */
static char *next_word(char **buf)
{
unsigned length;
@@
-663,7
+666,7
@@
static char *next_word(char **buf)
if (word[length] != '\0')
word[length++] = '\0';
- *buf =
word + length
;
+ *buf =
skip_whitespace(word + length)
;
return word;
}