diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-05 14:09:02 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-05 14:09:02 +0200 |
commit | b89fcf2fe32195d0900b1a04ca98a4cb3cc62bf1 (patch) | |
tree | 76dbea172045a9d6cc3990818249950717e52118 /sys/src/cmd/init.c | |
parent | 00eb2fa4487b39a5d5bcf1377a72bcb3391cb0bf (diff) |
init: do not run $home/lib/profile when cd $home failed
avoiding follow up error messages, which is annoying and
quite common when running a terminal as "none" for testing.
Diffstat (limited to 'sys/src/cmd/init.c')
-rw-r--r-- | sys/src/cmd/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/init.c b/sys/src/cmd/init.c index 3c4ec8b93..30b095a2b 100644 --- a/sys/src/cmd/init.c +++ b/sys/src/cmd/init.c @@ -144,7 +144,7 @@ rcexec(void) else if(manual || iscpu) execl("/bin/rc", "rc", nil); else if(strcmp(service, "terminal") == 0) - execl("/bin/rc", "rc", "-c", ". /rc/bin/termrc; home=/usr/$user; cd; . ./lib/profile", nil); + execl("/bin/rc", "rc", "-c", ". /rc/bin/termrc; home=/usr/$user; cd && . ./lib/profile", nil); else execl("/bin/rc", "rc", nil); } |