Package: resolvconf
Version: 1.87
Severity: important
Tags: patch

Hi,

debianutils 5.0 has moved run-parts from /bin to /usr/bin. This breaks 
etc/resolvconf/update.d/libc (part of resolvconf) which relies on run-parts, 
but sets PATH to /sbin:/bin.

The attached patch appends /usr/sbin:/usr/bin to the PATH which makes the 
script work with the change in debianutils 5.0.


Thanks for considering,
    Damyan


-- System Information:
Debian Release: 11.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-8-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages resolvconf depends on:
ii  debconf [debconf-2.0]  1.5.77
ii  lsb-base               11.1.0

resolvconf recommends no packages.

resolvconf suggests no packages.

-- debconf-show failed
diff --git a/debian/changelog b/debian/changelog
index 4e8de3d..c3ff3b9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+resolvconf (1.84+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * update.d/libc: add /usr/sbin:/usr/bin to $PATH
+    fixes run-parts usage with debianutils 5.0
+
+ -- Damyan Ivanov <d...@debian.org>  Wed, 18 Aug 2021 08:17:33 +0000
+
 resolvconf (1.84) unstable; urgency=medium
 
   [ Rob Leslie ]
diff --git a/etc/resolvconf/update.d/libc b/etc/resolvconf/update.d/libc
index 12298c7..1c4f6bc 100755
--- a/etc/resolvconf/update.d/libc
+++ b/etc/resolvconf/update.d/libc
@@ -16,7 +16,7 @@
 #
 
 set -e
-PATH=/sbin:/bin
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
 
 [ -x /lib/resolvconf/list-records ] || exit 1
 

Reply via email to