Vasilis Tsiligiannis wrote:
> It's not so safe, as user home dir can be overriden in a shell by setting
> the "$HOME" environment variable.
This is at least an explicit declaration that something else ought to
be treated as ${HOME}; if someone sets it badly, all sorts of things
are subject to failure.
On the other hand, there’s no requirement that /etc/passwd be the
source of data for getpwent and friends. uClibc effectively mandates
/etc/passwd, but OpenWrt is (supposed to be) buildable with other libc
implementations.
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel