--- at-3.1.12.orig/atd.c +++ at-3.1.12/atd.c @@ -252,7 +252,10 @@ * somebody else has already locked it (a second atd?); log the * fact and return. */ - if (link(filename, newname) == -1) { + PRIV_START + rc = link(filename, newname); + PRIV_END + if (rc == -1) { if (errno == EEXIST) { free(mailname); free(newname); --- at-3.1.12.orig/debian/postrm +++ at-3.1.12/debian/postrm @@ -0,0 +1,8 @@ +#!/bin/sh +set -e +if [ "$1" = purge ] +then + rm -rf /var/spool/cron/atjobs /var/spool/cron/atspool +fi + +#DEBHELPER# --- at-3.1.12.orig/debian/rules +++ at-3.1.12/debian/rules @@ -0,0 +1,84 @@ +#!/usr/bin/make -f + +confflags = --prefix=/usr --with-loadavg_mx=1.5 \ + --with-jobdir=/var/spool/cron/atjobs \ + --with-atspool=/var/spool/cron/atspool \ + SENDMAIL=/usr/sbin/sendmail + +export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build $(DEB_HOST_GNU_TYPE) +else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +build: build-stamp +build-stamp: + [ -f config.sub.ori ] || mv config.sub config.sub.ori + [ -f config.guess.ori ] || mv config.guess config.guess.ori + ln -sf /usr/share/misc/config.sub . + ln -sf /usr/share/misc/config.guess . + + ./configure $(confflags) + $(MAKE) + $(MAKE) test + touch $@ + +clean: + [ ! -f Makefile ] || $(MAKE) distclean + [ ! -f config.sub.ori ] || mv -f config.sub.ori config.sub + [ ! -f config.guess.ori ] || mv -f config.guess.ori config.guess + dh_clean + +binary-indep: +# Nothing to be done here + +binary-arch: build-stamp + dh_testroot + dh_prep + # Install docs: + dh_installchangelogs ChangeLog + dh_installdocs README + # Install everything: + $(MAKE) IROOT=$(CURDIR)/debian/at mandir=/usr/share/man docdir=/usr/share/doc install + # Remove (duplicate) changelog and copyright: + rm debian/at/usr/share/doc/at/Copyright + rm debian/at/usr/share/doc/at/ChangeLog + # TODO: Take care of those: + rm -f debian/at/var/spool/cron/atjobs/.SEQ + chown daemon:daemon debian/at/var/spool/cron/atjobs debian/at/var/spool/cron/atspool + # Take care of the manpages: + dh_installman + mv debian/at/usr/share/man/man5/at_allow.5 \ + debian/at/usr/share/man/man5/at.allow.5 + rm debian/at/usr/share/man/man5/at_deny.5 + ln -sf at.allow.5 \ + debian/at/usr/share/man/man5/at.deny.5 + # TODO: Why removing those? + rm debian/at/usr/sbin/atrun + rm debian/at/usr/share/man/man8/atrun.8 + # Install/rename pam config file: + dh_install pam.conf etc/pam.d + mv debian/at/etc/pam.d/pam.conf \ + debian/at/etc/pam.d/atd + # Install/rename init script: + dh_install rc etc/init.d + mv debian/at/etc/init.d/rc \ + debian/at/etc/init.d/atd + chmod a+x debian/at/etc/init.d/atd + dh_installinit --name=atd --onlyscripts -- defaults 89 11 + # Needed to keep in line with the previous upload: + chown root:daemon debian/at/etc/at.deny + dh_compress + dh_installdeb + dh_shlibdeps + dh_strip + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch + +.PHONY: binary binary-arch binary-indep clean --- at-3.1.12.orig/debian/changelog +++ at-3.1.12/debian/changelog @@ -0,0 +1,467 @@ +at (3.1.12-1+squeeze1) squeeze; urgency=low + + * Create hardlink as priviledged user. (Closes: #597130) + Patch backported from at/3.1.13. + + -- Ansgar Burchardt Fri, 02 Mar 2012 18:36:16 +0100 + +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