mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
cdrom_id: do not bail out when we can not read the TOC like for empty CDRW
This commit is contained in:
parent
1b3b6c2df7
commit
4f7f02b7ba
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user