Skip to content
Snippets Groups Projects
Commit be5b5581 authored by Michael Vogt's avatar Michael Vogt
Browse files

apt-pkg/cdrom.cc: make cdrom.Mounted property reliable

parent cbc9bed8
No related branches found
No related tags found
No related merge requests found
......@@ -908,7 +908,8 @@ pkgUdevCdromDevices::Scan()
cdrom.DeviceName = string(devnode);
if (mountpath) {
cdrom.MountPath = mountpath;
cdrom.Mounted = true;
string s = string(mountpath);
cdrom.Mounted = IsMounted(s);
} else {
cdrom.Mounted = false;
cdrom.MountPath = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment