File: 0009-usr-sbin.patch

package info (click to toggle)
djbdns 1%3A1.05-22
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,180 kB
  • sloc: ansic: 15,836; makefile: 920; python: 728; sh: 237
file content (115 lines) | stat: -rw-r--r-- 3,773 bytes parent folder | download | duplicates (4)
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
106
107
108
109
110
111
112
113
114
115
Description: Teach the *-conf tools about /usr/sbin.
 In the Debian djbdns binary packages, some programs and tools are
 located in the /usr/sbin directory, not in /usr/bin.
Forwarded: not-needed
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2020-07-26

--- a/axfrdns-conf.c
+++ b/axfrdns-conf.c
@@ -51,7 +51,7 @@
   start("run");
   outs("#!/bin/sh\nexec 2>&1\nexec envdir ./env sh -c '\n  exec envuidgid "); outs(user);
   outs(" softlimit -d300000 tcpserver -vDRHl0 -x tcp.cdb -- \"$IP\" 53 ");
-  outs(auto_home); outs("/bin/axfrdns\n'\n");
+  outs(auto_home); outs("/sbin/axfrdns\n'\n");
   finish();
   perm(0755);
 
--- a/dnscache-conf.c
+++ b/dnscache-conf.c
@@ -123,7 +123,7 @@
   seed_addtime(); start("run");
   outs("#!/bin/sh\nexec 2>&1\nexec <seed\nexec envdir ./env sh -c '\n  exec envuidgid "); outs(user);
   outs(" softlimit -o250 -d \"$DATALIMIT\" ");
-  outs(auto_home); outs("/bin/dnscache\n'\n"); finish();
+  outs(auto_home); outs("/sbin/dnscache\n'\n"); finish();
   seed_addtime(); perm(0755);
   seed_addtime(); start("log/run");
   outs("#!/bin/sh\nexec setuidgid "); outs(loguser);
--- a/rbldns-conf.c
+++ b/rbldns-conf.c
@@ -52,7 +52,7 @@
   start("run");
   outs("#!/bin/sh\nexec 2>&1\nexec envuidgid "); outs(user);
   outs(" envdir ./env softlimit -d250000 ");
-  outs(auto_home); outs("/bin/rbldns\n");
+  outs(auto_home); outs("/sbin/rbldns\n");
   finish();
   perm(0755);
 
@@ -63,7 +63,7 @@
   perm(0644);
   start("root/Makefile");
   outs("data.cdb: data\n");
-  outs("\t"); outs(auto_home); outs("/bin/rbldns-data\n");
+  outs("\t"); outs(auto_home); outs("/sbin/rbldns-data\n");
   finish();
   perm(0644);
 
--- a/tinydns-conf.c
+++ b/tinydns-conf.c
@@ -47,7 +47,7 @@
   start("run");
   outs("#!/bin/sh\nexec 2>&1\nexec envuidgid "); outs(user);
   outs(" envdir ./env softlimit -d300000 ");
-  outs(auto_home); outs("/bin/tinydns\n");
+  outs(auto_home); outs("/sbin/tinydns\n");
   finish();
   perm(0755);
 
@@ -60,37 +60,37 @@
 
   start("root/add-ns");
   outs("#!/bin/sh\nexec ");
-  outs(auto_home); outs("/bin/tinydns-edit data data.new add ns ${1+\"$@\"}\n");
+  outs(auto_home); outs("/sbin/tinydns-edit data data.new add ns ${1+\"$@\"}\n");
   finish();
   perm(0755);
 
   start("root/add-childns");
   outs("#!/bin/sh\nexec ");
-  outs(auto_home); outs("/bin/tinydns-edit data data.new add childns ${1+\"$@\"}\n");
+  outs(auto_home); outs("/sbin/tinydns-edit data data.new add childns ${1+\"$@\"}\n");
   finish();
   perm(0755);
 
   start("root/add-host");
   outs("#!/bin/sh\nexec ");
-  outs(auto_home); outs("/bin/tinydns-edit data data.new add host ${1+\"$@\"}\n");
+  outs(auto_home); outs("/sbin/tinydns-edit data data.new add host ${1+\"$@\"}\n");
   finish();
   perm(0755);
 
   start("root/add-alias");
   outs("#!/bin/sh\nexec ");
-  outs(auto_home); outs("/bin/tinydns-edit data data.new add alias ${1+\"$@\"}\n");
+  outs(auto_home); outs("/sbin/tinydns-edit data data.new add alias ${1+\"$@\"}\n");
   finish();
   perm(0755);
 
   start("root/add-mx");
   outs("#!/bin/sh\nexec ");
-  outs(auto_home); outs("/bin/tinydns-edit data data.new add mx ${1+\"$@\"}\n");
+  outs(auto_home); outs("/sbin/tinydns-edit data data.new add mx ${1+\"$@\"}\n");
   finish();
   perm(0755);
 
   start("root/Makefile");
   outs("data.cdb: data\n");
-  outs("\t"); outs(auto_home); outs("/bin/tinydns-data\n");
+  outs("\t"); outs(auto_home); outs("/sbin/tinydns-data\n");
   finish();
   perm(0644);
 
--- a/walldns-conf.c
+++ b/walldns-conf.c
@@ -47,7 +47,7 @@
   start("run");
   outs("#!/bin/sh\nexec 2>&1\nexec envuidgid "); outs(user);
   outs(" envdir ./env softlimit -d250000 ");
-  outs(auto_home); outs("/bin/walldns\n");
+  outs(auto_home); outs("/sbin/walldns\n");
   finish();
   perm(0755);