1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 20:25:38 +03:00

cdrom_id: add error message if open() fails

This commit is contained in:
Kay Sievers 2009-05-29 13:21:38 +02:00
parent dc383337b3
commit e91ac78ffc

View File

@ -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;
}