aboutsummaryrefslogtreecommitdiff
path: root/package/samba/samba-fix-mount.cifs.patch
blob: 9c235ea7be3193393459fa0831e6504dd01a4425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/client/mount.cifs.c	2011-09-13 10:26:21.000000000 +0200
+++ b/client/mount.cifs.c	2011-09-13 10:27:16.000000000 +0200
@@ -39,7 +39,6 @@
 #include <mntent.h>
 #include <fcntl.h>
 #include <limits.h>
-#include <fstab.h>
 #include "mount.h"
 
 #define MOUNT_CIFS_VERSION_MAJOR "1"
@@ -255,6 +254,10 @@
 	return 0;
 }
 #else /* CIFS_LEGACY_SETUID_CHECK */
+
+#ifndef _PATH_FSTAB
+#define _PATH_FSTAB "/etc/fstab"
+#endif
 static int
 check_fstab(const char *progname, char *mountpoint, char *devname,
 	    char **options)