svn commit: trunk/busybox: include miscutils
vda at busybox.net
vda at busybox.net
Fri Nov 14 22:14:12 UTC 2008
Author: vda
Date: 2008-11-14 14:14:12 -0800 (Fri, 14 Nov 2008)
New Revision: 24047
Log:
inotifyd: fix "inotifyd with no params" case
Modified:
trunk/busybox/include/usage.h
trunk/busybox/miscutils/inotifyd.c
Changeset:
Modified: trunk/busybox/include/usage.h
===================================================================
--- trunk/busybox/include/usage.h 2008-11-14 22:12:11 UTC (rev 24046)
+++ trunk/busybox/include/usage.h 2008-11-14 22:14:12 UTC (rev 24047)
@@ -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" \
Modified: trunk/busybox/miscutils/inotifyd.c
===================================================================
--- trunk/busybox/miscutils/inotifyd.c 2008-11-14 22:12:11 UTC (rev 24046)
+++ trunk/busybox/miscutils/inotifyd.c 2008-11-14 22:14:12 UTC (rev 24047)
@@ -58,7 +58,7 @@
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
More information about the busybox-cvs
mailing list