File: fuse-2.9.2-closefrom.patch

package info (click to toggle)
foundry 1.1~beta-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 15,552 kB
  • sloc: ansic: 167,487; xml: 417; makefile: 21; sh: 19; javascript: 10
file content (20 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- fuse-2.9.2/util/ulockmgr_server.c.closefromfix	2019-01-04 05:33:33.000000000 -0800
+++ fuse-2.9.2/util/ulockmgr_server.c	2022-07-12 12:29:56.445402244 -0700
@@ -124,7 +124,7 @@
 	return res;
 }
 
-static int closefrom(int minfd)
+static int _closefrom(int minfd)
 {
 	DIR *dir = opendir("/proc/self/fd");
 	if (dir) {
@@ -384,7 +384,7 @@
 		dup2(nullfd, 1);
 	}
 	close(3);
-	closefrom(5);
+	_closefrom(5);
 	while (1) {
 		char c;
 		int sock;