Fixed documentation

This commit is contained in:
2024-08-20 16:17:51 +02:00
parent 77f6db18a5
commit f83f8f034e
2 changed files with 8 additions and 7 deletions

4
wolf.c
View File

@@ -48,7 +48,7 @@ void sigint_handler() {
void helper(const char *name) {
printf("Wolf - Configurable file watchdog for Linux platform.\n\n"
"Syntax: '%s [-c|-d|-m|-r|-w|-p|-f] <PATH ...>'\n"
"Syntax: '%s [-c|-d|-m|-r|-w|-p|-f|-e] <PATH ...>'\n"
"options:\n"
"-c, --create | Add a watchdog for file creation\n"
"-d, --delete | Add a watchdog for file deletion\n"
@@ -376,7 +376,7 @@ static uint8_t **tokenize_command(const char *cmd) {
token = strtok(NULL, " ");
}
// Null-terminate the string
// Null-terminate argv, this is required by execvp
argv[idx] = NULL;
// Clear temporary resources
free(cmd_dup);