svn commit: [26084] trunk/busybox/util-linux

vda at busybox.net vda at busybox.net
Mon Apr 13 13:59:27 UTC 2009


Author: vda
Date: 2009-04-13 13:59:26 +0000 (Mon, 13 Apr 2009)
New Revision: 26084

Log:
mdev: fix a bug where \t is not treated as delimiter after [>|=PATH]



Modified:
   trunk/busybox/util-linux/mdev.c


Changeset:
Modified: trunk/busybox/util-linux/mdev.c
===================================================================
--- trunk/busybox/util-linux/mdev.c	2009-04-13 13:33:02 UTC (rev 26083)
+++ trunk/busybox/util-linux/mdev.c	2009-04-13 13:59:26 UTC (rev 26084)
@@ -173,13 +173,16 @@
 			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



More information about the busybox-cvs mailing list