From: Denis Vlasenko Date: Mon, 13 Apr 2009 13:59:26 +0000 (-0000) Subject: mdev: fix a bug where \t is not treated as delimiter after [>|=PATH] X-Git-Tag: 1_14_0~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=323cbbfaa25f6bdc1ef343db01e58da3fea7fe6d;p=oweals%2Fbusybox.git mdev: fix a bug where \t is not treated as delimiter after [>|=PATH] --- 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