dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
6717ab
diff -up util-linux-2.23.2/sys-utils/flock.c.kzak util-linux-2.23.2/sys-utils/flock.c
6717ab
--- util-linux-2.23.2/sys-utils/flock.c.kzak	2014-03-25 12:00:53.735361387 +0100
6717ab
+++ util-linux-2.23.2/sys-utils/flock.c	2014-03-25 12:01:44.534886083 +0100
6717ab
@@ -250,6 +250,7 @@ int main(int argc, char *argv[])
6717ab
 			/* otherwise try again */
6717ab
 			continue;
6717ab
 		case EIO:
6717ab
+		case EBADF:		/* since Linux 3.4 (commit 55725513) */
6717ab
 			/* Probably NFSv4 where flock() is emulated by fcntl().
6717ab
 			 * Let's try to reopen in read-write mode.
6717ab
 			 */