summaryrefslogtreecommitdiff
path: root/package/shfs/patches/108-no_update_mtab.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-05-08 21:45:02 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-05-08 21:45:02 +0000
commit820555812e16ae9709c5d743d3250ab744c664e4 (patch)
treed12f1342572505893652c4c9ecbf6e05ba223d40 /package/shfs/patches/108-no_update_mtab.patch
parent6a543b6c1e4ea681cb4900636f4ed85535bf199f (diff)
downloadmtk-20170518-820555812e16ae9709c5d743d3250ab744c664e4.zip
mtk-20170518-820555812e16ae9709c5d743d3250ab744c664e4.tar.gz
mtk-20170518-820555812e16ae9709c5d743d3250ab744c664e4.tar.bz2
Forgot comitting patches
SVN-Revision: 7142
Diffstat (limited to 'package/shfs/patches/108-no_update_mtab.patch')
-rw-r--r--package/shfs/patches/108-no_update_mtab.patch24
1 files changed, 24 insertions, 0 deletions
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 0000000..1f519bb
--- /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));