Blame SOURCES/0168-RHBZ-1347769-shared-lock.patch

4728c8
---
4728c8
 libmultipath/configure.c |    2 +-
4728c8
 1 file changed, 1 insertion(+), 1 deletion(-)
4728c8
4728c8
Index: multipath-tools-130222/libmultipath/configure.c
4728c8
===================================================================
4728c8
--- multipath-tools-130222.orig/libmultipath/configure.c
4728c8
+++ multipath-tools-130222/libmultipath/configure.c
4728c8
@@ -552,7 +552,7 @@ lock_multipath (struct multipath * mpp,
4728c8
 		if (!pgp->paths)
4728c8
 			continue;
4728c8
 		vector_foreach_slot(pgp->paths, pp, j) {
4728c8
-			if (lock && flock(pp->fd, LOCK_EX | LOCK_NB) &&
4728c8
+			if (lock && flock(pp->fd, LOCK_SH | LOCK_NB) &&
4728c8
 			    errno == EWOULDBLOCK)
4728c8
 				goto fail;
4728c8
 			else if (!lock)