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:
Nicolas Williams
2022-12-07 21:25:37 -06:00
parent 0a15a9eea6
commit 9152d38d27

View File

@@ -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);