mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
auth/as: dont pollute parents environment or namespace (thanks jrmu, sl)
This commit is contained in:
parent
ddcfc1de22
commit
40177b86bf
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ main(int argc, char *argv[])
|
|||
if(argc == 0)
|
||||
usage();
|
||||
|
||||
/* don't pollute the parents environment / namespace */
|
||||
rfork(RFENVG|RFNAMEG);
|
||||
|
||||
if(becomeuser(argv[0]) < 0)
|
||||
sysfatal("can't change uid for %s: %r", argv[0]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue