Allow backslash in file names. (bnc #561855)
authorMichael Andres <ma@suse.de>
Fri, 22 Jan 2010 12:29:21 +0000 (13:29 +0100)
committerMichael Andres <ma@suse.de>
Fri, 22 Jan 2010 12:29:21 +0000 (13:29 +0100)
zypp/Pathname.cc

index 1b41a89..7b833f9 100644 (file)
@@ -154,7 +154,7 @@ namespace zypp
       }
 
       // rel or abs path
-      if ( *R_pci == '/' || *R_pci == '\\' ) {
+      if ( *R_pci == '/' ) {
         Stack_Ci.Push( "" );
         ++R_pci;
       } else {
@@ -164,7 +164,6 @@ namespace zypp
       do {
         switch ( *R_pci ) {
         case '/':
-        case '\\':
         case '\0':
           if ( W_pci != Buf_aci ) {
             *W_pci = '\0';