diff options
author | Harald Hoyer <harald@redhat.com> | 2011-06-30 15:17:09 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2011-06-30 15:17:09 +0200 |
commit | e261c5f619e059e96e1ef9977fa1665cd8223541 (patch) | |
tree | e689b17425ec3c18fb1346c9f64883642cccdc70 /udev | |
parent | daa42554ea1f3bc861805a753d2dd07c1c5db743 (diff) |
udevadm-*.c: return != 0, if unknown option given
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udevadm-info.c | 1 | ||||
-rw-r--r-- | udev/udevadm-monitor.c | 3 | ||||
-rw-r--r-- | udev/udevadm-trigger.c | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/udev/udevadm-info.c b/udev/udevadm-info.c index 87c1c32314..a6387d07ae 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 f3a72cf17e..fd1b8ced85 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 c32e0b4e2f..d31b4fbd8d 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; } } |