Skip to content
Snippets Groups Projects
Commit d20cf549 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

check validity of cmdline

parent 4eced2bc
Branches
Tags
No related merge requests found
...@@ -88,6 +88,9 @@ int ssexec_scandir_wrapper(int argc, char const *const *argv, ssexec_t *info) ...@@ -88,6 +88,9 @@ int ssexec_scandir_wrapper(int argc, char const *const *argv, ssexec_t *info)
argv++ ; argv++ ;
} }
if (!argc)
log_usage(usage_scandir_wrapper, "\n", help_scandir_wrapper) ;
if (!strcmp(argv[0], "create")) { if (!strcmp(argv[0], "create")) {
nargv[n++] = argv[0] ; nargv[n++] = argv[0] ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment