HOME variable in init/init.c
Asaf Kahlon
asafka7 at gmail.com
Sat Sep 15 15:36:27 UTC 2018
Hello,
I would like to know why HOME was set to "/" at init/init.c (the comment
above the code just says "Make sure environs is set to something sane")?
I would expect it to be "/root" considering that USER has been set to
"root"...
It can lead to different behaviors when running a daemon process as init
script compared to run it manually (e.g with a Python script which runs
expanduser).
It would be nice if someone can explain why this value was chosen (or
whether it's OK to send a patch to change it).
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20180915/c5f8c808/attachment.html>
More information about the busybox
mailing list