troglobit / pimd

PIM-SM/SSM multicast routing for UNIX and Linux
http://troglobit.com/projects/pimd/
BSD 3-Clause "New" or "Revised" License
197 stars 87 forks source link

Default config uses "/etcpimd.conf" instead of "/etc/pimd.conf" #55

Closed amluto closed 9 years ago

amluto commented 9 years ago

This bit in Makefile is probably the culprit.

sysconfdir   ?= /etc
[...]
CPPFLAGS     += -D_PATH_SYSCONF=\"$(sysconfdir)\"

Compare to pathnames.h:

#ifndef _PATH_SYSCONF
#define _PATH_SYSCONF           "/etc/"
#endif

#define _PATH_PIMD_CONF         _PATH_SYSCONF "pimd.conf"

Note that explicitly setting --sysconfdir=/etc works fine:

        sysconfdir)
            echo "sysconfdir    = $arg/" >> $TMP
            ;;

On a related note, "sysconfidir" in the configure help text is a typo.

troglobit commented 9 years ago

Thanks for the report, will submit a fix soon!

troglobit commented 9 years ago

Fixed in 475e0d1, will be released as part of upcoming v2.3.1 release.