Your message dated Mon, 30 Nov 2009 15:33:04 +0000
with message-id <[email protected]>
and subject line Bug#404965: fixed in at 3.1.12-1
has caused the Debian Bug report #404965,
regarding Relative dates fail at year end
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.)
--
404965: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404965
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: at
Version: 3.1.10
Severity: important
I schedule jobs in shell scripts using a syntax like :
at 3:30 tomorrow < ThisScript.sh >/dev/null 2>/dev/null
I noticed that jobs had not been run after 31/12/2007. Doing an 'at -l'
to list the jobs showed that all the jobs had been scheduled for 1 Jan
2009, rather than 1 Jan 2008.
Essentially, running 'at 3:30 tomorrow' (or similar, eg 'at 3:30 next
week') at the end of the year causes an extra year to be added to the
date. It wasn't until today (the 3rd that I've noticed that this was the
case - it could have been a problem for some time otherwise).
Examination of the source in parsetime.y, replacing the :
currtime = time(NULL);
with :
currtime = 1199071800; /* 31st Dec 2007 3:30am */
and removing the 'panic("refusing to create job destined in the past");'
check allowed me to play with the code in order to see the problem.
For example, this works fine :
buttercup:/home/justin/Root/AT/at-3.1.10# ./at -v 4pm
Mon Dec 31 16:00:00 2007
at>
However, this fails badly :
buttercup:/home/justin/Root/AT/at-3.1.10# ./at -v 4pm tomorrow
Thu Jan 1 16:00:00 2009
at>
Looking at the code, there is a check for a year having been specified.
If this is NOT set, and the date given is in the past, the year is
incremented :
else if (!yearspec) {
if ((exectm.tm_mon < currtm.tm_mon) ||
((exectm.tm_mon == currtm.tm_mon &&
exectm.tm_mday < currtm.tm_mday)))
exectm.tm_year++;
}
I /think/ that this yearspec variable should have been set when a
relative date is used. This is, however, just my interpretation of the
problem and it might be far more subtle than that.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-486
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Versions of packages at depends on:
ii libc6 2.3.6.ds1-13etch2 GNU C Library: Shared libraries
ii libpam0g 0.79-4 Pluggable Authentication Modules l
ii lsb-base 3.1-23.2etch1 Linux Standard Base 3.1 init scrip
ii postfix [mail-transpor 2.3.8-2+b1 A high-performance mail transport
at recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: at
Source-Version: 3.1.12-1
We believe that the bug you reported is fixed in the latest version of
at, which is due to be installed in the Debian FTP archive:
at_3.1.12-1.diff.gz
to main/a/at/at_3.1.12-1.diff.gz
at_3.1.12-1.dsc
to main/a/at/at_3.1.12-1.dsc
at_3.1.12-1_amd64.deb
to main/a/at/at_3.1.12-1_amd64.deb
at_3.1.12.orig.tar.gz
to main/a/at/at_3.1.12.orig.tar.gz
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.
Ansgar Burchardt <[email protected]> (supplier of updated at 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: SHA1
Format: 1.8
Date: Mon, 30 Nov 2009 20:03:34 +0900
Source: at
Binary: at
Architecture: source amd64
Version: 3.1.12-1
Distribution: unstable
Urgency: low
Maintainer: Ansgar Burchardt <[email protected]>
Changed-By: Ansgar Burchardt <[email protected]>
Description:
at - Delayed job execution and batch processing
Closes: 86662 208367 316442 335374 359010 372671 386665 404965 406359 453707
506829
Changes:
at (3.1.12-1) unstable; urgency=low
.
* New upstream release:
+ do not increment year twice (Closes: #404965) (LP: #312051)
+ do not increment day of month twice (Closes: #386665)
+ update documentation on removed environment variables
(Closes: #335374)
+ add -f option to stay in foreground (Closes: #208367) - thanks to
Marcela Maslanova <[email protected]>
+ error when day of month is 0 (Closes: #372671)
+ make less assumptations on open file descriptors (Closes: #453707)
+ add status action to init script (Closes: #506829)
+ make stdout, stderr available to sendmail process (Closes: #316442)
+ document -b option (LP: #156493)
+ document 4-digit years and ISO date format (Closes: #359010)
+ add test suite for date/time parser (Closes: #86662)
- add build-dep on perl (>= 5.10.1) for Test::More 0.92
* use dh_installinit (Closes: #406359)
* remove support for upgrading from pre-3.1.9
* remove rc, pam (moved upstream)
* remove Cyril Brulebois from Uploaders as requested on IRC
* now depends on lsb-base (>= 3.2-14) for status_of_proc in init script
* add dependency on libpam-runtime (>= 1.0.1-11) for
common-session-noninteractive
* update debian/copyright
* bump Standards-Version to 3.8.3 (no changes)
* debian/control: Add DM-Upload-Allowed: yes.
Checksums-Sha1:
1b658739322649af7e2b6885fc275a301046c3a7 1105 at_3.1.12-1.dsc
1cf47df152e9d119e083c11eefaf6368c993a8af 122082 at_3.1.12.orig.tar.gz
5d7ab7971665710715d6ec37b2310860141b1851 9366 at_3.1.12-1.diff.gz
65a8f6d8b79b487570c7539a9160f75e6a97bcac 50138 at_3.1.12-1_amd64.deb
Checksums-Sha256:
a22cac0f0b60ddb3edad8324b0fbb6c3f3057bf07a64c1d9b605afb442c2fc62 1105
at_3.1.12-1.dsc
7c55c6ab4fbe8add9e68f31b2b0ebf3fe805c9a4e7cfb2623a3d8a4789cc18f3 122082
at_3.1.12.orig.tar.gz
65513b71abd97db360f0e83606fb2e52ae82d6cba13b9924a8346eb385cc04df 9366
at_3.1.12-1.diff.gz
37b0f8ae858bea8bbc2775b0b3a0531f54279b55ac25ee7410eca3568dac6bc0 50138
at_3.1.12-1_amd64.deb
Files:
9a16c9baf37901948f45bfacdd3e677c 1105 admin standard at_3.1.12-1.dsc
1e67991776148fb319fd77a2e599a765 122082 admin standard at_3.1.12.orig.tar.gz
975ebe1fd25b42c3b2b66597ae7d31d6 9366 admin standard at_3.1.12-1.diff.gz
afe3edc58c3698cef8b4e643e86ea214 50138 admin standard at_3.1.12-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAksT2IMACgkQeGfVPHR5Nd0vgQCfYeq3OVV+pSgdBmYeCbUW3Dnp
hYQAn340BZKPOUCKNCR0k+b6iIbh98PJ
=Cp7l
-----END PGP SIGNATURE-----
--- End Message ---