From 443b7d54943a1ecce00a9d77c1cf2c7d983fb1310dec8fe56379e79a09f2932c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Wed, 22 Nov 2023 20:59:12 +0000 Subject: [PATCH 1/2] Accepting request 1128131 from GNOME:Next - avahi-autoipd: guard %post chown with -h, to not follow symlinks (boo#1217398). OBS-URL: https://build.opensuse.org/request/show/1128131 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/avahi?expand=0&rev=230 --- avahi.changes | 6 ++++++ avahi.spec | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/avahi.changes b/avahi.changes index 302e2bb..3062df3 100644 --- a/avahi.changes +++ b/avahi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 22 12:55:06 UTC 2023 - Dominique Leuenberger + +- avahi-autoipd: guard %post chown with -h, to not follow symlinks + (boo#1217398). + ------------------------------------------------------------------- Mon Nov 13 10:15:01 UTC 2023 - Dominique Leuenberger diff --git a/avahi.spec b/avahi.spec index bb2d7b7..92dcbb4 100644 --- a/avahi.spec +++ b/avahi.spec @@ -414,7 +414,9 @@ Avahi is an implementation of the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. + # This is the avahi-discover command, only provided for the primary python3 flavor + %package -n python3-avahi-gtk Summary: A set of Avahi utilities written in Python Using python-gtk Group: Development/Languages/Python @@ -715,7 +717,7 @@ fi %{fillup_only -ns avahi autoipd} if getent passwd avahi > /dev/null; then # Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. - find %{_localstatedir}/lib/avahi-autoipd -user avahi -exec chown avahi-autoipd:avahi-autoipd {} + + find %{_localstatedir}/lib/avahi-autoipd -user avahi -exec chown -h avahi-autoipd:avahi-autoipd {} + fi %ldconfig_scriptlets -n libavahi-client%{avahi_client_sover} From 3f69dc7d077bbb8cf445a47645f03d94f0369b00c10670b5988742c2d1217e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Thu, 23 Nov 2023 10:29:12 +0000 Subject: [PATCH 2/2] Accepting request 1128273 from GNOME:Next - avahi-autoipd: drop the post script part migrating the user owning files in /var/lib/avahi-autoipd: the code was aiding migrations from SLE<=11/openSUSE<=12.3, which are no longer in scope for upgrades nowadays. OBS-URL: https://build.opensuse.org/request/show/1128273 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/avahi?expand=0&rev=231 --- avahi.changes | 8 ++++++++ avahi.spec | 5 ----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/avahi.changes b/avahi.changes index 3062df3..96599aa 100644 --- a/avahi.changes +++ b/avahi.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Nov 23 07:48:14 UTC 2023 - Dominique Leuenberger + +- avahi-autoipd: drop the post script part migrating the user + owning files in /var/lib/avahi-autoipd: the code was aiding + migrations from SLE<=11/openSUSE<=12.3, which are no longer in + scope for upgrades nowadays. + ------------------------------------------------------------------- Wed Nov 22 12:55:06 UTC 2023 - Dominique Leuenberger diff --git a/avahi.spec b/avahi.spec index 92dcbb4..b85508e 100644 --- a/avahi.spec +++ b/avahi.spec @@ -414,7 +414,6 @@ Avahi is an implementation of the DNS Service Discovery and Multicast DNS specifications for Zeroconf Computing. - # This is the avahi-discover command, only provided for the primary python3 flavor %package -n python3-avahi-gtk @@ -715,10 +714,6 @@ fi %post autoipd %{fillup_only -ns avahi autoipd} -if getent passwd avahi > /dev/null; then - # Change ownership of /var/lib/avahi-autoipd after upgrade from openSUSE <= 12.3 and SLE <= 11. - find %{_localstatedir}/lib/avahi-autoipd -user avahi -exec chown -h avahi-autoipd:avahi-autoipd {} + -fi %ldconfig_scriptlets -n libavahi-client%{avahi_client_sover} %ldconfig_scriptlets -n libavahi-common%{avahi_common_sover}