[packages/cronie] up to 1.5.1

glen glen at pld-linux.org
Sun Jun 26 18:53:41 CEST 2016


commit 49adf0266a48de893a289469e4ecb1e51d36d877
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jun 26 19:52:18 2016 +0300

    up to 1.5.1

 cronie-temp.patch | 79 -------------------------------------------------------
 cronie.spec       |  8 +++---
 2 files changed, 3 insertions(+), 84 deletions(-)
---
diff --git a/cronie.spec b/cronie.spec
index 2907777..f90431e 100644
--- a/cronie.spec
+++ b/cronie.spec
@@ -16,12 +16,12 @@
 
 Summary:	Cron daemon for executing programs at set times
 Name:		cronie
-Version:	1.5.0
-Release:	4
+Version:	1.5.1
+Release:	1
 License:	MIT and BSD and GPL v2
 Group:		Daemons
 Source0:	https://fedorahosted.org/releases/c/r/cronie/%{name}-%{version}.tar.gz
-# Source0-md5:	9db75e1884d83a45e002d145c6c54d45
+# Source0-md5:	910e6effcc032998b0a49fbd46322e18
 Source1:	%{name}.init
 Source3:	cron.sysconfig
 Source4:	%{name}.crontab
@@ -29,7 +29,6 @@ Source5:	%{name}.pam
 Source6:	crond.service
 Patch0:		inotify-nosys.patch
 Patch1:		sendmail-path.patch
-Patch2:		cronie-temp.patch
 URL:		https://fedorahosted.org/cronie/
 %{?with_audit:BuildRequires:	audit-libs-devel}
 BuildRequires:	autoconf
@@ -90,7 +89,6 @@ however this could be overloaded in settings.
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
 
 %build
 %{__aclocal}
diff --git a/cronie-temp.patch b/cronie-temp.patch
deleted file mode 100644
index 18964ff..0000000
--- a/cronie-temp.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-From 1222a0d414c52214e1ecc023889595945496acbb Mon Sep 17 00:00:00 2001
-From: Tomas Mraz <tmraz at fedoraproject.org>
-Date: Mon, 13 Jul 2015 11:19:55 +0200
-Subject: In crontab command use a temporary filename that is ignored by crond.
-
----
- src/crontab.c | 23 ++++++++++++-----------
- 1 file changed, 12 insertions(+), 11 deletions(-)
-
-diff --git a/src/crontab.c b/src/crontab.c
-index d165a06..e7a4878 100644
---- a/src/crontab.c
-+++ b/src/crontab.c
-@@ -104,7 +104,7 @@ edit_cmd(void),
- poke_daemon(void),
- check_error(const char *), parse_args(int c, char *v[]), die(int) ATTRIBUTE_NORETURN;
- static int replace_cmd(void), hostset_cmd(void), hostget_cmd(void);
--static char *host_specific_filename(const char *filename, int prefix);
-+static char *host_specific_filename(const char *prefix, const char *suffix);
- static const char *tmp_path(void);
- 
- static void usage(const char *msg) ATTRIBUTE_NORETURN;
-@@ -445,26 +445,27 @@ static const char *tmp_path(void) {
- 	return tmpdir ? tmpdir : "/tmp";
- }
- 
--static char *host_specific_filename(const char *filename, int prefix)
-+static char *host_specific_filename(const char *prefix, const char *suffix)
- {
- 	/*
- 	 * For cluster-wide use, where there is otherwise risk of the same
--	 * name being generated on more than one host at once, prefix with
--	 * "hostname." or suffix with ".hostname" as requested, and return
--	 * static buffer or NULL on failure.
-+	 * name being generated on more than one host at once, insert hostname
-+	 * separated with dots, and return static buffer or NULL on failure.
- 	 */
- 
- 	static char safename[MAX_FNAME];
--	char hostname[MAXHOSTNAMELEN];
-+	char hostname[MAX_FNAME];
- 
- 	if (gethostname(hostname, sizeof hostname) != 0)
- 		return NULL;
- 
- 	if (prefix) {
--		if (!glue_strings(safename, sizeof safename, hostname, filename, '.'))
-+		if (!glue_strings(safename, sizeof safename, prefix, hostname, '.'))
- 			return NULL;
--	} else {
--		if (!glue_strings(safename, sizeof safename, filename, hostname, '.'))
-+		strcpy(hostname, safename);
-+	}
-+	if (suffix) {
-+		if (!glue_strings(safename, sizeof safename, hostname, suffix, '.'))
- 			return NULL;
- 	}
- 
-@@ -745,7 +746,7 @@ static int replace_cmd(void) {
- 	char *safename;
- 
- 
--	safename = host_specific_filename("tmp.XXXXXXXXXX", 1);
-+	safename = host_specific_filename("#tmp", "XXXXXXXXXX");
- 	if (!safename || !glue_strings(TempFilename, sizeof TempFilename, SPOOL_DIR,
- 			safename, '/')) {
- 		TempFilename[0] = '\0';
-@@ -911,7 +912,7 @@ static int hostset_cmd(void) {
- 	if (!HostSpecified)
- 		gethostname(Host, sizeof Host);
- 	
--	safename = host_specific_filename("tmp.XXXXXXXXXX", 1);
-+	safename = host_specific_filename("#tmp", "XXXXXXXXXX");
- 	if (!safename || !glue_strings(TempFilename, sizeof TempFilename, SPOOL_DIR,
- 		safename, '/')) {
- 		TempFilename[0] = '\0';
--- 
-cgit v0.11.2
-
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cronie.git/commitdiff/49adf0266a48de893a289469e4ecb1e51d36d877



More information about the pld-cvs-commit mailing list