Package: ifupdown
Version: 0.6.10
Tags: patch

Hi,

if a system is using /run then /dev/shm is a symlink pointing to /run/shm and
ifupdowns initscript will fail to create /etc/network/run

What happens is /etc/network/run is a symlink to /dev/shm/network so the
initscript will try to use its myreadlink() function to find the target.
myreadlink() however will return that the target is /dev/shm/network and so
when the initscript attempts to "mkdir -p /dev/shm/network" it will fail with:

mkdir: cannot create directory `/dev/shm': File exists

This is because /dev/shm is now a symlink to /run/shm and myreadlink() does
not handle dereferencing the nested symlink.

The attached patch makes myreadlink() recognise when it has found a nested
symlink and restart it's main loop again to dereference it resulting in it
calling "mkdir -p /run/shm/network" which will work as expected.

I hope this helps.

Thanks,

Niall




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to