+++ /dev/null
-From f15a2daed7137481c7161e1447b1796c308c7e08 Mon Sep 17 00:00:00 2001
-From: David Teigland <teigland@redhat.com>
-Date: Tue, 06 Nov 2012 21:40:00 +0000
-Subject: dlm_controld: fix modes for run dir and file
-
-dir should be 775 and file 644
-
-Signed-off-by: David Teigland <teigland@redhat.com>
----
-diff --git a/dlm_controld/main.c b/dlm_controld/main.c
-index 91fbc4f..a68e1b8 100644
---- a/dlm_controld/main.c
-+++ b/dlm_controld/main.c
-@@ -1107,7 +1107,7 @@ static int lockfile(const char *dir, const char *name)
- int fd, rv;
-
- old_umask = umask(0022);
-- rv = mkdir(dir, 0777);
-+ rv = mkdir(dir, 0775);
- if (rv < 0 && errno != EEXIST) {
- umask(old_umask);
- return rv;
-@@ -1116,7 +1116,7 @@ static int lockfile(const char *dir, const char *name)
-
- snprintf(path, PATH_MAX, "%s/%s", dir, name);
-
-- fd = open(path, O_CREAT|O_WRONLY|O_CLOEXEC, 0666);
-+ fd = open(path, O_CREAT|O_WRONLY|O_CLOEXEC, 0644);
- if (fd < 0) {
- log_error("lockfile open error %s: %s",
- path, strerror(errno));
---
-cgit v0.9.0.3
Summary: General-purpose distributed lock manager
Summary(pl.UTF-8): Zarządca rozproszonych blokad ogólnego przeznaczenia
Name: dlm
-Version: 4.0.0
+Version: 4.0.1
Release: 1
License: LGPL v2.1+, GPL v2
Group: Libraries
-Source0: http://people.redhat.com/teigland/%{name}-%{version}.tar.gz
-# Source0-md5: 2db31a9728ede91a202ff6f3e5accf8d
+Source0: https://git.fedorahosted.org/cgit/dlm.git/snapshot/%{name}-%{version}.tar.bz2
+# Source0-md5: 3cd0b0830b1f5fcfdc58c83c5c2ca37b
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}.tmpfiles
Source4: dlm.conf
-Patch0: %{name}-perms.patch
URL: http://sources.redhat.com/cluster/dlm/
BuildRequires: corosync-devel >= 2.0
%{?with_dlm_stonith:BuildRequires: pacemaker-devel >= 1.1}
%prep
%setup -q
-%patch0 -p1
%build
%{__make} \