sl: Fix exit(0) when incorrect usage

Any command that uses lib/sl for sub-commands fails to exit with a
non-zero exit code on usage error.

The fix is a one-character change in lib/sl/slc-gram.y.

Affected are all subcommands of:

 - ktutil
 - kadmin
 - heimtools
 - hxtool
 - gsstool
 - kdigest
 - iprop-log
This commit is contained in:
Nicolas Williams
2022-10-11 21:03:14 -05:00
parent ea4b822af7
commit ed40630174

View File

@@ -686,7 +686,7 @@ gen_wrapper(struct assignment *as)
(*th->free)(s);
free(s);
}
cprint(1, "return 0;\n");
cprint(1, "return 1;\n");
cprint(0, "}\n");
cprint(0, "\n");
free(n);