From 70d9295138f53d5bd0405d9d5ae50ef7158dc1af Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 16 Jun 2012 21:06:37 +0000 Subject: fuse: update to 2.9.0 SVN-Revision: 32396 --- package/fuse/patches/112-no_break_on_mknod.patch | 2 +- .../300-workaround-uclibc-pthread-breakage.patch | 46 ---------------------- 2 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 package/fuse/patches/300-workaround-uclibc-pthread-breakage.patch (limited to 'package/fuse/patches') diff --git a/package/fuse/patches/112-no_break_on_mknod.patch b/package/fuse/patches/112-no_break_on_mknod.patch index 853603003f..5f913df6d6 100644 --- a/package/fuse/patches/112-no_break_on_mknod.patch +++ b/package/fuse/patches/112-no_break_on_mknod.patch @@ -1,6 +1,6 @@ --- a/util/Makefile.in +++ b/util/Makefile.in -@@ -584,7 +584,7 @@ uninstall-am: uninstall-binPROGRAMS unin +@@ -641,7 +641,7 @@ mount_util.c: $(top_srcdir)/lib/mount_ut install-exec-hook: -chmod u+s $(DESTDIR)$(bindir)/fusermount diff --git a/package/fuse/patches/300-workaround-uclibc-pthread-breakage.patch b/package/fuse/patches/300-workaround-uclibc-pthread-breakage.patch deleted file mode 100644 index a7d0c0ad2a..0000000000 --- a/package/fuse/patches/300-workaround-uclibc-pthread-breakage.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- a/lib/helper.c -+++ b/lib/helper.c -@@ -180,13 +180,41 @@ err: - int fuse_daemonize(int foreground) - { - int res; -+ int fd; - - if (!foreground) { -- res = daemon(0, 0); -+ /* uClibc daemon() has problems with pthread and friends */ -+ /* workaround from http://www.mail-archive.com/uclibc@uclibc.org/msg01073.html */ -+ /* res = daemon(0, 0); */ -+ switch (res = fork()) { -+ case -1: -+ return(-1); -+ case 0: -+ break; -+ default: -+ _exit(0); -+ } -+ - if (res == -1) { -- perror("fuse: failed to daemonize program\n"); -+ perror("fuse: failed to fork()\n"); - return -1; - } -+ -+ res=setsid(); -+ -+ if (res == -1) { -+ perror("fuse: failed to setsid()\n"); -+ } -+ -+ chdir("/"); -+ -+ if (fd = open("/dev/null", O_RDWR, 0) != -1) { -+ dup2(fd, STDIN_FILENO); -+ dup2(fd, STDOUT_FILENO); -+ dup2(fd, STDERR_FILENO); -+ if (fd > 2) -+ close(fd); -+ } - } - return 0; - } -- cgit v1.2.3