From c3966b88eeb1e0b5726ca16a70a94269d40ee152 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 31 Jul 1998 11:14:46 +0000 Subject: Update. 1998-07-31 11:10 Ulrich Drepper * elf/elf.h: Add lots of new symbols from Irix and Solaris. * sysdeps/unix/sysv/linux/sigstack.c: Include stddef.h to get NULL definition. 1998-07-31 Thorsten Kukuk * sunrpc/xcrypt.c: Use only the first 8 characters of the password. 1998-07-30 21:06 -0400 Zack Weinberg * sysdeps/generic/glob.c: Undefine strdup before defining it, because bits/string2.h may have defined it already. 1998-07-29 Andreas Schwab * stdio-common/vfscanf.c: Optimize looking for type modifiers. Fix recognition of 'a' modifier vs. 'a' format. (TYPEMOD): Removed. * stdio-common/printf-parse.h (parse_one_spec): Optimize looking for type modifiers. Fix recognition of 'hh' modifier. 1998-07-31 Thorsten Kukuk * sunrpc/svc_unix.c: Fix typo. 1998-07-31 Thorsten Kukuk * sysdeps/unix/sysv/linux/recvmsg.c: Don't check for SCM_CREDS before syscall. --- sunrpc/svc_unix.c | 2 +- sunrpc/xcrypt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sunrpc') diff --git a/sunrpc/svc_unix.c b/sunrpc/svc_unix.c index df56d9bd5c..a8ed53463e 100644 --- a/sunrpc/svc_unix.c +++ b/sunrpc/svc_unix.c @@ -138,7 +138,7 @@ svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) } memset (&addr, '\0', sizeof (addr)); addr.sun_family = AF_UNIX; - len = strlen (addr.sun_path) + 1; + len = strlen (path) + 1; memcpy (addr.sun_path, path, len); len += sizeof (addr.sun_family); diff --git a/sunrpc/xcrypt.c b/sunrpc/xcrypt.c index d770a7d648..bee38ad8b5 100644 --- a/sunrpc/xcrypt.c +++ b/sunrpc/xcrypt.c @@ -143,7 +143,7 @@ passwd2des (char *pw, char *key) int i; memset (key, 0, 8); - for (i = 0; *pw; i = (i + 1) % 8) + for (i = 0; *pw && i < 8; ++i) key[i] ^= *pw++ << 1; des_setparity (key); -- cgit 1.4.1