Re: [OE-core] [PATCH] libnss-mdns: avoid race condition in postinst

2011-11-15 Thread Richard Purdie
On Mon, 2011-11-14 at 13:06 +, Phil Blundell wrote: > Writing to "/tmp/nsswitch.conf" leads to a race condition if two > copies of the postinst are running simultaneously. Fix this by > modifying /etc/nsswitch.conf in place using sed -i. Also make the > same change to the prerm for consistenc

[OE-core] [PATCH] libnss-mdns: avoid race condition in postinst

2011-11-14 Thread Phil Blundell
Writing to "/tmp/nsswitch.conf" leads to a race condition if two copies of the postinst are running simultaneously. Fix this by modifying /etc/nsswitch.conf in place using sed -i. Also make the same change to the prerm for consistency although the race will not occur here in practice. Signed-off