From 7058a7e6c1dde2af5ff601867e1546ebc7990f27 Mon Sep 17 00:00:00 2001 From: Luna Mendes Date: Sun, 3 Dec 2017 03:26:22 -0300 Subject: [PATCH] add username with getenv --- rsudo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rsudo.c b/rsudo.c index 9d67e33..a9ae75d 100644 --- a/rsudo.c +++ b/rsudo.c @@ -127,6 +127,9 @@ int main(int argc, char **argv) tot = join(tot, ","); tot = join(tot, uid_str); + tot = join(tot, ","); + tot = join(tot, getenv("USER")); + printf("sending command: %s\n", tot); // encode our data