tags 243323 patch
thanks

djbdns-conf-fhs is the wrapper for the other *-conf utilities to set up
the various djbdns services, however, I think a check on how it was
called would not be a bad idea.

$ ls -l *-conf-fhs
lrwxrwxrwx  1 root root  15 Jul  9 13:08 axfrdns-conf-fhs -> djbdns-conf-fhs
-rwxr-xr-x  1 root root 289 Jul  9 11:42 djbdns-conf-fhs
lrwxrwxrwx  1 root root  15 Jul  9 13:08 dnscache-conf-fhs ->
djbdns-conf-fhs
lrwxrwxrwx  1 root root  15 Jul  9 13:08 pickdns-conf-fhs -> djbdns-conf-fhs
lrwxrwxrwx  1 root root  15 Jul  9 13:08 rbldns-conf-fhs -> djbdns-conf-fhs
lrwxrwxrwx  1 root root  15 Jul  9 13:08 tinydns-conf-fhs -> djbdns-conf-fhs
lrwxrwxrwx  1 root root  15 Jul  9 13:08 walldns-conf-fhs -> djbdns-conf-fhs

Kind Regards,
Michael Shuler
--- debian/djbdns-conf-fhs.orig	2003-11-18 22:39:05.000000000 -0600
+++ debian/djbdns-conf-fhs	2007-07-27 23:44:17.000000000 -0500
@@ -2,6 +2,13 @@
 
 umask 022
 
+WRAPPER=`basename ${0}`
+if [[ $WRAPPER = djbdns-conf-fhs ]]; then
+    echo "$WRAPPER is the FHS wrapper for the djbdns *-conf utilities."
+    echo "$WRAPPER is not intended to be run directly."
+    exit 1
+fi
+
 fhslogdir () {
 NEWLOGDIR=`basename $2`
 mkdir -p /var/log/djbdns/${NEWLOGDIR}

Reply via email to