Skip to content

Commit 842671e

Browse files
committed
[0.4.11] [NFSD] Apply a hack to avoid CORE-13498
Committing into rls was requested by Pierre. The hack allows to startup nfsd even when getnameinfo() fails. My personal release-tests will not cover NFSD. like in last release (cherry picked from commit 39f5e56)
1 parent 26080d0 commit 842671e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

base/services/nfsd/nfs41_daemon.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,17 @@ static int getdomainname()
333333
(socklen_t)ptr->ai_addrlen, hostname, NI_MAXHOST,
334334
servInfo, NI_MAXSERV, NI_NAMEREQD);
335335
if (status)
336+
#if 0
336337
dprintf(1, "getnameinfo failed %d\n", WSAGetLastError());
337338
else {
339+
#else
340+
{
341+
dprintf(1, "getnameinfo failed %d, forcing name\n", WSAGetLastError());
342+
memcpy(hostname, "reactos.home", sizeof("reactos.home"));
343+
status = 0;
344+
}
345+
{
346+
#endif
338347
size_t i, len = strlen(hostname);
339348
char *p = hostname;
340349
dprintf(1, "getdomainname: hostname %s %d\n", hostname, len);

0 commit comments

Comments
 (0)