diff options
author | Petr Uzel <petr.uzel@suse.cz> | 2011-10-03 13:48:43 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-10-03 13:57:18 +0200 |
commit | d800e8688a34bc848977999ce77fb40cba17df9e (patch) | |
tree | 06a0266da68f9ef1e43e021491474177a23790a1 | |
parent | fe9e1a0d4e324bde74a1bf85117ab57176092a26 (diff) |
udevadm: settle - return failure if unknown option is given
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
-rw-r--r-- | udev/udevadm-settle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/udev/udevadm-settle.c b/udev/udevadm-settle.c index d40c8c8d5e..9f409b61b8 100644 --- a/udev/udevadm-settle.c +++ b/udev/udevadm-settle.c @@ -96,7 +96,9 @@ static int adm_settle(struct udev *udev, int argc, char *argv[]) " --exit-if-exists=<file> stop waiting if file exists\n" " --quiet do not print list after timeout\n" " --help\n\n"); - exit(0); + exit(EXIT_SUCCESS); + default: + exit(EXIT_FAILURE); } } |