From 4f7f02b7bab1acfab87b824b91f5a848cbf835e7 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 11 Aug 2010 15:38:48 +0200 Subject: [PATCH] cdrom_id: do not bail out when we can not read the TOC like for empty CDRW --- extras/cdrom_id/cdrom_id.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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"); -- 2.39.5