slirp4netns icon indicating copy to clipboard operation
slirp4netns copied to clipboard

Warning about resolv.conf symlink will not be printed if the symlink points to another symlink

Open pcahyna opened this issue 5 years ago • 3 comments

The code in #187 will not work (i.e. warning will not be printed, even though it should be) if /etc/resolv.conf is a symlink to /var/run/NetworkManager/resolv.conf and /var/run is a symlink to /run. (realpath(3) returns only the final path, but here the problem is in the intermediate symlink in the symlink hierarchy.)

Originally posted by @pcahyna in https://github.com/rootless-containers/slirp4netns/pull/187#issuecomment-695010524

pcahyna avatar Sep 18 '20 19:09 pcahyna

Thanks for reporting, what's your distro?

AkihiroSuda avatar Sep 19 '20 05:09 AkihiroSuda

Fedora. Updated from older releases, so the symlink may be a leftover from an older release.

pcahyna avatar Sep 21 '20 11:09 pcahyna

@giuseppe Have you seen this?

AkihiroSuda avatar Sep 21 '20 12:09 AkihiroSuda