Forgot comitting patches
[openwrt.git] / package / shfs / patches / 108-no_update_mtab.patch
1 --- shfs-0.35.orig/shfsmount/shfsmount.c 2004-06-01 14:16:19.000000000 +0100
2 +++ shfs-0.35/shfsmount/shfsmount.c 2007-03-28 21:23:47.194043034 +0100
3 @@ -74,7 +74,7 @@
4 static int have_uid = 0;
5
6 /* do not update /etc/mtab */
7 -static int nomtab = 0;
8 +static int nomtab = 1;
9
10 /* preserve owner of files */
11 static int preserve = 0;
12 --- shfs-0.35.orig/shfsmount/shfsumount.c 2004-06-01 14:16:19.000000000 +0100
13 +++ shfs-0.35/shfsmount/shfsumount.c 2007-03-28 21:49:28.937840351 +0100
14 @@ -67,10 +67,6 @@
15 FILE *new_mtab;
16 struct mntent *ment;
17
18 - if ((fd = open(MOUNTED"~", O_RDWR|O_CREAT|O_EXCL, 0600)) == -1) {
19 - fprintf(stderr, "Can't get "MOUNTED"~ lock file");
20 - return 0;
21 - }
22 close(fd);
23 if ((mtab = setmntent(MOUNTED, "r")) == NULL) {
24 fprintf(stderr, "Can't open " MOUNTED ": %s\n", strerror(errno));
This page took 0.035833 seconds and 5 git commands to generate.