NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/53015: dhcpd fails to start in -current



The following reply was made to PR bin/53015; it has been noted by GNATS.

From: Patrick Welche <prlw1%cam.ac.uk@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/53015: dhcpd fails to start in -current
Date: Mon, 12 Feb 2018 16:23:07 +0000

 lib/libc/gen/getcwd.c:
 
     86          if (resolved == NULL) {
     87                  fres = resolved = malloc(MAXPATHLEN);
     88                  if (resolved == NULL)
     89                          return NULL;
     90          } else
     91                  fres = NULL;
 
 dhcpd does call realpath with resolved == NULL. I suppose if the malloc
 fails (why?), realpath would return NULL without setting errno.
 


Home | Main Index | Thread Index | Old Index