[adm5120] load the mac address from flash where it is possible
[openwrt-10.03/.git] / package / shfs / patches / 108-no_update_mtab.patch
1 Index: shfs-0.35/shfsmount/shfsmount.c
2 ===================================================================
3 --- shfs-0.35.orig/shfsmount/shfsmount.c        2007-06-04 13:22:57.883055720 +0200
4 +++ shfs-0.35/shfsmount/shfsmount.c     2007-06-04 13:22:59.838758408 +0200
5 @@ -74,7 +74,7 @@
6  static int have_uid = 0;
7  
8  /* do not update /etc/mtab */
9 -static int nomtab = 0;
10 +static int nomtab = 1;
11  
12  /* preserve owner of files */
13  static int preserve = 0;
14 Index: shfs-0.35/shfsmount/shfsumount.c
15 ===================================================================
16 --- shfs-0.35.orig/shfsmount/shfsumount.c       2007-06-04 13:22:57.890054656 +0200
17 +++ shfs-0.35/shfsmount/shfsumount.c    2007-06-04 13:22:59.838758408 +0200
18 @@ -67,10 +67,6 @@
19         FILE *new_mtab;
20         struct mntent *ment;
21  
22 -        if ((fd = open(MOUNTED"~", O_RDWR|O_CREAT|O_EXCL, 0600)) == -1) {
23 -                fprintf(stderr, "Can't get "MOUNTED"~ lock file");
24 -                return 0;
25 -        }
26          close(fd);
27          if ((mtab = setmntent(MOUNTED, "r")) == NULL) {
28                  fprintf(stderr, "Can't open " MOUNTED ": %s\n", strerror(errno));