From aea3a8fd08bbcda933cfc0b399a6b366140eed88 Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 8 May 2007 21:45:02 +0000 Subject: Forgot comitting patches git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7142 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/shfs/patches/108-no_update_mtab.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/shfs/patches/108-no_update_mtab.patch (limited to 'package/shfs/patches/108-no_update_mtab.patch') diff --git a/package/shfs/patches/108-no_update_mtab.patch b/package/shfs/patches/108-no_update_mtab.patch new file mode 100644 index 0000000000..1f519bb575 --- /dev/null +++ b/package/shfs/patches/108-no_update_mtab.patch @@ -0,0 +1,24 @@ +--- shfs-0.35.orig/shfsmount/shfsmount.c 2004-06-01 14:16:19.000000000 +0100 ++++ shfs-0.35/shfsmount/shfsmount.c 2007-03-28 21:23:47.194043034 +0100 +@@ -74,7 +74,7 @@ + static int have_uid = 0; + + /* do not update /etc/mtab */ +-static int nomtab = 0; ++static int nomtab = 1; + + /* preserve owner of files */ + static int preserve = 0; +--- shfs-0.35.orig/shfsmount/shfsumount.c 2004-06-01 14:16:19.000000000 +0100 ++++ shfs-0.35/shfsmount/shfsumount.c 2007-03-28 21:49:28.937840351 +0100 +@@ -67,10 +67,6 @@ + FILE *new_mtab; + struct mntent *ment; + +- if ((fd = open(MOUNTED"~", O_RDWR|O_CREAT|O_EXCL, 0600)) == -1) { +- fprintf(stderr, "Can't get "MOUNTED"~ lock file"); +- return 0; +- } + close(fd); + if ((mtab = setmntent(MOUNTED, "r")) == NULL) { + fprintf(stderr, "Can't open " MOUNTED ": %s\n", strerror(errno)); -- cgit v1.2.3