From: Petr Uzel Date: Mon, 3 Oct 2011 11:48:43 +0000 (+0200) Subject: udevadm: settle - return failure if unknown option is given X-Git-Tag: 174~21 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d800e8688a34bc848977999ce77fb40cba17df9e;p=systemd udevadm: settle - return failure if unknown option is given Signed-off-by: Petr Uzel --- 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); } }