add username with getenv
This commit is contained in:
parent
49b91fc1d9
commit
7058a7e6c1
1 changed files with 3 additions and 0 deletions
3
rsudo.c
3
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
|
||||
|
|
Loading…
Reference in a new issue