aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-13 13:59:26 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-13 13:59:26 +0000
commit323cbbfaa25f6bdc1ef343db01e58da3fea7fe6d (patch)
tree9a3774bed16ac79913c51945d9a99332e54815d3 /util-linux/mdev.c
parentaafbae618126835c006ae0be96959540d5b8f5af (diff)
downloadbusybox-w32-323cbbfaa25f6bdc1ef343db01e58da3fea7fe6d.tar.gz
busybox-w32-323cbbfaa25f6bdc1ef343db01e58da3fea7fe6d.tar.bz2
busybox-w32-323cbbfaa25f6bdc1ef343db01e58da3fea7fe6d.zip
mdev: fix a bug where \t is not treated as delimiter after [>|=PATH]
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r--util-linux/mdev.c5
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)
173 break; 173 break;
174 aliaslink = *val; 174 aliaslink = *val;
175 if (aliaslink == '>' || aliaslink == '=') { 175 if (aliaslink == '>' || aliaslink == '=') {
176 char *s; 176 char *s, *st;
177# if ENABLE_FEATURE_MDEV_RENAME_REGEXP 177# if ENABLE_FEATURE_MDEV_RENAME_REGEXP
178 char *p; 178 char *p;
179 unsigned i, n; 179 unsigned i, n;
180# endif 180# endif
181 char *a = val; 181 char *a = val;
182 s = strchrnul(val, ' '); 182 s = strchrnul(val, ' ');
183 st = strchrnul(val, '\t');
184 if (st < s)
185 s = st;
183 val = (s[0] && s[1]) ? s+1 : NULL; 186 val = (s[0] && s[1]) ? s+1 : NULL;
184 s[0] = '\0'; 187 s[0] = '\0';
185# if ENABLE_FEATURE_MDEV_RENAME_REGEXP 188# if ENABLE_FEATURE_MDEV_RENAME_REGEXP