Package: at
Version: 3.1.9
Severity: minor
Tags: patch

atrm(1) says "Cannot find jobid N" when removing a job,
although it really does find and remove it.  Example
interaction:

    $ echo true | at 1:01
    warning: commands will be executed using /bin/sh
    job 74 at Sat Aug 27 01:01:00 2005

    $ atq
    72      Sun Aug 28 16:47:00 2005 a quarl
    74      Sat Aug 27 01:01:00 2005 a quarl
     
    $ atrm 74
    Cannot find jobid 74

    $ atq
    72      Sun Aug 28 16:47:00 2005 a quarl

The follow patch fixes the bug.


diff -u -ubr at-3.1.9/at.c at-3.1.9.new/at.c
--- at-3.1.9/at.c       2005-08-02 02:15:24.000000000 -0700
+++ at-3.1.9.new/at.c   2005-08-26 17:05:57.000000000 -0700
@@ -663,6 +663,7 @@
                    }

                     setregid(effective_gid, real_gid);
+                    done = 1;

                    break;


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (60, 'unstable'), (40, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-quack+roar.cs.berkeley.edu
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages at depends on:
ii  libc6                         2.3.5-3    GNU C Library: Shared libraries an
ii  libpam0g                      0.76-22    Pluggable Authentication Modules l
ii  postfix [mail-transport-agent 2.2.4-1    A high-performance mail transport 

at recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to