diff options
-rw-r--r-- | include/usage.h | 2 | ||||
-rw-r--r-- | miscutils/inotifyd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h index 69d37f923..67b2acf72 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -1847,7 +1847,7 @@ | |||
1847 | "\n1. actual event(s)" \ | 1847 | "\n1. actual event(s)" \ |
1848 | "\n2. file name" \ | 1848 | "\n2. file name" \ |
1849 | "\n3. name of subfile (if any), in case of watching a directory" \ | 1849 | "\n3. name of subfile (if any), in case of watching a directory" \ |
1850 | "\ninotify waits for agent to exit." \ | 1850 | "\ninotifyd waits for agent to exit." \ |
1851 | "\nEvents:" \ | 1851 | "\nEvents:" \ |
1852 | "\n a File is accessed" \ | 1852 | "\n a File is accessed" \ |
1853 | "\n c File is modified" \ | 1853 | "\n c File is modified" \ |
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) | |||
58 | const char *args[] = { *argv, NULL, NULL, NULL, NULL }; | 58 | const char *args[] = { *argv, NULL, NULL, NULL, NULL }; |
59 | 59 | ||
60 | // sanity check: agent and at least one watch must be given | 60 | // sanity check: agent and at least one watch must be given |
61 | if (!argv[1]) | 61 | if (!argv[0] || !argv[1]) |
62 | bb_show_usage(); | 62 | bb_show_usage(); |
63 | 63 | ||
64 | // open inotify | 64 | // open inotify |