mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-15 10:30:40 +01:00
... and failures of getaddrinfo() when obtaining hostname. This requires a number of testing LD_PRELOD libraries, which just simulate system error. The actual test is rather small. see also https://github.com/rsyslog/rsyslog/issues/1573
15 lines
236 B
C
15 lines
236 B
C
#include <stdio.h>
|
|
|
|
int gethostname(char *name, size_t __attribute__((unused)) len)
|
|
{
|
|
*name++ = 'n';
|
|
*name++ = 'o';
|
|
*name++ = 'n';
|
|
*name++ = 'f';
|
|
*name++ = 'q';
|
|
*name++ = 'd';
|
|
*name++ = 'n';
|
|
*name++ = '\0';
|
|
return 0;
|
|
}
|