From: Harald Hoyer Date: Thu, 30 Jun 2011 13:17:09 +0000 (+0200) Subject: udevadm-*.c: return != 0, if unknown option given X-Git-Tag: 174~84 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e261c5f619e059e96e1ef9977fa1665cd8223541;p=systemd udevadm-*.c: return != 0, if unknown option given --- diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c index 87c1c323..a6387d07 100644 --- a/udev/udevadm-info.c +++ b/udev/udevadm-info.c @@ -454,6 +454,7 @@ int udevadm_info(struct udev *udev, int argc, char *argv[]) " --help\n\n"); goto exit; default: + rc = 1; goto exit; } } diff --git a/udev/udevadm-monitor.c b/udev/udevadm-monitor.c index f3a72cf1..fd1b8ced 100644 --- a/udev/udevadm-monitor.c +++ b/udev/udevadm-monitor.c @@ -138,6 +138,9 @@ int udevadm_monitor(struct udev *udev, int argc, char *argv[]) " --help\n\n"); goto out; } + default: + rc = 1; + goto out; } if (!print_kernel && !print_udev) { diff --git a/udev/udevadm-trigger.c b/udev/udevadm-trigger.c index c32e0b4e..d31b4fbd 100644 --- a/udev/udevadm-trigger.c +++ b/udev/udevadm-trigger.c @@ -199,6 +199,7 @@ int udevadm_trigger(struct udev *udev, int argc, char *argv[]) " --help\n\n"); goto exit; default: + rc = 1; goto exit; } }