Browse Source

at package update

Signed-off-by: basebuilder_pel7ppc64bebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64bebuilder0 5 years ago
parent
commit
0dc25c496e
  1. 14
      SOURCES/at-3.1.13-log-jobs.patch
  2. 7
      SPECS/at.spec

14
SOURCES/at-3.1.13-log-jobs.patch

@ -0,0 +1,14 @@
diff -up at-3.1.13/atd.c.log-jobs at-3.1.13/atd.c
--- at-3.1.13/atd.c.log-jobs 2017-09-14 16:00:38.109011916 +0200
+++ at-3.1.13/atd.c 2018-05-23 15:33:46.210978399 +0200
@@ -370,6 +370,10 @@ run_file(const char *filename, uid_t uid
pabort("Userid %lu not found - aborting job %8lu (%.500s)",
(unsigned long) uid, jobno, filename);
}
+
+ syslog(LOG_INFO, "Starting job %lu (%.500s) for user '%s' (%lu)",
+ jobno, filename, pentry->pw_name, (unsigned long) uid);
+
PRIV_START

stream = fopen(filename, "r");

7
SPECS/at.spec

@ -4,7 +4,7 @@
Summary: Job spooling tools Summary: Job spooling tools
Name: at Name: at
Version: 3.1.13 Version: 3.1.13
Release: 23%{?dist} Release: 24%{?dist}
# http://packages.debian.org/changelogs/pool/main/a/at/current/copyright # http://packages.debian.org/changelogs/pool/main/a/at/current/copyright
# + install-sh is MIT license with changes under Public Domain # + install-sh is MIT license with changes under Public Domain
License: GPLv3+ and GPLv2+ and ISC and MIT and Public Domain License: GPLv3+ and GPLv2+ and ISC and MIT and Public Domain
@ -35,6 +35,7 @@ Patch14: at-3.1.13-clear-nonjobs.patch
Patch15: at-3.1.13-utc-dst.patch Patch15: at-3.1.13-utc-dst.patch
Patch16: at-3.1.13-document-n.patch Patch16: at-3.1.13-document-n.patch
Patch17: at-3.1.13-aborted-jobs.patch Patch17: at-3.1.13-aborted-jobs.patch
Patch18: at-3.1.13-log-jobs.patch


BuildRequires: fileutils /etc/init.d BuildRequires: fileutils /etc/init.d
BuildRequires: flex flex-static bison autoconf BuildRequires: flex flex-static bison autoconf
@ -94,6 +95,7 @@ cp %{SOURCE1} .
%patch15 -p1 -b .dst %patch15 -p1 -b .dst
%patch16 -p1 -b .document-n %patch16 -p1 -b .document-n
%patch17 -p1 -b .aborted-jobs %patch17 -p1 -b .aborted-jobs
%patch18 -p1 -b .log-jobs


%build %build
# patch9 touches configure.in # patch9 touches configure.in
@ -200,6 +202,9 @@ chown root:root %{_localstatedir}/spool/at/.SEQ
%attr(0755,root,root) %{_initrddir}/atd %attr(0755,root,root) %{_initrddir}/atd


%changelog %changelog
* Wed May 23 2018 Tomáš Mráz <tmraz@redhat.com> - 3.1.13-24
- log the jobs being run

* Thu Sep 14 2017 Tomáš Mráz <tmraz@redhat.com> - 3.1.13-23 * Thu Sep 14 2017 Tomáš Mráz <tmraz@redhat.com> - 3.1.13-23
- fix the ownership of the spool directory (#1414228) - fix the ownership of the spool directory (#1414228)
- document the -n option of atd (#739870) - document the -n option of atd (#739870)

Loading…
Cancel
Save