summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/samba/samba-3.6.24/fhs-filespaths.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-connectivity/samba/samba-3.6.24/fhs-filespaths.patch')
-rw-r--r--meta-oe/recipes-connectivity/samba/samba-3.6.24/fhs-filespaths.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/samba/samba-3.6.24/fhs-filespaths.patch b/meta-oe/recipes-connectivity/samba/samba-3.6.24/fhs-filespaths.patch
new file mode 100644
index 000000000..e7c6b9995
--- /dev/null
+++ b/meta-oe/recipes-connectivity/samba/samba-3.6.24/fhs-filespaths.patch
@@ -0,0 +1,65 @@
1Description: Prepare the sources to better respect FHS
2 This patch was historically very long but most parts have
3 been integrated upstream.
4 .
5 The last remaining bit is the location of "private files
6 We historically have them in /var/lib/samba while upstream
7 has them in /etc/samba
8 .
9 We need to provide a migraiton path and go back to the "normal"
10 file layout
11Author: Eloy A. Paris <peloy@debian.org>
12Bug-Debian: http://bugs.debian.org/49011
13Forwarded: not-needed
14
15
16Index: samba/source3/passdb/pdb_tdb.c
17===================================================================
18--- samba.orig/source3/passdb/pdb_tdb.c
19+++ samba/source3/passdb/pdb_tdb.c
20@@ -1260,7 +1260,7 @@
21 /* save the path for later */
22
23 if (!location) {
24- if (asprintf(&tdbfile, "%s/%s", lp_private_dir(),
25+ if (asprintf(&tdbfile, "%s/%s", lp_statedir(),
26 PASSDB_FILE_NAME) < 0) {
27 return NT_STATUS_NO_MEMORY;
28 }
29Index: samba/source3/passdb/secrets.c
30===================================================================
31--- samba.orig/source3/passdb/secrets.c
32+++ samba/source3/passdb/secrets.c
33@@ -64,7 +64,7 @@
34 return True;
35
36 fname = talloc_asprintf(talloc_tos(), "%s/secrets.tdb",
37- lp_private_dir());
38+ lp_statedir());
39 if (fname == NULL) {
40 return false;
41 }
42Index: samba/docs/manpages/smb.conf.5
43===================================================================
44--- samba.orig/docs/manpages/smb.conf.5
45+++ samba/docs/manpages/smb.conf.5
46@@ -7167,7 +7167,7 @@
47 .\}
48 tdbsam
49 \- The TDB based password storage backend\&. Takes a path to the TDB as an optional argument (defaults to passdb\&.tdb in the
50-\m[blue]\fBprivate dir\fR\m[]
51+\m[blue]\fBstate directory\fR\m[]
52 directory\&.
53 .RE
54 .sp
55@@ -8038,9 +8038,7 @@
56 .PP
57 .RS 4
58 This parameters defines the directory smbd will use for storing such files as
59-smbpasswd
60-and
61-secrets\&.tdb\&.
62+smbpasswd\&. secrets\&.tdb is stored in state directory on Debian systems\&.
63 .sp
64 Default:
65 \fI\fIprivate dir\fR\fR\fI = \fR\fI${prefix}/private\fR\fI \fR