Package: debianutils
Version: 5.21
Severity: important
X-Debbugs-Cc: [email protected]

run-parts tries to implement the UAPI Configuration Files Spec, but it
fails on non-existing directories.  This is a bit not helpful, as one of
the reasons for this spec is to allow /etc to be empty.

diff -urN debianutils-5.21.orig/run-parts.c debianutils-5.21/run-parts.c
--- debianutils-5.21.orig/run-parts.c   2024-11-15 15:42:16.000000000 +0100
+++ debianutils-5.21/run-parts.c        2025-04-09 22:04:44.163743807 +0200
@@ -506,8 +506,7 @@
   for (int i = 0; dirnames[i] != NULL; i++) {
     DIR *dirfd = opendir(dirnames[i]);
     if (!dirfd) {
-      error("failed to opendir %s: %s", dirnames[i], strerror(errno));
-      exit(1);
+      continue;
     }
     struct dirent *dp;
     while ((dp = readdir(dirfd)) != NULL) {

Bastian

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (700, 'testing'), (500, 'proposed-updates'), (500, 'unstable'), 
(500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.13-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debianutils depends on:
ii  libc6  2.41-6

debianutils recommends no packages.

debianutils suggests no packages.

-- no debconf information

Reply via email to