sl: Unknown commands -> error
This will allow typos in kadmin heredocs in scripts to cause kadmin to exit with a non-zero status code.
This commit is contained in:
@@ -358,7 +358,7 @@ sl_command_loop(SL_cmd *cmds, const char *prompt, void **data)
|
||||
ret = sl_command(cmds, argc, argv);
|
||||
if(ret == -1) {
|
||||
sl_did_you_mean(cmds, argv[0]);
|
||||
ret = 0;
|
||||
ret = 1;
|
||||
}
|
||||
}
|
||||
free(buf);
|
||||
|
Reference in New Issue
Block a user