1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 002-Fix_umounting_when_mtab_is_a_symlink
3
## by Miklos Szeredi <miklos@szeredi.hu>
5
## DP: Fix problem with umount and fusermount -u when /etc/mtab is a symlink.
10
diff -u fuse-2.7.1/lib/mount_util.c fuse-2.7.1/lib/mount_util.c.new
11
--- fuse-2.7.1/lib/mount_util.c 2007-10-16 18:35:23.000000000 +0200
12
+++ fuse-2.7.1/lib/mount_util.c.new 2007-11-23 15:22:41.192071753 +0100
17
+#include <sys/mount.h>
19
static int mtab_needs_update(const char *mnt)
25
- if (!mtab_needs_update(mnt))
27
+ if (!mtab_needs_update(mnt)) {
28
+ res = umount2(mnt, lazy ? 2 : 0);
30
+ fprintf(stderr, "%s: failed to unmount %s: %s\n", progname,
31
+ mnt, strerror(errno));