mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
cdrom_id: add error message if open() fails
This commit is contained in:
parent
dc383337b3
commit
e91ac78ffc
@ -570,6 +570,7 @@ int main(int argc, char *argv[])
|
||||
fd = open(node, O_RDONLY | O_NONBLOCK);
|
||||
if (fd < 0) {
|
||||
info(udev, "unable to open '%s'\n", node);
|
||||
fprintf(stderr, "unable to open '%s'\n", node);
|
||||
rc = 1;
|
||||
goto exit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user