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:
aafbae6
)
mdev: fix a bug where \t is not treated as delimiter after [>|=PATH]
author
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 13 Apr 2009 13:59:26 +0000
(13:59 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 13 Apr 2009 13:59:26 +0000
(13:59 -0000)
util-linux/mdev.c
patch
|
blob
|
history
diff --git
a/util-linux/mdev.c
b/util-linux/mdev.c
index 584df7df2c03c37f24556ae549fc290487de62fb..ca5eaca487b793c8fada05fb333a941e3f692304 100644
(file)
--- a/
util-linux/mdev.c
+++ b/
util-linux/mdev.c
@@
-173,13
+173,16
@@
static void make_device(char *path, int delete)
break;
aliaslink = *val;
if (aliaslink == '>' || aliaslink == '=') {
- char *s;
+ char *s
, *st
;
# if ENABLE_FEATURE_MDEV_RENAME_REGEXP
char *p;
unsigned i, n;
# endif
char *a = val;
s = strchrnul(val, ' ');
+ st = strchrnul(val, '\t');
+ if (st < s)
+ s = st;
val = (s[0] && s[1]) ? s+1 : NULL;
s[0] = '\0';
# if ENABLE_FEATURE_MDEV_RENAME_REGEXP