version 1.2, 2015/04/29 06:37:14 |
version 1.3, 2015/04/30 14:16:49 |
|
|
struct passwd *pw; |
struct passwd *pw; |
|
|
/* |
/* |
* If we don't set streams to line buffered explicitly, stdio uses |
* If we don't set stream buffering explicitly, stdio calls isatty() |
* isatty() which means ioctl() - too nasty to let through the systrace |
* which means ioctl() - too nasty to let through the systrace policy. |
* policy. |
|
*/ |
*/ |
setvbuf(stdout, NULL, _IOLBF, 0); |
setvbuf(stdout, NULL, _IOLBF, 0); |
setvbuf(stderr, NULL, _IOLBF, 0); |
setvbuf(stderr, NULL, _IONBF, 0); |
|
|
if (geteuid() == 0) { |
if (geteuid() == 0) { |
pw = getpwnam(user); |
pw = getpwnam(user); |