ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit f7bfe68a9e4e934081523f97cc3efc767eeafeeb
parent 86566f4cebaeaccf58b711b02432bf443ebb64f7
Author: sin <sin@2f30.org>
Date:   Fri Oct 18 10:33:02 +0100

We use environ so declare it

Diffstat:
su.c | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/su.c b/su.c @@ -10,12 +10,16 @@ #include <stdlib.h> #include "util.h" +extern char **environ; + static void usage(void) { - eprintf("usage: %s [username]\n", argv0); + eprintf("usage: %s [-l] [username]\n", argv0); } +static int lflag = 0; + int main(int argc, char **argv) { @@ -27,6 +31,9 @@ main(int argc, char **argv) int i; ARGBEGIN { + case 'l': + lflag = 1; + break; default: usage(); } ARGEND;