--- at-3.1.13.orig/Makefile.in +++ at-3.1.13/Makefile.in @@ -65,13 +65,13 @@ all: at atd atrun at: $(ATOBJECTS) - $(CC) $(CFLAGS) -o at $(ATOBJECTS) $(LIBS) $(LEXLIB) + $(CC) $(LDFLAGS) -o at $(ATOBJECTS) $(LIBS) $(LEXLIB) rm -f $(CLONES) $(LN_S) -f at atq $(LN_S) -f at atrm atd: $(RUNOBJECTS) - $(CC) $(CFLAGS) -o atd $(RUNOBJECTS) $(LIBS) $(PAMLIB) + $(CC) $(LDFLAGS) -o atd $(RUNOBJECTS) $(LIBS) $(PAMLIB) y.tab.c y.tab.h: parsetime.y $(YACC) -d parsetime.y --- at-3.1.13.orig/at.c +++ at-3.1.13/at.c @@ -390,6 +390,22 @@ int export = 1; char *eqp; + /* Only accept alphanumerics and underscore in variable names. + * Also require the name to not start with a digit. + * Some shells don't like other variable names. + */ + { + char *p = *atenv; + if (isdigit(*p)) + export = 0; + for (; *p != '=' && *p != '\0'; ++p) { + if (!isalnum(*p) && *p != '_') { + export = 0; + break; + } + } + } + eqp = strchr(*atenv, '='); if (ap == NULL) eqp = *atenv; --- at-3.1.13.orig/debian/changelog +++ at-3.1.13/debian/changelog @@ -0,0 +1,498 @@ +at (3.1.13-2+deb7u1) wheezy; urgency=medium + + * at: Only retain variables whose name consists of alphanumerics and + underscores. This prevents jobs from failing in case bash exports + functions to the environment with the changes from DSA-3035. + + -- Ansgar Burchardt Tue, 30 Sep 2014 20:58:23 +0200 + +at (3.1.13-2) unstable; urgency=low + + * Use debhelper compat level 9 (to enable hardening by default). + * debian/rules: Also enable pie and bindnow hardening features. + * Use XZ compression for binary packages. + * Mark binary package as Multi-Arch: foreign. (Closes: #676782) + + -- Ansgar Burchardt Sat, 09 Jun 2012 13:32:34 +0200 + +at (3.1.13-1) unstable; urgency=low + + * New upstream release: + + Remove useless chdir(). (Closes: #587121) + + Create hardlink as priviledged user. (Closes: #597130) + + Add support for -r option required by POSIX. (Closes: #616697) + + Don't abort when job is removed just before we run it. (Closes: #309014) + + Do not strip binaries on install. (Closes: #436485) + * Recommend default-mta instead of exim4. (Closes: #542872) + * debian/control: Add dependency on ${misc:Depends}. (Closes: #586260) + * debian/control: Remove DM-Upload-Allowed. + * Update my email address. + * debian/source/format: Use source format 1.0. + * debian/copyright: Refer to specific versions of the GPL. + * Add debian/watch with a comment that Debian is upstream. + * debian/postinst: use "set -e" instead of "#!/bin/sh -e". + * debian/rules: Add build-arch, build-indep targets. + * Bump Standards-Version to 3.9.2. + + -- Ansgar Burchardt Sat, 25 Jun 2011 15:05:40 +0200 + +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 + + 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. + + -- Ansgar Burchardt Mon, 30 Nov 2009 20:03:34 +0900 + +at (3.1.11-1) unstable; urgency=low + + * New "upstream" release: + + correct comment in atd.c (Closes: #372640) + + rc: do not set -e (Closes: #445489) + + panic.c: switch permissions before unlink (Closes: #518456, #538702) + + at.c: add -t option (Closes: #515262) + + at.c: exit successfully when -V is given (Closes: #292657) + + fix some typos (Closes: #491131) + + set version to 3.1.11 (Closes: #484515) + + [ Cyril Brulebois ] + * Mark old changelog entries using “Old Changelog”. + * debian/rules: + + Stop setting SHELL to bash. + + Get rid of unneeded checkroot target. + + Get rid of unneeded local variables. + + Get rid of lines that are commented out. + + Get rid of obsolete source and diff targets. + + Get rid of unneeded dist and dsc targets. + + Get rid of unneeded variables. + + Use dh_install to install the config files. + + Call some dh_* tools at the end of the build. + - Call dh_md5sum (Closes: #309773) + + Call dh_install{changelogs,doc} to install docs. + + Use dh_installman/dh_compress to handle the manpages. + + Call dh_clean. + + Simplify calling configure. + + Use a build-stamp target. + + Use proper cleaning. + + Use “sed -i”, that's shorter. + + Get rid of the copyright, rules got rewritten. + + No longer make distclean errors. + + Remove additional removals, dh_clean will do that. + + Set SENDMAIL= for ./configure instead of using sed + * debian/control: + + Build-Depend on debhelper (>= 7). + + Update Maintainer/Uploaders according to ITA (Closes: #541013). + + Add Vcs-{Browser,Git} pointing to collab-maint/at.git + * Remove debian/conffiles, debhelper takes care of that. + + [ Ansgar Burchardt ] + * debian/rules: + + use config.{guess,sub} from autotools-dev (Closes: #536294) + + call configure as documented in autotools-dev (Closes: #480825) + + call dh_strip + + remove duplicate ChangeLog + * debian/control: + + do no longer build-dep on ssmtp | mail-transport-agent + (Closes: #524187) + + downgrade dependency on mail-transport-agent to recommends + (Closes: #468326) + + downgrade Priority to standard + + bump Standards-Version to 3.8.2 + * debian/prerm: do not ignore errors + * Copy updated debian/copyright from upstream + + -- Ansgar Burchardt Fri, 14 Aug 2009 20:24:03 +0200 + +at (3.1.10.2) unstable; urgency=low + + * Non-maintainer upload. + * Change Depends to include exim4 as alternative to mail-transport-agent. + (closes: #474999) + * Change Build-Depends to include ssmtp as alternative to + mail-transport-agent. This is what the Debian build daemons do anyway. + (closes: #491877) + + -- Christoph Berg Tue, 23 Sep 2008 11:11:21 +0200 + +at (3.1.10.1) unstable; urgency=low + + * Non-maintainer uploaded to fix release goal issue. + * Correct LSB header of init.d script (Closes: #376780). + + -- Petter Reinholdtsen Sun, 27 Jan 2008 06:15:14 +0100 + +at (3.1.10) unstable; urgency=low + + * Fix typo in init script (closes: #321141) + * Allow "at