← Commit list

2479cd4a5

Denis Vlasenko
Denis Vlasenko
2008-11-14
FAILED Duration: 29s

Subject

inotifyd: fix "inotifyd with no params" case

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

include/usage.h+1 -1
@@ -1847,7 +1847,7 @@
"\n1. actual event(s)" \
"\n2. file name" \
"\n3. name of subfile (if any), in case of watching a directory" \
- "\ninotify waits for agent to exit." \
+ "\ninotifyd waits for agent to exit." \
"\nEvents:" \
"\n a File is accessed" \
"\n c File is modified" \
miscutils/inotifyd.c+1 -1
@@ -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