+1999-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * inet/rcmd.c (__icheckhost): Fix typo in last patch.
+
+1999-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * wcsmbs/wcschr.c (wcschr): Fix last patch: Add missing semicolon.
+ * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
+
+1999-07-01 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * posix/wordexp.c (parse_tilde): Handle failing call to
+ get.*_r functions correctly for non-existing entry.
+ * sysdeps/posix/cuserid.c (cuserid): Likewise.
+ * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Likewise.
+
1999-06-30 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/gethostid.c: Handle failing call to
buffer = __alloca (buflen);
save_errno = errno;
while (__gethostbyname_r (lhost, &hostbuf, buffer, buflen, &hp, &herr)
- != 0
- || hp = NULL)
+ != 0)
if (herr != NETDB_INTERNAL || errno != ERANGE)
return (0);
else {
buffer = __alloca (buflen);
}
- if (result == 0 && pwd.pw_dir != NULL)
+ if (result == 0 && tpwd != NULL && pwd.pw_dir != NULL)
{
*word = w_addstr (*word, word_length, max_length, pwd.pw_dir);
if (*word == NULL)
buffer = __alloca (buflen);
}
- if (result == 0 && pwd.pw_dir)
+ if (result == 0 && tpwd != NULL && pwd.pw_dir)
*word = w_addstr (*word, word_length, max_length, pwd.pw_dir);
else
{
-/* Copyright (C) 1991, 1996, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
struct passwd pwent;
struct passwd *pwptr;
- if (__getpwuid_r (__geteuid (), &pwent, buf, sizeof (buf), &pwptr))
+ if (__getpwuid_r (__geteuid (), &pwent, buf, sizeof (buf), &pwptr)
+ || pwptr == NULL)
{
if (s != NULL)
s[0] = '\0';
r = __getservbyname_r (servicename, tp->name, &ts, tmpbuf, tmpbuflen,
&s);
- if (r)
+ if (r || s == NULL)
{
if (errno == ERANGE)
tmpbuflen *= 2;
do
if (*wcs == wc)
return (wchar_t *) wcs;
- while (*wcs++ != L'\0')
+ while (*wcs++ != L'\0');
return NULL;
}
do
if (*wcs == wc)
retval = wcs;
- while (*wcs++ != L'\0')
+ while (*wcs++ != L'\0');
return (wchar_t *) retval;
}