Package: cron
Version: 3.0pl1-116
Severity: minor
Tags: patch

Hi,

 crontab(5) leaves it ambiguous what happens when you interleave environment 
variables and commands, or repeat environment variables.  The following patch
clarifies the issue.

--- crontab.5.old       2011-04-13 16:42:57.000000000 +0100
+++ crontab.5   2011-04-13 16:43:58.000000000 +0100
@@ -40,7 +40,9 @@
 allowed on the same line as environment variable settings.
 .PP
 An active line in a crontab will be either an environment setting or a cron
-command.  An environment setting is of the form,
+command.  The crontab file is parsed from top to bottom, so any environment
+settings will affect only the cron commands below them in the file.
+An environment setting is of the form,
 .PP
     name = value
 .PP

 Thanks,

J.

-- Package-specific info:
--- EDITOR:

--- usr/bin/editor:
/bin/nano

--- /usr/bin/crontab:
-rwxr-sr-x 1 root crontab 30248 Dec 18 23:46 /usr/bin/crontab

--- /var/spool/cron
drwxr-xr-x 5 root root 4096 Jan 26 02:45 /var/spool/cron

--- /var/spool/cron/crontabs
drwx-wx--T 2 root crontab 4096 Apr  5 19:02 /var/spool/cron/crontabs


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

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cron depends on:
ii  adduser                 3.112+nmu2       add and remove users and groups
ii  debianutils             3.4              Miscellaneous utilities specific t
ii  dpkg                    1.15.8.10        Debian package management system
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  libpam-runtime          1.1.1-6.1        Runtime support for the PAM librar
ii  libpam0g                1.1.1-6.1        Pluggable Authentication Modules l
ii  libselinux1             2.0.96-1         SELinux runtime shared libraries
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip

Versions of packages cron recommends:
hi  exim [mail-transport-agent 3.36-16sarge1 An obsolete MTA (Mail Transport Ag
ii  lockfile-progs             0.1.15        Programs for locking and unlocking

Versions of packages cron suggests:
pn  anacron                       <none>     (no description available)
pn  checksecurity                 <none>     (no description available)
ii  logrotate                     3.7.8-6    Log rotation utility

Versions of packages cron is related to:
pn  libnss-ldap                   <none>     (no description available)
pn  libnss-ldapd                  <none>     (no description available)
pn  libpam-ldap                   <none>     (no description available)
pn  libpam-mount                  <none>     (no description available)
pn  nis                           <none>     (no description available)
pn  nscd                          <none>     (no description available)

-- debconf-show failed



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

Reply via email to