--------------------- PatchSet 3568 Date: 2003/10/02 10:07:09 Author: dtucker Branch: HEAD Tag: (none) Log: - (dtucker) [session.c] Fix bus errors on some 64-bit Solaris configurations. Based on patches by Matthias Koeppe and Thomas Baden. ok djm@ Members: ChangeLog:1.3052->1.3053 session.c:1.256->1.257 Index: openssh_cvs/ChangeLog diff -u openssh_cvs/ChangeLog:1.3052 openssh_cvs/ChangeLog:1.3053 --- openssh_cvs/ChangeLog:1.3052 Thu Oct 2 17:32:30 2003 +++ openssh_cvs/ChangeLog Thu Oct 2 20:07:09 2003 @@ -31,6 +31,8 @@ - (dtucker) [configure.ac] Don't set DISABLE_SHADOW when configuring --with-pam. ok djm@ - (dtucker) [ssh-gss.h] Prototype change missed in sync. + - (dtucker) [session.c] Fix bus errors on some 64-bit Solaris configurations. + Based on patches by Matthias Koeppe and Thomas Baden. ok djm@ 20030930 - (bal) Fix issues in openbsd-compat/realpath.c @@ -1266,4 +1268,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.3052 2003/10/02 07:32:30 dtucker Exp $ +$Id: ChangeLog,v 1.3053 2003/10/02 10:07:09 dtucker Exp $ Index: openssh_cvs/session.c diff -u openssh_cvs/session.c:1.256 openssh_cvs/session.c:1.257 --- openssh_cvs/session.c:1.256 Thu Oct 2 16:12:37 2003 +++ openssh_cvs/session.c Thu Oct 2 20:07:09 2003 @@ -906,7 +906,7 @@ { char **tmpenv = NULL, *var; u_int i, tmpenvsize = 0; - mode_t mask; + u_long mask; /* * We don't want to copy the whole file to the child's environment, @@ -927,7 +927,7 @@ if ((var = child_get_env(tmpenv, "UMASK")) != NULL) if (sscanf(var, "%5lo", &mask) == 1) - umask(mask); + umask((mode_t)mask); for (i = 0; tmpenv[i] != NULL; i++) xfree(tmpenv[i]);