logo

skeud

Simple and portable utilities to deal with user accounts (su, login)
commit: 93ea6f71157fa3d23d607ba8162b1ff989bea051
parent ede0807dcc155cd71d80c51ddfe8978e7032007e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 11 Sep 2023 08:44:55 +0200

su: Simplify [-] handling

Diffstat:

Msu.c13++-----------
1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/su.c b/su.c @@ -89,17 +89,8 @@ main(int argc, char *argv[]) { opt_l = true; - if(argc >= 2) - { - username = argv[1]; - argc -= 2; - argv += 2; - } - else - { - argc -= 1; - argv += 1; - } + argc -= 1; + argv += 1; } if(argc > 1)