[PATCH] examples/udhcp/simple.script: fix resolv.conf update if it is a dangling symlink

Xabier Oneca -- xOneca xoneca at gmail.com
Fri Mar 29 09:36:36 UTC 2019


Hi,

> If /etc/resolv.conf is a symlink to a tmpfs and the actual file does not
> already exist, "readlink -f" will not detect it as symlink. Explicitely check
> for that condition before and touch the file, making the other code work as
> intended.

This is an inconsistency with respect to coreutils readlink. Coreutils
does return the file pointed by the symlink.

Cheers,


More information about the busybox mailing list