Your message dated Mon, 28 Aug 2023 23:03:56 +0000
with message-id <[email protected]>
and subject line Bug#790027: fixed in debianutils 5.10
has caused the Debian Bug report #790027,
regarding debianutils: run-parts --lsbsysinit don't choose files with filename 
in the Debian cron script namespace
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
790027: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790027
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debianutils
Version: 4.4+b1
Severity: important

Dear Maintainer,

I think I've found a bug in run-parts and this bug affecs also the cron package.

The man page of run-parts says:
" If  the  --lsbsysinit  option  is given, then the names must not end in
       .dpkg-old  or .dpkg-dist or .dpkg-new or .dpkg-tmp, and must belong  to
       one  or more of the following namespaces: the LANANA-assigned namespace
       (^[a-z0-9]+$);   the   LSB   hierarchical   and   reserved   namespaces
       (^_?([a-z0-9_.]+-)+[a-z0-9]+$);  and  the  Debian cron script namespace
       (^[a-zA-Z0-9_-]+$)
"

So, if I run run-parts with --lsbsysinit option, it should select files with 
filename like "test_file"
because this file belongs to the Debian cron script namespace. But it doesn't 
select it.

For example, I have the next files in /etc/cron.d directory:
$ ls -l /etc/cron.d
total 8
-rw-r--r-- 1 root root 119 oct 23  2013 apticron
-rw-r--r-- 1 root root 355 mar 19  2012 cron-apt
-rw-r--r-- 1 root root  55 jun 26 11:52 test_file


If I run run-parts with --lsbsysinit option and without it, run-parts always 
should select the test_file, 
but it only selects it if --lsbsysinit is not used:
$ run-parts --list /etc/cron.d
/etc/cron.d/apticron
/etc/cron.d/cron-apt
/etc/cron.d/test_file

$ run-parts --list --lsbsysinit /etc/cron.d
/etc/cron.d/apticron
/etc/cron.d/cron-apt

$


According to man page of run-parts, the regexp of Debian cron script namespace 
is 
"^[a-zA-Z0-9_-]+$", so you can check the "test_file" filename belong to this 
namespace:
$ echo test_file | egrep "^[a-zA-Z0-9_-]+$"
test_file

An another problem of this behaviour is that cron doesn't run cronjobs of 
/etc/cron.d with 
filenames belong to the Debian cron script namespace if cron is executed with 
"-l" option.

I've seen this issue, at less, from Debian Wheezy.

Therefore, I think run-parts doesn't behave like run-parts man page says or 
this man page should be fixed
to show that --lsbsysinit option doesn't use the Debian cron script namespace.


Best regards,

Jorge


-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to es_ES.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debianutils depends on:
ii  libc6           2.19-18
ii  sensible-utils  0.0.9

debianutils recommends no packages.

debianutils suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: debianutils
Source-Version: 5.10
Done: Bastian Germann <[email protected]>

We believe that the bug you reported is fixed in the latest version of
debianutils, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Germann <[email protected]> (supplier of updated debianutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 29 Aug 2023 00:39:28 +0200
Source: debianutils
Architecture: source
Version: 5.10
Distribution: unstable
Urgency: medium
Maintainer: Bastian Germann <[email protected]>
Changed-By: Bastian Germann <[email protected]>
Closes: 790027 914921 1050725 1050752
Changes:
 debianutils (5.10) unstable; urgency=medium
 .
   * On non-usrmerged systems, correct run-parts/tmpfile links (Closes: 
#1050725)
   * ischroot: Do not claim it does not run as non-root (Closes: #914921)
   * Align the cron file regex with the documentation (Closes: #790027)
 .
   [ Johannes Schauer Marin Rodrigues ]
   * debian/postinst: add DPKG_ROOT prefix to paths in usrmerge()
     (Closes: #1050752)
Checksums-Sha1:
 4d6d278193ea681482f95788d55daf8bc9f8a84e 1421 debianutils_5.10.dsc
 ef3cf25d272b0382a6d8a92281327c383eae47e2 79444 debianutils_5.10.tar.xz
 88b1e3c3cb6739534bfff30127de4280d307a255 5675 debianutils_5.10_source.buildinfo
Checksums-Sha256:
 1cdec6457c3bc89bd04ab3fbe303f21a6d81ef91b65070f326bf50920b27b90c 1421 
debianutils_5.10.dsc
 55258f9955912fde0702a77db4d924ac0bce30548950320c9fef2bec520edc2a 79444 
debianutils_5.10.tar.xz
 4de09978fb1d90daf860b6f08b28dcb7614b15628e9f970758e4503d81de5449 5675 
debianutils_5.10_source.buildinfo
Files:
 52d75e44f26c71abcb4cff3e56936a2c 1421 utils required debianutils_5.10.dsc
 abdf8f46b2a9b240bd1c2211b97a32ca 79444 utils required debianutils_5.10.tar.xz
 fa4bb41fe4ba7ba1b07b5728b0c42454 5675 utils required 
debianutils_5.10_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmTtIqEQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFArzC/9C3FpTkBMwLjm2Yu6C8qGQV0Sk0RhXYjI5
ClNIKJXZ8kcd5rdMy3UP6Y+kzcMNxUPffRnuyT3AM4yBF2sSxE8aCfVqIYI5zwiO
FDmLOvMk9i0n3ohmWCCGq082tznTNN9qs7vzZV/I2DYX1+NuiIatKEJkvfZFNpF9
csAzwIhFfdnvZp8NGB9dSfjUkh2nH2IZtuQdBJPFD6WIR8q0PeLPwBhAeq8gIleR
Oc1y7YiwI0oTBJdoHTEdCZ2xJ0p5UWLhGC/2qPX17kfwR2OOrxVLNhkGtsGvA0rN
3Vq3N6wXcCKxvXYdcCqGvSUAJXZTf8lE8+85IVshfjZTDqrgilHr3av+/0513gma
enDl6DGxynxxWLSwXSC45Xa2rjhwF4ybf20dEp7fQX4tRDgaCB7n4JaS3Hmwe12Q
NAoZ8uPtebjXfJFEgSbXIg0MYjrpLRUynmmZVMwf+ptPUOaG2rLPr873I3fY+gFd
aYMWYR12x+pDEAFE4CSf0jflJOjsBP4=
=ij2O
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to