From 4022bbe105a332be9af0e33aa22e4886dfca7ba2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Tue, 4 Dec 2018 11:43:49 +0100 Subject: [PATCH] - rel 2; log pid in messages --- pid.patch | 11 +++++++++++ rsnapshot.spec | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 pid.patch diff --git a/pid.patch b/pid.patch new file mode 100644 index 0000000..2fb6ca5 --- /dev/null +++ b/pid.patch @@ -0,0 +1,11 @@ +--- rsnapshot-1.4.2/rsnapshot-program.pl~ 2015-12-12 00:55:44.000000000 +0100 ++++ rsnapshot-1.4.2/rsnapshot-program.pl 2018-12-04 11:41:44.825674546 +0100 +@@ -2257,7 +2257,7 @@ sub log_msg { + exit(1); + } + +- print LOG '[', get_current_date(), '] ', $str, "\n"; ++ print LOG '[', get_current_date(), '][', $$, '] ', $str, "\n"; + + $result = close(LOG); + if (!defined($result)) { diff --git a/rsnapshot.spec b/rsnapshot.spec index 3ca1c09..6f10519 100644 --- a/rsnapshot.spec +++ b/rsnapshot.spec @@ -3,12 +3,13 @@ Summary: Program for efficient remote updates of backup sets Summary(pl.UTF-8): Program do wydajnego zdalnego uaktualniania zbiorów kopii zapasowych Name: rsnapshot Version: 1.4.2 -Release: 1 +Release: 2 License: GPL v2+ Group: Daemons Source0: http://www.rsnapshot.org/downloads/%{name}-%{version}.tar.gz # Source0-md5: 860382f19e38fc649f9447397b54e442 Patch0: bug-207.patch +Patch1: pid.patch URL: http://www.rsnapshot.org/ BuildRequires: rpm-perlprov Requires: rsync @@ -24,6 +25,7 @@ w oparciu o rsynca. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %configure \ -- 2.44.0