2007-06-04 13:25:53 +02:00
|
|
|
Index: shfs-0.35/shfsmount/shfsmount.c
|
|
|
|
===================================================================
|
|
|
|
--- shfs-0.35.orig/shfsmount/shfsmount.c 2007-06-04 13:22:57.883055720 +0200
|
|
|
|
+++ shfs-0.35/shfsmount/shfsmount.c 2007-06-04 13:22:59.838758408 +0200
|
2007-05-08 23:45:02 +02:00
|
|
|
@@ -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;
|
2007-06-04 13:25:53 +02:00
|
|
|
Index: shfs-0.35/shfsmount/shfsumount.c
|
|
|
|
===================================================================
|
|
|
|
--- shfs-0.35.orig/shfsmount/shfsumount.c 2007-06-04 13:22:57.890054656 +0200
|
|
|
|
+++ shfs-0.35/shfsmount/shfsumount.c 2007-06-04 13:22:59.838758408 +0200
|
2007-05-08 23:45:02 +02:00
|
|
|
@@ -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));
|