- fix escape problem when looking for the mounted devices
if(TokSplitString(' ', buf, out, 10))
{
fclose(f);
- return string(out[1]);
+ // unescape \040 and return the path
+ size_t pos;
+ string mount_point = out[1];
+ static const char *needle = "\\040";
+ while ((pos = mount_point.find(needle)) != string::npos)
+ mount_point.replace(pos, strlen(needle), " ");
+ return mount_point;
}
}
}
code (LP: #784473)
* cmdline/apt-get.cc:
- fix missing download progress in apt-get download
+ * apt-pkg/contrib/cdromutl.cc:
+ - fix escape problem when looking for the mounted devices
-- Michael Vogt <mvo@debian.org> Tue, 12 Jul 2011 11:54:47 +0200