]> err.no Git - systemd/commitdiff
cdrom_id: do not bail out when we can not read the TOC like for empty CDRW
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 11 Aug 2010 13:38:48 +0000 (15:38 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 11 Aug 2010 13:38:48 +0000 (15:38 +0200)
extras/cdrom_id/cdrom_id.c

index 889b2342e8a023dc8fab4f446a29b568fe92ca7b..83e95d581202a162d4534a6e450b63494481a3e6 100644 (file)
@@ -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");