commit: 5fba57eeb4777ef01479e00c2d23a1d52d0812df parent c3e87d50febee1c9f057f60fa80d2406a7bc49b2 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Fri, 23 May 2025 20:13:49 +0200 su: exit if there is no shell to be usedDiffstat:
M | su.c | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)diff --git a/su.c b/su.c
@@ -131,6 +131,8 @@ main(int argc, char *argv[]) else { fprintf(stderr, "su: No shell entry for user %s\n", username); + + return 1; } }