]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/cdromutl.cc
merged from the debian-sid branch
[apt.git] / apt-pkg / contrib / cdromutl.cc
index 7f30f132dd513a942e4789e637ce44883ae4fc1d..187f6bd5997eb96af56a0b050137094d0d881d69 100644 (file)
@@ -30,6 +30,8 @@
 #include <apti18n.h>
                                                                        /*}}}*/
 
+using std::string;
+
 // IsMounted - Returns true if the mount point is mounted              /*{{{*/
 // ---------------------------------------------------------------------
 /* This is a simple algorithm that should always work, we stat the mount point
@@ -260,7 +262,9 @@ string FindMountPointForDevice(const char *devnode)
                if(TokSplitString(' ', buf, out, 10))
                {
                   fclose(f);
-                  return string(out[1]);
+                  // unescape the \0XXX chars in the path
+                  string mount_point = out[1];
+                  return DeEscapeString(mount_point);
                }
             }
          }