udev/cdrom_id: do not abort on unknown options

Copy-pasta is good, but you have to pick a reliable source.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2023-03-16 16:46:44 +01:00
parent 32c2d046c6
commit bd36d0281a
+2
View File
@@ -938,6 +938,8 @@ static int parse_argv(int argc, char *argv[]) {
break;
case 'h':
return help();
case '?':
return -EINVAL;
default:
assert_not_reached();
}