From d800e8688a34bc848977999ce77fb40cba17df9e Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Mon, 3 Oct 2011 13:48:43 +0200 Subject: [PATCH] udevadm: settle - return failure if unknown option is given Signed-off-by: Petr Uzel --- udev/udevadm-settle.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/udev/udevadm-settle.c b/udev/udevadm-settle.c index d40c8c8d..9f409b61 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= 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); } } -- 2.39.5