From 9e68ed5c6a19bd77f2a9fbb306777d2ade0f4097 Mon Sep 17 00:00:00 2001 From: Moritz Both Date: Sun, 1 Nov 2020 23:20:12 +0100 Subject: [PATCH] pkg/fileutil: fix constant for linux locking The constant F_OFD_GETLK is 36, not 37, according to /usr/include/bits/fcntl-linux.h Credits go to joakim-tjernlund who digged deep enough to find this. Fixes #31182 --- pkg/fileutil/lock_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/fileutil/lock_linux.go b/pkg/fileutil/lock_linux.go index b0abc98eeb0..8d92b283f3e 100644 --- a/pkg/fileutil/lock_linux.go +++ b/pkg/fileutil/lock_linux.go @@ -30,7 +30,7 @@ import ( // // constants from /usr/include/bits/fcntl-linux.h const ( - F_OFD_GETLK = 37 + F_OFD_GETLK = 36 F_OFD_SETLK = 37 F_OFD_SETLKW = 38 )