]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/cdromutl.cc
merged from lp:~donkult/apt/experimental
[apt.git] / apt-pkg / contrib / cdromutl.cc
index 7f30f132dd513a942e4789e637ce44883ae4fc1d..9de795b60d92e25a212fa2e0bf5ac5bfac6b4d6e 100644 (file)
@@ -260,7 +260,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);
                }
             }
          }