- fixed bug introduced with at-3.1.8-tomorrow.patch (bnc#672586)

OBS-URL: https://build.opensuse.org/package/show/Base:System/at?expand=0&rev=25
This commit is contained in:
Vítězslav Čížek 2011-03-01 15:49:58 +00:00 committed by Git OBS Bridge
parent fc1b0ee4b5
commit c0da661fa8
3 changed files with 13 additions and 7 deletions

View File

@ -1,13 +1,13 @@
Index: at-3.1.8/parsetime.y
===================================================================
--- at-3.1.8.orig/parsetime.y
+++ at-3.1.8/parsetime.y
@@ -375,7 +375,7 @@ parsetime(int argc, char **argv)
diff --git a/parsetime.y b/parsetime.y
index ef1ff7f..9fe3d6f 100644
--- a/parsetime.y
+++ b/parsetime.y
@@ -379,7 +379,7 @@ parsetime(int argc, char **argv)
exectime -= 3600;
}
}
- if (time_only && (currtime > exectime)) {
+ if (currtime > exectime+1) {
+ if (time_only && (currtime > exectime+1)) {
exectime += 24*3600;
}
return exectime;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 1 15:33:34 UTC 2011 - vcizek@novell.com
- fixed bug introduced with at-3.1.8-tomorrow.patch (bnc#672586)
-------------------------------------------------------------------
Mon Feb 7 16:10:28 CET 2011 - jslaby@suse.de

View File

@ -26,7 +26,7 @@ License: GPLv2+
Group: System/Daemons
AutoReqProv: on
Version: 3.1.8
Release: 1088
Release: 1089
Summary: A Job Manager
Source: at_3.1.8-11.tar.gz
Source1: atd.init
@ -54,6 +54,7 @@ Patch14: %{name}-%{version}-pam-session-as-root.patch
Patch15: %{name}-%{version}-leak-fix.patch
#PATCH_FIX-OPENSUSE add proper system users to the deny list
Patch16: at-3.1.8-denylist.patch
#PATCH_FIX-OPENSUSE plan jobs with past time to tomorrow (bnc#672586)
Patch17: %{name}-%{version}-tomorrow.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %{_sbindir}/useradd %{_sbindir}/groupadd %fillup_prereq %insserv_prereq