From f2ac390859a593015e5a1b10c011514483df4011 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Sep 14 2017 12:56:09 +0000 Subject: the ownership of the spool directory should be root (at is configured with daemon username root) - document the -n option --- diff --git a/at-3.1.20-document-n.patch b/at-3.1.20-document-n.patch new file mode 100644 index 0000000..c4d929a --- /dev/null +++ b/at-3.1.20-document-n.patch @@ -0,0 +1,22 @@ +diff -up at-3.1.20/atd.8.in.document-n at-3.1.20/atd.8.in +--- at-3.1.20/atd.8.in.document-n 2015-08-22 00:09:22.000000000 +0200 ++++ at-3.1.20/atd.8.in 2017-09-14 14:17:04.922086349 +0200 +@@ -9,6 +9,7 @@ atd \- run jobs queued for later executi + .IR batch_interval ] + .RB [ -d ] + .RB [ -f ] ++.RB [ -n ] + .RB [ -s ] + .SH DESCRIPTION + .B atd +@@ -40,6 +41,10 @@ Run + .BR atd + in the foreground. + .TP 8 ++.B -n ++Append the hostname of the system to the subject of the e-mails sent by ++.BR atd . ++.TP 8 + .B -s + Process the at/batch queue only once. + This is primarily of use for compatibility with old versions of diff --git a/at.spec b/at.spec index fc7d67e..d8e77f9 100644 --- a/at.spec +++ b/at.spec @@ -3,7 +3,7 @@ Summary: Job spooling tools Name: at Version: 3.1.20 -Release: 6%{?dist} +Release: 7%{?dist} # http://packages.debian.org/changelogs/pool/main/a/at/current/copyright # + install-sh is MIT license with changes under Public Domain License: GPLv3+ and GPLv2+ and ISC and MIT and Public Domain @@ -31,6 +31,7 @@ Patch14: at-3.1.16-fclose-error.patch Patch15: at-3.1.16-clear-nonjobs.patch Patch16: at-3.1.18-utc-dst.patch Patch17: at-3.1.20-lock-locks.patch +Patch18: at-3.1.20-document-n.patch BuildRequires: fileutils /etc/init.d BuildRequires: flex flex-static bison autoconf @@ -81,6 +82,7 @@ cp %{SOURCE1} . %patch15 -p1 -b .clear-nojobs %patch16 -p1 -b .dst %patch17 -p1 -b .lock-locks +%patch18 -p1 -b .document-n %build # patch9 touches configure.in @@ -138,7 +140,7 @@ make test %post touch %{_localstatedir}/spool/at/.SEQ chmod 600 %{_localstatedir}/spool/at/.SEQ -chown daemon:daemon %{_localstatedir}/spool/at/.SEQ +chown root:root %{_localstatedir}/spool/at/.SEQ %systemd_post atd.service %preun @@ -165,9 +167,9 @@ chown daemon:daemon %{_localstatedir}/spool/at/.SEQ %doc README timespec ChangeLog %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/at.deny %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/atd -%attr(0700,daemon,daemon) %dir %{_localstatedir}/spool/at -%attr(0600,daemon,daemon) %verify(not md5 size mtime) %ghost %{_localstatedir}/spool/at/.SEQ -%attr(0700,daemon,daemon) %dir %{_localstatedir}/spool/at/spool +%attr(0700,root,root) %dir %{_localstatedir}/spool/at +%attr(0600,root,root) %verify(not md5 size mtime) %ghost %{_localstatedir}/spool/at/.SEQ +%attr(0700,root,root) %dir %{_localstatedir}/spool/at/spool %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/atd %{_sbindir}/atrun %attr(0755,root,root) %{_sbindir}/atd @@ -179,6 +181,11 @@ chown daemon:daemon %{_localstatedir}/spool/at/.SEQ %attr(0644,root,root) /%{_unitdir}/atd.service %changelog +* Thu Sep 14 2017 Tomáš Mráz - 3.1.20-7 +- the ownership of the spool directory should be root as at is configured + with daemon username root +- document the -n option + * Wed Aug 02 2017 Fedora Release Engineering - 3.1.20-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild