Last active
September 28, 2024 16:04
-
-
Save hholst80/c9ea7c17fa6c0bf0d3162d455900848b to your computer and use it in GitHub Desktop.
fuse-2.9.9 glibc patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/util/ulockmgr_server.c 2024-09-28 17:50:36.929276265 +0200 | |
+++ b/util/ulockmgr_server.c 2024-09-28 17:51:12.812268734 +0200 | |
@@ -124,24 +124,6 @@ | |
return res; | |
} | |
-static int closefrom(int minfd) | |
-{ | |
- DIR *dir = opendir("/proc/self/fd"); | |
- if (dir) { | |
- int dfd = dirfd(dir); | |
- struct dirent *ent; | |
- while ((ent = readdir(dir))) { | |
- char *end; | |
- int fd = strtol(ent->d_name, &end, 10); | |
- if (ent->d_name[0] && !end[0] && fd >= minfd && | |
- fd != dfd) | |
- close(fd); | |
- } | |
- closedir(dir); | |
- } | |
- return 0; | |
-} | |
- | |
static void send_reply(int cfd, struct message *msg) | |
{ | |
int res = send(cfd, msg, sizeof(struct message), MSG_NOSIGNAL); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment