From 026f6790970d2354e67fc33cd94eabaf790ac34c367f3e391a0688f2d23f478c Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 30 Jul 2020 10:09:03 +0000 Subject: [PATCH] - Call xargs -r0 instead of just xargs -r: guard against file names with whitespaces. OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/avahi?expand=0&rev=172 --- avahi-glib2.spec | 2 +- avahi-mono.spec | 2 +- avahi.changes | 6 ++++++ avahi.spec | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/avahi-glib2.spec b/avahi-glib2.spec index baf08c5..b95e898 100644 --- a/avahi-glib2.spec +++ b/avahi-glib2.spec @@ -650,7 +650,7 @@ getent passwd avahi-autoipd >/dev/null || \ %post autoipd %{fillup_only -ns avahi autoipd} # Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. -find %{_localstatedir}/lib/avahi-autoipd -user avahi |xargs chown avahi-autoipd:avahi-autoipd +find %{_localstatedir}/lib/avahi-autoipd -user avahi |xargs -r0 chown avahi-autoipd:avahi-autoipd %post -n libavahi-client3 -p /sbin/ldconfig %postun -n libavahi-client3 -p /sbin/ldconfig diff --git a/avahi-mono.spec b/avahi-mono.spec index 9a899d0..7e34884 100644 --- a/avahi-mono.spec +++ b/avahi-mono.spec @@ -650,7 +650,7 @@ getent passwd avahi-autoipd >/dev/null || \ %post autoipd %{fillup_only -ns avahi autoipd} # Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. -find %{_localstatedir}/lib/avahi-autoipd -user avahi |xargs chown avahi-autoipd:avahi-autoipd +find %{_localstatedir}/lib/avahi-autoipd -user avahi |xargs -r0 chown avahi-autoipd:avahi-autoipd %post -n libavahi-client3 -p /sbin/ldconfig %postun -n libavahi-client3 -p /sbin/ldconfig diff --git a/avahi.changes b/avahi.changes index 93aec67..5f604e2 100644 --- a/avahi.changes +++ b/avahi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 30 10:06:28 UTC 2020 - Dominique Leuenberger + +- Call xargs -r0 instead of just xargs -r: guard against file names + with whitespaces. + ------------------------------------------------------------------- Tue Jul 21 21:39:05 UTC 2020 - Michael Gorse diff --git a/avahi.spec b/avahi.spec index 7389b1c..fb0dd62 100644 --- a/avahi.spec +++ b/avahi.spec @@ -645,7 +645,7 @@ getent passwd avahi-autoipd >/dev/null || \ %post autoipd %{fillup_only -ns avahi autoipd} # Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. -find %{_localstatedir}/lib/avahi-autoipd -user avahi |xargs -r chown avahi-autoipd:avahi-autoipd +find %{_localstatedir}/lib/avahi-autoipd -user avahi |xargs -r0 chown avahi-autoipd:avahi-autoipd %post -n libavahi-client3 -p /sbin/ldconfig %postun -n libavahi-client3 -p /sbin/ldconfig