You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/etc/init.d scripts run as root, which is reflected in the ownership of files created by the scripts. But the environment does NOT have the correct USER=root and HOME=/root
The whole env at runtime is
SHLVL=1
HOME=/
TERM=linux
PATH=/usr/sbin:/usr/bin:/sbin:/bin
PWD=/
I see this on two different model TP Link routers running Openwrt 18.06.1
The text was updated successfully, but these errors were encountered:
You should not rely on user specific environment variables during system init. If you need access to such variables, you must explicitly declare them. Quoting POSIX spec:
HOME - The system shall initialize this variable at the time of login to be a pathname of the user's home directory.
Since during system init no user is logged in, providing a user specific environment would be wrong.
wiltedwalls:
/etc/init.d scripts run as root, which is reflected in the ownership of files created by the scripts. But the environment does NOT have the correct USER=root and HOME=/root
The whole env at runtime is
SHLVL=1
HOME=/
TERM=linux
PATH=/usr/sbin:/usr/bin:/sbin:/bin
PWD=/
I see this on two different model TP Link routers running Openwrt 18.06.1
The text was updated successfully, but these errors were encountered: