NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/41376: inconsistency in ADMINPORTDIR between racoon and racoonctl



>Number:         41376
>Category:       bin
>Synopsis:       inconsistency in ADMINPORTDIR between racoon and racoonctl
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 07 08:10:01 +0000 2009
>Originator:     S.P.Zeidler
>Release:        NetBSD 5.0 (still applies to -current)
>Organization:
        dis-
>Environment:
System: NetBSD volans 5.0 NetBSD 5.0 (VOLANS) #21: Mon May 4 09:55:10 CEST 2009 
spz@volans:/home/netbsd/i386/obj/home/netbsd/src/sys/arch/i386/compile/VOLANS 
i386
Architecture: i386
Machine: i386
>Description:
        src/usr.sbin/racoon/Makefile has ADMINPORTDIR /var/run,
        src/usr.sbin/racoonctl/Makefile has ADMINPORTDIR /var/racoon,
        rendering racoonctl useless (send: Bad file descriptor) without
        previous application of workarounds.
>How-To-Repeat:
        racoonctl show-sa isakmp
>Fix:
        Workaround:
        mkdir /var/racoon && ln -s /var/run/racoon.sock /var/racoon/racoon.sock
        Proper fix:
diff -u -r1.4 Makefile
--- Makefile    22 Apr 2009 15:23:07 -0000      1.4
+++ Makefile    7 May 2009 08:05:41 -0000
@@ -13,7 +13,7 @@
 CPPFLAGS+=     -I${DIST}/src/racoon -I${DIST}/src/libipsec     \
                -I${NETBSDSRCDIR}/lib/libipsec                  \
                -UIPSEC_DEBUG -DHAVE_CONFIG_H -DNOUSE_PRIVSEP   \
-               -DADMINPORTDIR=\"/var/racoon\"
+               -DADMINPORTDIR=\"/var/run\"
 LDADD+=        -lipsec
 DPADD+=        ${LIBIPSEC}
 CLEANFILES+=   racoonctl.cat8



Home | Main Index | Thread Index | Old Index