From: Kay Sievers Date: Wed, 11 Aug 2010 13:38:48 +0000 (+0200) Subject: cdrom_id: do not bail out when we can not read the TOC like for empty CDRW X-Git-Tag: 174~375 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f7f02b7bab1acfab87b824b91f5a848cbf835e7;p=systemd cdrom_id: do not bail out when we can not read the TOC like for empty CDRW --- diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c index 889b2342..83e95d58 100644 --- a/extras/cdrom_id/cdrom_id.c +++ b/extras/cdrom_id/cdrom_id.c @@ -869,12 +869,10 @@ int main(int argc, char *argv[]) goto print; /* get session/track info */ - if (cd_media_toc(udev, fd) < 0) - goto print; + cd_media_toc(udev, fd); /* get writable media state */ - if (cd_media_info(udev, fd) < 0) - goto print; + cd_media_info(udev, fd); print: printf("ID_CDROM=1\n");