ref: b89fcf2fe32195d0900b1a04ca98a4cb3cc62bf1
parent: 00eb2fa4487b39a5d5bcf1377a72bcb3391cb0bf
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Aug 5 10:09:02 EDT 2015
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.
--- a/sys/src/cmd/init.c
+++ b/sys/src/cmd/init.c
@@ -144,7 +144,7 @@
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);
}