[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] examples/udhcp/simple.script: fix resolv.conf update if it is a dangling symlink
From: Xabier Oneca -- xOneca <xoneca () gmail ! com>
Date: 2019-03-29 9:36:36
Message-ID: CACkgH70D-hrhaerfGZbgL5VfA3nZ1kB71+Z4QzqiF-neueE8UQ () mail ! gmail ! com
[Download RAW message or body]
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,
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic