Skip to content
Snippets Groups Projects
Commit ba0f7fa8 authored by Timothy Murphy's avatar Timothy Murphy
Browse files

Stop a crash in 66-init when it is used without any arguments. argc is never...

Stop a crash in 66-init when it is used without any arguments.  argc is never 0 so the "if (!argc) " statement won't print the usage.
parent 42166034
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ int ssexec_init(int argc, char const *const *argv,char const *const *envp,ssexec
gid_t gidowner ;
if (!yourgid(&gidowner,info->owner)) log_dieusys(LOG_EXIT_SYS,"set gid") ;
if (!argc) log_usage(usage_init) ;
if (argc <= 1) log_usage(usage_init) ;
if (*argv[1] == 'c') classic = 1 ;
else if (*argv[1] == 'd') db = 1 ;
else if (*argv[1] == 'b') classic = db = 1 ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment