r1607 - in trunk/utils/initrd-tools: . debian

Martin Michlmayr tbm@haydn.debian.org
Sat, 18 Sep 2004 05:17:42 -0600


Author: tbm
Date: 2004-09-18 05:17:34 -0600 (Sat, 18 Sep 2004)
New Revision: 1607

Modified:
   trunk/utils/initrd-tools/debian/changelog
   trunk/utils/initrd-tools/init
Log:
Test for the new behaviour first rather than for the old one since it will
otherwise break once people start putting dots in the names.  Thanks,
Herbert Xu


Modified: trunk/utils/initrd-tools/debian/changelog
===================================================================
--- trunk/utils/initrd-tools/debian/changelog	2004-09-18 11:09:29 UTC (rev 1606)
+++ trunk/utils/initrd-tools/debian/changelog	2004-09-18 11:17:34 UTC (rev 1607)
@@ -5,8 +5,10 @@
       disambiguate all the different esp drivers.
   * Martin Michlmayr
     - Apply a patch from Colin Watson to deal with . (old) and ! (new)
-      as the mangling character for / in /sys names (closes: #272139,
-      #271899).
+      as the mangling character for / in /sys names.  Test for the new
+      behaviour first rather than for the old one since it will
+      otherwise break once people start putting dots in the names.
+      Thanks, Herbert Xu (closes: #272139, #271899).
 
  -- Joshua Kwan <joshk@triplehelix.org>  Fri, 27 Aug 2004 11:42:14 -0700
 

Modified: trunk/utils/initrd-tools/init
===================================================================
--- trunk/utils/initrd-tools/init	2004-09-18 11:09:29 UTC (rev 1606)
+++ trunk/utils/initrd-tools/init	2004-09-18 11:17:34 UTC (rev 1607)
@@ -86,7 +86,7 @@
 
 	origroot="$root"
 
-	for separator in . !; do
+	for separator in ! .; do
 		IFS=/
 		set -f
 		set +f ${origroot#/dev/}