Your message dated Sat, 29 Jul 2023 15:22:09 +0000
with message-id <e1qpllh-003ia6...@fasolo.debian.org>
and subject line Bug#1042363: fixed in systemd-cron 1.16.2-1
has caused the Debian Bug report #1042363,
regarding Regression in expansion of commands starting with tilde
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 ow...@bugs.debian.org
immediately.)
--
1042363: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1042363
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: systemd-cron
Version: 1.16.1-1
Severity: normal
Tags: upstream patch
The latest version of this package broke a previously working
cron job:
Jul 27 00:46:21 deadeye systemd[1]: Starting cron-ben-ben-0.service - [Cron] "2
0 * * * ~/bin/randomsig"...
Jul 27 00:46:21 deadeye sh[14398]: /run/systemd/generator/cron-ben-ben-0.sh: 1:
/home/benbin/randomsig: not found
Notice that there is no '/' after my home directory. Patch for
this is attached.
I already opened a PR for this upstream:
https://github.com/systemd-cron/systemd-cron/pull/92
Ben.
-- Package-specific info:
-- output of systemctl list-timers
NEXT LEFT LAST PASSED
UNIT ACTIVATES
Thu 2023-07-27 02:13:04 CEST 19min Thu 2023-07-27 01:25:20 CEST 28min ago
fwupd-refresh.timer fwupd-refresh.service
Thu 2023-07-27 03:04:00 CEST 1h 10min Wed 2023-07-26 03:35:54 CEST -
plocate-updatedb.timer plocate-updatedb.service
Thu 2023-07-27 05:10:00 CEST 3h 16min - -
cron-popularity-contest-root-0.timer cron-popularity-contest-root-0.service
Thu 2023-07-27 06:49:53 CEST 4h 56min Wed 2023-07-26 13:53:20 CEST -
apt-daily-upgrade.timer apt-daily-upgrade.service
Thu 2023-07-27 09:37:37 CEST 7h Wed 2023-07-26 03:48:39 CEST -
man-db.timer man-db.service
Thu 2023-07-27 13:24:19 CEST 11h Wed 2023-07-26 19:58:22 CEST 1h 55min ago
apt-daily.timer apt-daily.service
Thu 2023-07-27 20:16:44 CEST 18h Wed 2023-07-26 15:39:08 CEST 5h 36min ago
systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Fri 2023-07-28 00:00:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
dpkg-db-backup.timer dpkg-db-backup.service
Fri 2023-07-28 00:00:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
exim4-base.timer exim4-base.service
Fri 2023-07-28 00:00:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
logrotate.timer logrotate.service
Fri 2023-07-28 00:02:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
cron-ben-ben-0.timer cron-ben-ben-0.service
Fri 2023-07-28 00:10:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
cron-daily-0anacron.timer cron-daily-0anacron.service
Fri 2023-07-28 00:10:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
cron-daily-aptitude.timer cron-daily-aptitude.service
Fri 2023-07-28 00:10:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
cron-daily-calendar.timer cron-daily-calendar.service
Fri 2023-07-28 00:10:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
cron-daily-debsums.timer cron-daily-debsums.service
Fri 2023-07-28 00:10:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
cron-daily-dlocate.timer cron-daily-dlocate.service
Fri 2023-07-28 00:10:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
cron-daily-installation-birthday.timer cron-daily-installation-birthday.service
Fri 2023-07-28 00:10:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
cron-daily-lighttpd.timer cron-daily-lighttpd.service
Fri 2023-07-28 00:10:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
cron-daily-popularity-contest.timer cron-daily-popularity-contest.service
Fri 2023-07-28 00:10:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
cron-daily-prelink.timer cron-daily-prelink.service
Fri 2023-07-28 00:10:00 CEST 22h Thu 2023-07-27 00:46:21 CEST 1h 7min ago
cron-daily-sysstat.timer cron-daily-sysstat.service
Sun 2023-07-30 03:10:36 CEST 3 days Sun 2023-07-23 03:10:50 CEST -
e2scrub_all.timer e2scrub_all.service
Mon 2023-07-31 00:02:38 CEST 3 days Mon 2023-07-24 00:44:02 CEST -
fstrim.timer fstrim.service
Mon 2023-07-31 00:15:00 CEST 3 days Mon 2023-07-24 00:15:17 CEST -
cron-weekly-0anacron.timer cron-weekly-0anacron.service
Mon 2023-07-31 00:15:00 CEST 3 days Mon 2023-07-24 00:15:17 CEST -
cron-weekly-apt-xapian-index.timer cron-weekly-apt-xapian-index.service
Mon 2023-07-31 00:15:00 CEST 3 days Mon 2023-07-24 00:15:17 CEST -
cron-weekly-debsums.timer cron-weekly-debsums.service
Mon 2023-07-31 00:15:00 CEST 3 days Mon 2023-07-24 00:15:17 CEST -
cron-weekly-tor.timer cron-weekly-tor.service
Mon 2023-07-31 00:15:00 CEST 3 days Wed 2023-07-26 14:02:28 CEST -
systemd-cron-cleaner.timer systemd-cron-cleaner.service
Tue 2023-08-01 00:20:00 CEST 4 days Sat 2023-07-08 15:22:45 CEST -
cron-monthly-0anacron.timer cron-monthly-0anacron.service
Tue 2023-08-01 00:20:00 CEST 4 days Sat 2023-07-08 15:22:45 CEST -
cron-monthly-debsums.timer cron-monthly-debsums.service
30 timers listed.
Pass --all to see loaded but inactive timers, too.
-- output of systemd-delta
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500,
'stable-security'), (500, 'oldstable-updates'), (500, 'oldstable-security'),
(500, 'oldoldstable-updates'), (500, 'oldoldstable'), (500, 'unstable'), (500,
'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.4.0-1-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages systemd-cron depends on:
ii cron-daemon-common 3.0pl1-162
ii libc6 2.37-6
ii python3 3.11.4-5
ii systemd [systemd-sysusers] 254~rc3-3
ii systemd-sysv 254~rc3-3
systemd-cron recommends no packages.
Versions of packages systemd-cron suggests:
ii exim4 4.96-16
ii exim4-daemon-light [mail-transport-agent] 4.96-16
-- debconf-show failed
>From f139068a8fb06affdad2ba9cceea4a5ca8e40c16 Mon Sep 17 00:00:00 2001
From: Ben Hutchings <b...@debian.org>
Date: Thu, 27 Jul 2023 01:39:25 +0200
Subject: [PATCH] Fix expansion of commands starting with '~/'
We need to replace the '~' with home but keep '/' and everything
afterwards, i.e. slice [1:] from the command. This was recently
changed to take slice [2:], losing the '/'.
Fixes: 9ef7b89523e8 ("keep job.command as a List[str] all along")
---
src/bin/systemd-crontab-generator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bin/systemd-crontab-generator.py
b/src/bin/systemd-crontab-generator.py
index 785e977..4a3708a 100755
--- a/src/bin/systemd-crontab-generator.py
+++ b/src/bin/systemd-crontab-generator.py
@@ -276,7 +276,7 @@ CROND2TIMER = {
pass
if self.home:
if self.command[0].startswith('~/'):
- self.command[0] = self.home + self.command[0][2:]
+ self.command[0] = self.home + self.command[0][1:]
if 'PATH' in self.environment:
parts = self.environment['PATH'].split(':')
--- End Message ---
--- Begin Message ---
Source: systemd-cron
Source-Version: 1.16.2-1
Done: Alexandre Detiste <alexandre.deti...@gmail.com>
We believe that the bug you reported is fixed in the latest version of
systemd-cron, 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 1042...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Alexandre Detiste <alexandre.deti...@gmail.com> (supplier of updated
systemd-cron 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 ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 29 Jul 2023 16:31:04 +0200
Source: systemd-cron
Architecture: source
Version: 1.16.2-1
Distribution: unstable
Urgency: low
Maintainer: Debian Systemd Maintainers
<pkg-systemd-maintain...@lists.alioth.debian.org>
Changed-By: Alexandre Detiste <alexandre.deti...@gmail.com>
Closes: 1041911 1042363 1042370
Changes:
systemd-cron (1.16.2-1) unstable; urgency=low
.
* compatibility with Python3.12+ (Closes: #1042370)
* fix regression in expansion of commands starting with tilde
(Closes: #1042363), thanks to Ben Hutchings.
* fix regression in crontab (Closes: #1041911)
Checksums-Sha1:
40bb37bede6a7dabcb9231cedb4e34e601bdbffb 2102 systemd-cron_1.16.2-1.dsc
1838bb97c3a8cb8eda8872ab78c126515d56d9f7 35510 systemd-cron_1.16.2.orig.tar.gz
f8f259d9fe8c3b00e8f401f7bae7f314a568a3e8 8032
systemd-cron_1.16.2-1.debian.tar.xz
c37267c1b25821699689dd4f6a5897d8b3b44025 6859
systemd-cron_1.16.2-1_source.buildinfo
Checksums-Sha256:
8a6d27fc26d31f1802c12ee549ba9cb6f81cda09b8ba5d522867908b1d1cf586 2102
systemd-cron_1.16.2-1.dsc
5611e5465a9a5ee35721c304f8812ade2eeba1d0170aee778e2483fe9909f1c1 35510
systemd-cron_1.16.2.orig.tar.gz
84deb484764182d9e6a5cc0737c6aa8c1d3f9c48bcf832ac902010b377450db0 8032
systemd-cron_1.16.2-1.debian.tar.xz
d15a6c5710ae89bd92d36e401dbdf8a0aa4f4782734f5765e8099b19978e5edb 6859
systemd-cron_1.16.2-1_source.buildinfo
Files:
723eac70e8c773aca3fca9bf7b3c0f52 2102 admin optional systemd-cron_1.16.2-1.dsc
737d6a1a6906ebf3db62a06f8c5b9ca5 35510 admin optional
systemd-cron_1.16.2.orig.tar.gz
b5ba7db8fae0c51a196d53398723363c 8032 admin optional
systemd-cron_1.16.2-1.debian.tar.xz
a00597f0a439b1cdbc4de9603bfeab91 6859 admin optional
systemd-cron_1.16.2-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJQBAEBCgA6FiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmTFI48cHGFsZXhhbmRy
ZS5kZXRpc3RlQGdtYWlsLmNvbQAKCRAx8xRFRKF0GptWD/0ZfkLMiLsXf0jzYXma
jst3KkzErDprogKCnUVi0k6b36ykh0B0bdpGmzr5JRiO5IM2VL1QY3wLc5he9urn
d1nDT9jKkcWxdKJJ8xjaE2gfQFFeIib2aG15ZCvnYFjsIA+T4jzKMsT44lTYGrht
3RwFkrbVm8OQxLPOf4YnyuarkwiQhY0FDwQi/wwtFmVojwxbulFZqzsxJmdeU6OO
wX5C8gpaNpY/BptLWqGSFwRQT3cNAMWXO5+Z8bRsTE3IbyAodnEwJUvcBTAs3j/f
Qd3ihlwNrNgUkzVI3UtnATzak3av1PnSxLfef4dVhg5TiRNxAsA0DgbvQQjtV+Bi
Q6ddf3g3MCz6e7u6ekheiaj8cH1Ogac5HilMlINOwAM5xU2SzUzoiwBgOWMLj0d5
Ed/mt3RCF0JiDwHX1VYEeDWZ0lG+mAqeKWsfyzkOHrluYwzc7klg3PDcg0WbQ77+
fmJ0gvFK+OU8BRzYpRrNE/R4VYXjVaYrBgDqcs5Xw86KCujF7f50NSG3fNPRQYau
6XUqMM50qfiB45dl0Paoklm0nvJUWfWrIhm/g4uCvLtSmohYeqiy7e2oZU51RB4D
122lCeqikoiHPGqZks3cXlvyUGteALsFoNXMKdNCg0S5NiaJo6rXPNUCafwy5xLf
AJl5Ip66sx1uy5ruee8DSZXLgg==
=oLtH
-----END PGP SIGNATURE-----
--- End Message ---