a bit urgent: wineconf patch

Andreas Mohr amohr at codeweavers.com
Wed Feb 14 05:24:58 CST 2001


Hi all,

yes, I screwed it. Totally.

;-)

ChangeLog:
Make sure we \ escape backslashes.

It's a bit urgent as it seems to make wineconf and thus wineinstall
rather unusable.

Andreas Mohr
-------------- next part --------------
Determining best CVS host...
Using CVSROOT :pserver:cvs at wine.codeweavers.com:/home/cvs/wine
Index: tools/wineconf
===================================================================
RCS file: /home/cvs/wine/wine/tools/wineconf,v
retrieving revision 1.7
diff -u -r1.7 wineconf
--- tools/wineconf	2001/02/12 01:19:43	1.7
+++ tools/wineconf	2001/02/14 21:10:47
@@ -9,7 +9,7 @@
 # This program examines the contents of the DOS filesystems and
 # attempts to generate a sensible wine.conf file.  This is output
 # to STDOUT.
-# It reads /etc/FSTAB to find mounting locations of the hard disk drives
+# It reads /etc/fstab to find mounting locations of the hard disk drives
 # It uses the correct algorithm for ordering DOS drives, with the
 # exception of the case of multiple drive controller types, where I don't
 # know what DOS's algorithm is.
@@ -196,7 +196,7 @@
 	print "\"system\" = \"$::opt_sysdir\"\n";
     }
     else {
-	print "\"system\" = \"$::windir\\SYSTEM\"\n";
+	print "\"system\" = \"$::windir\\\\SYSTEM\"\n";
     }
 }
 
@@ -298,6 +298,8 @@
 		    if (($::opt_debug) && ($::opt_debug =~ /path/i)) {
 			print STDERR "DEBUG (path): Found $pathdir\n";
 		    }
+		    # replace \ by \\
+		    $pathdir =~ s/\\/\\\\/g; 
 		    push(@::DOSpathlist, $pathdir);
 		}
 	    }
@@ -407,7 +409,7 @@
     $FNdos = $FNunix;
     $FNdos =~ s/^$TheMntPt//;
     $FNdos = $::MntPoint2DOS{$TheMntPt} . ":" . $FNdos;
-    1 while($FNdos =~ s%/%\\%);
+    1 while($FNdos =~ s%/%\\\\%);
     return $FNdos;
 }
 


More information about the wine-patches mailing list