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

Richard Purdie richard.purdie at linuxfoundation.org
Tue Nov 15 12:21:27 UTC 2011


On Mon, 2011-11-14 at 13:06 +0000, 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 consistency although the race will not
> occur here in practice.
> 
> Signed-off-by: Phil Blundell <philb at gnu.org>
> ---
>  .../libnss-mdns/libnss-mdns_0.10.bb                |    8 +++-----
>  1 files changed, 3 insertions(+), 5 deletions(-)

Merged to master, thanks.

Richard





More information about the Openembedded-core mailing list