This commit is contained in:
Axel Kittenberger 2010-11-04 14:23:34 +00:00
parent a599c0a858
commit eef4c73bcb
2 changed files with 3 additions and 3 deletions

View File

@ -1273,7 +1273,7 @@ main(int argc, char *argv[])
/* checks if the user overrode default runner file */
if (argp < argc && !strcmp(argv[argp], "--runner")) {
if (argp + 1 < argc) {
if (argp + 1 >= argc) {
logstring("Error",
"Lsyncd Lua-runner file missing after --runner.");
#ifdef LSYNCD_DEFAULT_RUNNER_FILE

View File

@ -691,10 +691,10 @@ USAGE:
OPTIONS:
-help Shows this
-log [Category] Turns logging on for debug categories.
-log all Logs everything
-log scarce Logs errors only
-runner FILE Loads lsyncds lua part from FILE
-log [Category] Turns on logging for a debug category
-runner FILE Loads lsyncds lua part from FILE
LICENSE:
GPLv2 or any later version.