summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/sh/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/main.c b/bin/sh/main.c
index 2135d30..2da5a15 100644
--- a/bin/sh/main.c
+++ b/bin/sh/main.c
@@ -150,7 +150,7 @@ main(int argc, char *argv[])
state1:
state = 2;
if (privileged == 0)
- read_profile(".profile");
+ read_profile("${HOME-}/.profile");
else
read_profile("/etc/suid_profile");
}
OpenPOWER on IntegriCloud