fuse: fix compilation with recent glibc 17531/head
authorRosen Penev <rosenp@gmail.com>
Sun, 9 Jan 2022 03:59:49 +0000 (19:59 -0800)
committerRosen Penev <rosenp@gmail.com>
Sun, 9 Jan 2022 04:38:19 +0000 (20:38 -0800)
closefrom is implemented now.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/fuse/Makefile
utils/fuse/patches/300-closefrom.patch [new file with mode: 0644]

index 375c6b4a11a8c353736177fdb659f307c5fc7f91..08059964dcd39ccd882980c138dbddfac47afde1 100644 (file)
@@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=fuse
 PKG_VERSION:=2.9.9
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/libfuse/libfuse/releases/download/$(PKG_NAME)-$(PKG_VERSION)
diff --git a/utils/fuse/patches/300-closefrom.patch b/utils/fuse/patches/300-closefrom.patch
new file mode 100644 (file)
index 0000000..a04f26c
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/util/ulockmgr_server.c
++++ b/util/ulockmgr_server.c
+@@ -124,7 +124,7 @@ static int receive_message(int sock, voi
+       return res;
+ }
+-static int closefrom(int minfd)
++static int closefrom2(int minfd)
+ {
+       DIR *dir = opendir("/proc/self/fd");
+       if (dir) {
+@@ -384,7 +384,7 @@ int main(int argc, char *argv[])
+               dup2(nullfd, 1);
+       }
+       close(3);
+-      closefrom(5);
++      closefrom2(5);
+       while (1) {
+               char c;
+               int sock;