[sudo-workers] [PATCH] Interpret YYDEBUG defined to zero as if it was undefined
Todd C. Miller
Todd.Miller at courtesan.com
Fri Feb 27 07:10:29 MST 2015
On Thu, 26 Feb 2015 15:22:49 -0500, David Michael wrote:
> If YYDEBUG is undefined, it's defined to 0 in gram.h, but then
> testsudoers.c tries to "#ifdef" it and gets unexpected results, which
> later breaks linking. Can this test be made consistent with gram.c and
> getdate.c which rely on undefined symbols evaluating to zero?
YYDEBUG is not defined in the gram.h shipped with sudo, though
perhaps bison puts it there. I'll just add:
#ifndef YYDEBUG
#define YYDEBUG 0
#endif
to the top of testsudoers.c like gram.c and getdate.c, then we can
use the #if YYDEBUG as you suggest.
- todd
More information about the sudo-workers
mailing list