]> git.ozlabs.org Git - ppp.git/commit
pppd: Provide error() implementation in pppoe-discovery
authorStefan Nickl <Stefan.Nickl@gmail.com>
Wed, 10 Aug 2016 14:52:12 +0000 (16:52 +0200)
committerStefan Nickl <Stefan.Nickl@gmail.com>
Sat, 15 Oct 2016 17:00:59 +0000 (19:00 +0200)
commitb7b97dea6eb042fae0dfaca39cbb190411e5fd31
treeb185497d8ba3b0dedbc5bd54b3f14516058fe1d9
parent84684243d651f55f6df69d2a6707b52fbbe62bb9
pppd: Provide error() implementation in pppoe-discovery

The pppoe-discovery program calls error() from the CHECK_ROOM macro
defined in pppoe.h. Since pppoe-discovery is a standalone program not
linked with the rest of pppd, the only way this could build is by
linking to glibc's proprietary error(3) function instead of the function
of the same name (but with different arguments) defined in pppd/utils.c.

So with glibc this builds, but will probably crash when the assertion is
triggered. As the assertion is unlikely to fail, nobody has noticed.

The build however fails with musl libc or uClibc since they don't
provide the doppelganger.

Signed-off-by: Stefan Nickl <Stefan.Nickl@gmail.com>
pppd/plugins/rp-pppoe/pppoe-discovery.c