Your message dated Tue, 02 Aug 2005 02:47:16 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#17561: fixed in at 3.1.9
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 15 Sep 2001 03:56:45 +0000
>From [EMAIL PROTECTED] Fri Sep 14 22:56:45 2001
Return-path: <[EMAIL PROTECTED]>
Received: from adsl-66-120-162-112.dsl.sntc01.pacbell.net (devel.office)
[66.120.162.112]
by master.debian.org with esmtp (Exim 3.12 1 (Debian))
id 15i6ZR-0003gX-00; Fri, 14 Sep 2001 22:56:45 -0500
Received: from christoph by devel.office with local (Exim 3.33 #1 (Debian))
id 15i6ZP-0002Mb-00; Fri, 14 Sep 2001 20:56:43 -0700
From: Christoph Lameter <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: at: [PATCH] Fix 8 character userid limit (Bug#101919). Add option to
set destination of output.
X-Reportbug-Version: 1.28
X-Mailer: reportbug 1.28
Date: Fri, 14 Sep 2001 20:56:42 -0700
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Package: at
Version: 3.1.8-10.1
Severity: important
Tags: patch
I found a strange problem in atd which is also mentioned in #101919 and I
fixed it. There was a limitation on the size of the userids stored in an
atjob. Since the size is now unlimited and the field is only used to know
wher to mail the results to I thought that it would be good to be able to
set that field to any email address which enables the forwarding of at
output to a convenient destination.
There was a comment in the source where Joey was wondering why at failed
across NFS. The problem might have been that the userid was resolved
differently across NFS so that the bug was triggered. I removed his comment
because it might no longer be relevant and its kind of strange there.
diff -urN o/at-3.1.8/ChangeLog at-3.1.8/ChangeLog
--- o/at-3.1.8/ChangeLog Sun Sep 28 11:39:19 1997
+++ at-3.1.8/ChangeLog Fri Sep 14 20:35:07 2001
@@ -57,3 +57,8 @@
Fixed bug where 'next monday' could be a synonym for today
Fixed spelling bug in parser (misspelled February)
Removed obsolete '-v' flag from atq
+
+at 3.1.8.1 Christoph Lameter <[EMAIL PROTECTED]>
+ Fix 8 character limitation on usernames
+ Add -t option
+
\ No newline at end of file
diff -urN o/at-3.1.8/at.1.in at-3.1.8/at.1.in
--- o/at-3.1.8/at.1.in Fri Sep 14 20:42:50 2001
+++ at-3.1.8/at.1.in Fri Sep 14 20:42:02 2001
@@ -9,6 +9,8 @@
.IR queue ]
.RB [ -f
.IR file ]
+.RB [ -t
+.IR email ]
.RB [ -mldbv ]
.B TIME
.br
@@ -214,6 +216,11 @@
Reads the job from
.BI file
rather than standard input.
+.TP 8
+.BI \-t " email-address"
+Send the output to the given
+.BI email address
+rather than to the user on this machine.
.TP 8
.B \-l
Is an alias for
diff -urN o/at-3.1.8/at.c at-3.1.8/at.c
--- o/at-3.1.8/at.c Fri Sep 14 20:42:50 2001
+++ at-3.1.8/at.c Fri Sep 14 20:30:37 2001
@@ -123,6 +123,7 @@
char atfile[] = ATJOB_DIR "/12345678901234";
char *atinput = (char *) 0; /* where to get input from */
+char *atto; /* Where to email results to */
char atqueue = 0; /* which queue to examine for jobs (atq) */
char atverify = 0; /* verify time instead of queuing job */
@@ -325,18 +326,22 @@
if ((fp = fdopen(fd, "w")) == NULL)
panic("Cannot reopen atjob file");
- /* Get the userid to mail to, first by trying getlogin(), which reads
+ /* Get the userid to mail to, first by checking if the user has set an
email, then getlogin(), which reads
* /var/run/utmp, then from LOGNAME, finally from getpwuid().
*/
- mailname = getlogin();
- if (mailname == NULL)
+ if (atto && atto[0])
+ mailname=atto;
+ else {
+ mailname = getlogin();
+ if (mailname == NULL)
mailname = getenv("LOGNAME");
- if ((mailname == NULL) || (mailname[0] == '\0')
- || (strlen(mailname) > 8) || (getpwnam(mailname) == NULL)) {
+ if ((mailname == NULL) || (mailname[0] == '\0')
+ || (strlen(mailname) > 20) || (getpwnam(mailname) == NULL)) {
pass_entry = getpwuid(real_uid);
if (pass_entry != NULL)
mailname = pass_entry->pw_name;
+ }
}
if (atinput != (char *) NULL) {
fpin = freopen(atinput, "r", stdin);
@@ -692,7 +697,7 @@
char *pgm;
int program = AT; /* our default program */
- char *options = "q:f:MmvldhVc"; /* default options for at */
+ char *options = "q:f:t:MmvldhVc"; /* default options for at */
int disp_version = 0;
time_t timer;
struct passwd *pwe;
@@ -797,6 +802,10 @@
options = "";
break;
+ case 't':
+ atto=optarg;
+ break;
+
default:
usage();
break;
diff -urN o/at-3.1.8/atd.c at-3.1.8/atd.c
--- o/at-3.1.8/atd.c Fri Sep 14 20:42:50 2001
+++ at-3.1.8/atd.c Fri Sep 14 20:55:15 2001
@@ -292,17 +292,12 @@
fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC);
- /*
- * If the spool directory is mounted via NFS `atd' isn't able to
- * read from the job file and will bump out here. The file is
- * opened as "root" but it is read as "daemon" which fails over
- * NFS and works with local file systems. It's not clear where
- * the bug is located. -Joey
- */
- if (fscanf(stream, "#!/bin/sh\n# atrun uid=%d gid=%d\n# mail %8s %d",
- &nuid, &ngid, mailbuf, &send_mail) != 4)
+ if (fscanf(stream, "#!/bin/sh\n# atrun uid=%d gid=%d\n# mail %s %d",
+ &nuid, &ngid, mailbuf, &send_mail) != 4) {
+
pabort("File %.500s is in wrong format - aborting",
filename);
+ }
if (mailbuf[0] == '-')
pabort("illegal mail name %.300s in job %8lu (%.300s)", mailbuf,
diff -urN o/at-3.1.8/debian/changelog at-3.1.8/debian/changelog
--- o/at-3.1.8/debian/changelog Fri Sep 14 20:42:50 2001
+++ at-3.1.8/debian/changelog Fri Sep 14 20:31:56 2001
@@ -1,3 +1,10 @@
+at (3.1.8-10.1) frozen unstable; urgency=low
+
+ * Remove 8 character limits on username
+ * add -t option allowing the specification of a destination email address
+
+ -- Christoph Lameter <[EMAIL PROTECTED]> Fri, 14 Sep 2001 20:31:17 -0700
+
at (3.1.8-10) frozen unstable; urgency=high
* Suidunregister /usr/bin (closes: Bug#59421).
diff -urN o/at-3.1.8/panic.c at-3.1.8/panic.c
--- o/at-3.1.8/panic.c Fri Sep 14 20:42:50 2001
+++ at-3.1.8/panic.c Fri Sep 14 20:28:51 2001
@@ -91,7 +91,7 @@
{
/* Print usage and exit.
*/
- fprintf(stderr, "Usage: at [-V] [-q x] [-f file] [-m] time\n"
+ fprintf(stderr, "Usage: at [-V] [-q x] [-f file] [-m] [-t emailaddress]
time\n"
" atq [-V] [-q x]\n"
" atrm [-V] [-q x] job ...\n"
" batch [-V] [-f file] [-m]\n");
-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux devel 2.4.9-ac10 #1 Sun Sep 9 22:18:58 PDT 2001 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages at depends on:
ii exim-tls [mail-transport-agen 3.33-1 Exim Mailer - with TLS (SSL) suppo
ii libc6 2.2.4-1 GNU C Library: Shared libraries an
---------------------------------------
Received: (at 17561-close) by bugs.debian.org; 2 Aug 2005 09:56:15 +0000
>From [EMAIL PROTECTED] Tue Aug 02 02:56:15 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
id 1DztMi-0001HW-00; Tue, 02 Aug 2005 02:47:16 -0700
From: Ryan Murray <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.56 $
Subject: Bug#17561: fixed in at 3.1.9
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Tue, 02 Aug 2005 02:47:16 -0700
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 14
Source: at
Source-Version: 3.1.9
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.9.dsc
to pool/main/a/at/at_3.1.9.dsc
at_3.1.9.tar.gz
to pool/main/a/at/at_3.1.9.tar.gz
at_3.1.9_i386.deb
to pool/main/a/at/at_3.1.9_i386.deb
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.
Ryan Murray <[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.7
Date: Tue, 2 Aug 2005 02:34:45 -0700
Source: at
Binary: at
Architecture: source i386
Version: 3.1.9
Distribution: unstable
Urgency: low
Maintainer: Ryan Murray <[EMAIL PROTECTED]>
Changed-By: Ryan Murray <[EMAIL PROTECTED]>
Description:
at - Delayed job execution and batch processing
Closes: 13603 17561 53586 61604 68364 70928 70988 79650 84351 84791 130023
133812 142810 153700 162677 173635 175211 193396 194674 200627 202617 205523
220336 239394 251058 257074 269440
Changes:
at (3.1.9) unstable; urgency=low
.
* Apply rewritten parser patch (closes: #70928)
* Several changes to be more SUSv3 compliant (closes: #133812)
* Remove yacc/flex generated files, and remove them in the clean target
* Remove /usr/doc handling from scripts (closes :#261467)
* use chown with : instead of . (closes: #205523)
* Add two precisions to format strings (closes: #220336)
* Fix manpage typos (closes: #153700, #175211)
* Use --retry option of start-stop-daemon (closes: #84351)
* Create /var/spool/cron/atjobs/.SEQ in the postinst (closes: #142810)
* Always rescan the queue after signals (closes: #194674)
* use 89 11 as parameters to update-rc.d defaults (closes: #200627)
* hold privs longer when creating pid file (closes: #13603)
* Add stdio.h for stderr to parsetime.y (closes: #130023)
* Use invoke-rc.d in maintainer scripts (closes: #162677)
* Allow usernames > 8 characters. Don't write out usernames with at that
atd will later call corrupt (closes: #17561)
* Run as user daemon, rather than root (from 3.1.8-11ubuntu3) (closes:
#251058)
+ Derooted /usr/bin/at.
+ at.c:
- Keep real uid, only switch to daemon gid when unlinking files (the
directory is daemon-group writeable, but the job files are owned by
user).
- Instead of creating the job file and then fchown()'ing it (which does
not work when running as non-root), change to the real gid when
creating the file.
+ atd.c:
- Don't check that the file gid is equal to the execution gid (since job
files are now always owned by "daemon".
- setgid() to the user's gid, not to the file gid for job execution.
+ debian/rules:
- Install /usr/bin/at as daemon:daemon 6555 instead of root:root 4755
(running as user daemon is necessary to be allowed to send a signal to
atd.)
- Install /etc/at.deny as root:daemon 640 instead of root:root 0600.
+ debian/postinst:
- Make /var/spool/cron/{atjobs,atspool} writeable for group "daemon".
- Update permissions of /etc/at.{allow,deny} if we upgrade from a
previous
version and there is no statoverride for these files.
* Update standards version (closes: #239394)
* Increment tm_mday for at "time" case, rather than hardcoded increment of
a day in seconds. (closes: #61604)
* Print usage on "at -c" (closes: #202617)
* Increment tm_year when the month and day are earlier than current
(closes: #79650)
* Drop ISO timeformat; following SUSv3 instead (closes: #53586)
* Add optional PAM support based on the submitted patch (closes: #68364)
* Use AC_FUNC_GETLOADAVG and getloadavg.c from XEmacs, so that the
system function is used first, then the getloadavg.c from at if it isn't
available (closes: #269440)
* Fix permissions of /var/spool/cron/at* in the deb files to match what is
used now
* Remove /usr/sbin/atrun; the packaging is set up for running as a daemon.
* Align batch(1) with SUSv3 by accepting no arguments (closes: #70988)
* Update description of -v option to clarify that it prints the time
before the job submission starts (closes: #257074)
* Update description of submission to uppercase queues (closes: #84791)
* Update atq format description (closes: #193396)
* Return EXIT_FAILURE if one jobid fails for -c and -r (closes: #173635)
Files:
d1df85e6898471736141ccb54fb7ddc6 501 admin important at_3.1.9.dsc
795f1d7ba2f77c5d85ec3e5abe6da46c 97949 admin important at_3.1.9.tar.gz
3b015ac30f98e55cb9a3972329a12445 41522 admin important at_3.1.9_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFC7z94N2Dbz/1mRasRAmz/AJ9U4XzfhawSEJhew/1nZPVxClVBYACfUsNn
+98uyJlwah5ywRystSzuOlU=
=E7Hk
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]