Bug 313

Summary: aixauth_cleanup missing declaration
Product: Sudo Reporter: Dale King <daleking>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.7.0   
Hardware: IBM   
OS: AIX   

Description Dale King 2008-11-17 20:21:10 MST
Hi,

I received a compile error with 1.7.0rc5 and CVS under AIX:

make
        /usr/vac/bin/cc -qlanglvl=ansi -c -I. -I.   -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE -D_PATH_SUDOERS=\"/etc/sudoers\" 

-DSUDOERS_UID=0 -DSUDOERS_GID=0 -DSUDOERS_MODE=0440  ./auth/sudo_auth.c
"./auth/sudo_auth.c", line 61.5: 1506-045 (S) Undeclared identifier aixauth_cleanup.
make: 1254-004 The error code from the last command is 1.



The following fixes this for me:



*** auth/sudo_auth.h.orig       Tue Nov 18 12:15:20 2008
--- auth/sudo_auth.h    Tue Nov 18 12:15:20 2008
***************
*** 58,61 ****
--- 58,62 ----
  int sia_verify __P((struct passwd *pw, char *prompt, sudo_auth *auth));
  int sia_cleanup __P((struct passwd *pw, sudo_auth *auth));
+ int aixauth_cleanup __P((struct passwd *pw, sudo_auth *auth));
  int aixauth_verify __P((struct passwd *pw, char *pass, sudo_auth *auth));
  int bsdauth_init __P((struct passwd *pw, char **prompt, sudo_auth *auth));

Regards,
Dale
Comment 1 Todd C. Miller 2008-11-18 07:55:42 MST
Thanks, fixed in cvs.