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 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 &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);