- 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
This commit is contained in:
Dominique Leuenberger 2020-07-30 10:09:03 +00:00 committed by Git OBS Bridge
parent ae6c49bdd7
commit 026f679097
4 changed files with 9 additions and 3 deletions

View File

@ -650,7 +650,7 @@ getent passwd avahi-autoipd >/dev/null || \
%post autoipd %post autoipd
%{fillup_only -ns avahi autoipd} %{fillup_only -ns avahi autoipd}
# Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. # 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 %post -n libavahi-client3 -p /sbin/ldconfig
%postun -n libavahi-client3 -p /sbin/ldconfig %postun -n libavahi-client3 -p /sbin/ldconfig

View File

@ -650,7 +650,7 @@ getent passwd avahi-autoipd >/dev/null || \
%post autoipd %post autoipd
%{fillup_only -ns avahi autoipd} %{fillup_only -ns avahi autoipd}
# Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. # 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 %post -n libavahi-client3 -p /sbin/ldconfig
%postun -n libavahi-client3 -p /sbin/ldconfig %postun -n libavahi-client3 -p /sbin/ldconfig

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 30 10:06:28 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
- Call xargs -r0 instead of just xargs -r: guard against file names
with whitespaces.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 21 21:39:05 UTC 2020 - Michael Gorse <mgorse@suse.com> Tue Jul 21 21:39:05 UTC 2020 - Michael Gorse <mgorse@suse.com>

View File

@ -645,7 +645,7 @@ getent passwd avahi-autoipd >/dev/null || \
%post autoipd %post autoipd
%{fillup_only -ns avahi autoipd} %{fillup_only -ns avahi autoipd}
# Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. # 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 %post -n libavahi-client3 -p /sbin/ldconfig
%postun -n libavahi-client3 -p /sbin/ldconfig %postun -n libavahi-client3 -p /sbin/ldconfig