File: fix_path_names

package info (click to toggle)
tin 1%3A2.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,884 kB
  • sloc: ansic: 87,206; sh: 4,115; makefile: 1,486; yacc: 1,035; perl: 1,015
file content (105 lines) | stat: -rw-r--r-- 3,507 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
Fix all default path names to match the ones used on Debian systems.

The spool and overview paths match the ones used by INN 1.x, since TIN is
not able to read the spool of INN 2.x.

--- a/doc/tin.defaults
+++ b/doc/tin.defaults
@@ -27,7 +27,7 @@
 #              files
 # common values are /usr/lib/news, /var/lib/news, /usr/local/lib/news
 #
-#newslibdir=/usr/lib/news
+#newslibdir=/var/lib/news
 
 # bugaddress - defines the email address to which users can send
 #              bugreports using tin's built in function
@@ -46,7 +46,7 @@
 # expects the executable. The program's name is set to inews, don't
 # include it
 #
-#inewsdir=/usr/lib/news
+#inewsdir=/usr/bin
 
 # mm_charset - the default charset to be used in MIME's
 #              Content-Type header
@@ -72,7 +72,7 @@
 # as mail isn't guaranteed to be 8bit clean quoted-printable is
 # a good choice
 #
-#mail_mime_encoding=quoted-printable
+#mail_mime_encoding=8bit
 
 # disable_gnksa_domain_check - allow unregistered top level domains
 #
@@ -91,7 +91,7 @@
 #
 # disable_sender has no effect if inews_prog is not set to --internal.
 #
-#disable_sender=OFF
+disable_sender=ON
 
 ############# reading from a local spool #########################
 #
@@ -110,7 +110,7 @@
 # in a separate directory tree
 # common values are /var/spool/overview, /usr/spool/overview, /news/overview
 #
-#overviewdir=/var/spool/overview
+#overviewdir=/var/spool/news/over.view
 
 # overviewfile - the name of a single overview file
 #
@@ -125,28 +125,28 @@
 # usually the overview.fmt file is in newslibdir, so you only have
 # to change this setting if your configuration differs
 #
-#overviewfmtfile=/usr/lib/news/overview.fmt
+#overviewfmtfile=/etc/news/overview.fmt
 
 # activefile - the full pathname of your newssystem's active file
 #
 # usually the active file is in newslibdir, so you only have
 # to change this setting if your configuration differs
 #
-#activefile=/usr/lib/news/active
+#activefile=/var/lib/news/active
 
 # activetimesfile - the full pathname of your newssystem's active.times file
 #
 # usually the active.times file is in newslibdir, so you only have
 # to change this setting if your configuration differs
 #
-#activetimesfile=/usr/lib/news/active.times
+#activetimesfile=/var/lib/news/active.times
 
 # newsgroupsfile - the full pathname of your newssystem's newsgroups file
 #
 # usually the newsgroups file is in newslibdir, so you only have
 # to change this setting if your configuration differs
 #
-#newsgroupsfile=/usr/lib/news/newsgroups
+#newsgroupsfile=/var/lib/news/newsgroups
 
 # subscriptionsfile - the full pathname of your newssystem's
 #                     subscriptions file
@@ -154,4 +154,4 @@
 # usually the subscriptionsfile file is in newslibdir, so you only have
 # to change this setting if your configuration differs
 #
-#subscriptionsfile=/usr/lib/news/subscriptions
+#subscriptionsfile=/var/lib/news/subscriptions
--- a/src/init.c
+++ b/src/init.c
@@ -801,9 +801,9 @@ init_selfinfo(
 	if (!*subscriptions_file)
 		joinpath(subscriptions_file, sizeof(subscriptions_file), libdir, SUBSCRIPTIONS_FILE);
 	if (!*overviewfmt_file)
-		joinpath(overviewfmt_file, sizeof(overviewfmt_file), libdir, OVERVIEW_FMT);
+		joinpath(overviewfmt_file, sizeof(overviewfmt_file), "/etc/news/", OVERVIEW_FMT);
 	if (!*default_organization) {
-		joinpath(tmp, sizeof(tmp), libdir, "organization");
+		joinpath(tmp, sizeof(tmp), "/etc/news/", "organization");
 		if ((fp = fopen(tmp, "r")) != NULL) {
 			char buf[LEN];