summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-10-02 12:07:09 +0200
committerDarren Tucker <dtucker@zip.com.au>2003-10-02 12:07:09 +0200
commitf391ba673043ceb9b385f8e2f068c18d88a9c987 (patch)
tree8e07bbca93e72de4bfb0c533aa51f2a1771f937a /session.c
parent - (dtucker) [ssh-gss.h] Prototype change missed in sync. (diff)
downloadopenssh-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.c b/session.c
index 647be401e..ccdc4249f 100644
--- a/session.c
+++ b/session.c
@@ -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]);