diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-10-02 12:07:09 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-10-02 12:07:09 +0200 |
commit | f391ba673043ceb9b385f8e2f068c18d88a9c987 (patch) | |
tree | 8e07bbca93e72de4bfb0c533aa51f2a1771f937a /session.c | |
parent | - (dtucker) [ssh-gss.h] Prototype change missed in sync. (diff) | |
download | openssh-f391ba673043ceb9b385f8e2f068c18d88a9c987.tar.xz openssh-f391ba673043ceb9b385f8e2f068c18d88a9c987.zip |
- (dtucker) [session.c] Fix bus errors on some 64-bit Solaris configurations.
Based on patches by Matthias Koeppe and Thomas Baden. ok djm@
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -906,7 +906,7 @@ read_etc_default_login(char ***env, u_int *envsize, uid_t uid) { 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 @@ read_etc_default_login(char ***env, u_int *envsize, uid_t uid) 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]); |