diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-13 13:59:26 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-13 13:59:26 +0000 |
commit | 323cbbfaa25f6bdc1ef343db01e58da3fea7fe6d (patch) | |
tree | 9a3774bed16ac79913c51945d9a99332e54815d3 | |
parent | aafbae618126835c006ae0be96959540d5b8f5af (diff) | |
download | busybox-323cbbfaa25f6bdc1ef343db01e58da3fea7fe6d.tar.gz |
mdev: fix a bug where \t is not treated as delimiter after [>|=PATH]
-rw-r--r-- | util-linux/mdev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index 584df7df2..ca5eaca48 100644 --- 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 |