]> err.no Git - systemd/commitdiff
udevadm-*.c: return != 0, if unknown option given
authorHarald Hoyer <harald@redhat.com>
Thu, 30 Jun 2011 13:17:09 +0000 (15:17 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 30 Jun 2011 13:17:09 +0000 (15:17 +0200)
udev/udevadm-info.c
udev/udevadm-monitor.c
udev/udevadm-trigger.c

index 87c1c32314b2d0784c9d9cf2e0745ad72dc166e4..a6387d07aecaa11c8e0b2456c644332f85421348 100644 (file)
@@ -454,6 +454,7 @@ int udevadm_info(struct udev *udev, int argc, char *argv[])
                               "  --help\n\n");
                        goto exit;
                default:
+                       rc = 1;
                        goto exit;
                }
        }
index f3a72cf17e3d283a4d2a5ced43d06934567a4995..fd1b8ced85d9ae27c7df21515f0686fb7be22db3 100644 (file)
@@ -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) {
index c32e0b4e2faa0c74077d6fdd18ed90ab82a31832..d31b4fbd8d7490b147c127c1a58fcbc2f6a054cb 100644 (file)
@@ -199,6 +199,7 @@ int udevadm_trigger(struct udev *udev, int argc, char *argv[])
                               "  --help\n\n");
                        goto exit;
                default:
+                       rc = 1;
                        goto exit;
                }
        }