X-Git-Url: http://git.tdb.fi/?p=pmount-gui.git;a=blobdiff_plain;f=main.c;h=609db229f90787cd076fa1d245b6c6d864ceb99b;hp=d1a2853c48dcb4d512cd78623893e3e449c06dd7;hb=03333fb47e0bc27da1f74313618d4acf8ee10847;hpb=15d082a3f5e39f363829d39c053c3115144e2b43 diff --git a/main.c b/main.c index d1a2853..609db22 100644 --- a/main.c +++ b/main.c @@ -319,6 +319,9 @@ int can_mount(Property *props, char **allowed) if(is_in_array(allowed, devname)) return 1; + if(match_property_value(props, "ID_TYPE", "cd") && match_property_value(props, "ID_CDROM_MEDIA", "1")) + return 1; + if(!match_property_value(props, "DEVTYPE", "partition")) return 0;