Use MAX_HOST_NAME+1 (limits.h) instead of MAXHOSTNAMELEN (sys/param.h
or netdb.h).
This commit is contained in:
@@ -128,7 +128,7 @@ main(int argc, char *argv[])
|
||||
struct privilege *priv;
|
||||
struct userspec *us;
|
||||
char *p, *grfile, *pwfile;
|
||||
char hbuf[MAXHOSTNAMELEN + 1];
|
||||
char hbuf[HOST_NAME_MAX + 1];
|
||||
int match, host_match, runas_match, cmnd_match;
|
||||
int ch, dflag, exitcode = 0;
|
||||
debug_decl(main, SUDO_DEBUG_MAIN)
|
||||
|
Reference in New Issue
Block a user