aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/other/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/login.c b/toys/other/login.c
index 9bd6cc95..5214b937 100644
--- a/toys/other/login.c
+++ b/toys/other/login.c
@@ -119,7 +119,7 @@ void login_main(void)
if (fchown(tty, pwd->pw_uid, pwd->pw_gid) || fchmod(tty, 0600))
printf("can't claim tty");
xsetuser(pwd);
- reset_env(pwd, FLAG(p));
+ reset_env(pwd, !FLAG(p));
// Message of the day
if ((ss = readfile("/etc/motd", 0, 0))) puts(ss);