rpms/cronie/devel reboot-alias-check-the-return-value.patch, NONE, 1.1 cronie.spec, 1.17, 1.18 cronie-1.2-reload.patch, 1.1, NONE init.patch, 1.1, NONE nofollow.patch, 1.1, NONE
Marcela Mašláňová
mmaslano at fedoraproject.org
Thu Jun 18 11:42:32 UTC 2009
Author: mmaslano
Update of /cvs/pkgs/rpms/cronie/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv804
Modified Files:
cronie.spec
Added Files:
reboot-alias-check-the-return-value.patch
Removed Files:
cronie-1.2-reload.patch init.patch nofollow.patch
Log Message:
* Thu Jun 18 2009 Marcela MaÅ¡láÅová <mmaslano at redhat.com> - 1.3-2
- 506560 check return value of access
reboot-alias-check-the-return-value.patch:
--- NEW FILE reboot-alias-check-the-return-value.patch ---
diff -up cronie-1.3/src/cron.c.old cronie-1.3/src/cron.c
--- cronie-1.3/src/cron.c.old 2009-05-22 08:16:34.000000000 +0200
+++ cronie-1.3/src/cron.c 2009-06-18 13:38:53.375571259 +0200
@@ -399,7 +399,7 @@ run_reboot_jobs(cron_db *db) {
pid_t pid = getpid();
/* lock exist - skip reboot jobs */
- if (access(REBOOT_LOCK, F_OK)) {
+ if (access(REBOOT_LOCK, F_OK) == 0) {
log_it("CRON", pid, "INFO", "@reboot jobs will be run at computer's startup.", 0);
return;
}
Index: cronie.spec
===================================================================
RCS file: /cvs/pkgs/rpms/cronie/devel/cronie.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -p -r1.17 -r1.18
--- cronie.spec 27 Apr 2009 10:22:22 -0000 1.17
+++ cronie.spec 18 Jun 2009 11:42:28 -0000 1.18
@@ -6,11 +6,12 @@
Summary: Cron daemon for executing programs at set times
Name: cronie
Version: 1.3
-Release: 1%{?dist}
+Release: 2%{?dist}
License: MIT and BSD
Group: System Environment/Base
URL: https://fedorahosted.org/cronie
Source0: https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz
+Patch0: reboot-alias-check-the-return-value.patch
#Source0: http://mmaslano.fedorapeople.org/cronie/%{name}-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -47,6 +48,7 @@ SELinux.
%prep
%setup -q
+%patch0 -p1
%build
@@ -63,8 +65,7 @@ SELinux.
%if %{with inotify}
--with-inotify
%endif
-
-make %{?_smp_mflags}
+make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
@@ -126,6 +127,9 @@ cp -a /var/lock/subsys/crond /var/lock/s
%config(noreplace) %{_sysconfdir}/cron.deny
%changelog
+* Thu Jun 18 2009 Marcela MaÅ¡láÅová <mmaslano at redhat.com> - 1.3-2
+- 506560 check return value of access
+
* Mon Apr 27 2009 Marcela MaÅ¡láÅová <mmaslano at redhat.com> - 1.3-1
- new release
--- cronie-1.2-reload.patch DELETED ---
--- init.patch DELETED ---
--- nofollow.patch DELETED ---
More information about the fedora-extras-commits
mailing list