From 2479cd4a5d50044e9d8e791a6ac17d528761a0a6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 14 Nov 2008 22:14:12 +0000 Subject: inotifyd: fix "inotifyd with no params" case --- miscutils/inotifyd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils/inotifyd.c') diff --git a/miscutils/inotifyd.c b/miscutils/inotifyd.c index 216a69654..2a1355156 100644 --- a/miscutils/inotifyd.c +++ b/miscutils/inotifyd.c @@ -58,7 +58,7 @@ int inotifyd_main(int argc UNUSED_PARAM, char **argv) const char *args[] = { *argv, NULL, NULL, NULL, NULL }; // sanity check: agent and at least one watch must be given - if (!argv[1]) + if (!argv[0] || !argv[1]) bb_show_usage(); // open inotify -- cgit v1.2.3