- wrong jobdir mtime handling fixed (bnc#680113)
thanks to Ingo Schwarze OBS-URL: https://build.opensuse.org/package/show/Base:System/at?expand=0&rev=31
This commit is contained in:
parent
7d5fa05b21
commit
f70bc4ba53
20
at-3.1.8-jobdir-mtime.patch
Normal file
20
at-3.1.8-jobdir-mtime.patch
Normal file
@ -0,0 +1,20 @@
|
||||
Copyright (c) 2009 Ingo Schwarze <ischwarze@astaro.com>
|
||||
|
||||
This patch is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Index: atd.c
|
||||
===================================================================
|
||||
--- atd.c.orig
|
||||
+++ atd.c
|
||||
@@ -792,7 +792,7 @@ run_loop()
|
||||
if (stat(".", &buf) == -1)
|
||||
perr("Cannot stat " ATJOB_DIR);
|
||||
|
||||
- if (nothing_to_do && buf.st_mtime <= last_chg)
|
||||
+ if (nothing_to_do && buf.st_mtime == last_chg)
|
||||
return next_job;
|
||||
last_chg = buf.st_mtime;
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 19 07:40:28 UTC 2011 - vcizek@novell.com
|
||||
|
||||
- wrong jobdir mtime handling fixed (bnc#680113)
|
||||
thanks to Ingo Schwarze
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 5 15:36:24 UTC 2011 - vcizek@novell.com
|
||||
|
||||
|
3
at.spec
3
at.spec
@ -58,6 +58,8 @@ Patch16: at-3.1.8-denylist.patch
|
||||
Patch17: %{name}-%{version}-tomorrow.patch
|
||||
#PATCH-FIX-UPSTREAM race condition of atrm against job execution (bnc#679857)
|
||||
Patch18: %{name}-%{version}-atrm-race.patch
|
||||
#PATCH-FIX-UPSTREAM wrong mtime handling of jobdir (bnc#680113)
|
||||
Patch19: %{name}-%{version}-jobdir-mtime.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
PreReq: %{_sbindir}/useradd %{_sbindir}/groupadd %fillup_prereq %insserv_prereq
|
||||
Recommends: smtp_daemon
|
||||
@ -95,6 +97,7 @@ Authors:
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch18
|
||||
%patch19
|
||||
|
||||
%build
|
||||
%{?suse_update_config:%{suse_update_config -f}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user