Displaying 6 results from an estimated 6 matches for "read_etc_default_login".
2003 Sep 16
2
openssh 3.7p1 bus error on sparcv9
...3.7p1 sshd on Solaris 8 / sparcv9:
sshd runs fine, and starts to allow the login. However, when reading
from /etc/default/login, I get a bus error. I am able to get sshd to
work by commenting out these lines in session.c:
1015,1018c1015
< # ifdef HAVE_ETC_DEFAULT_LOGIN
< read_etc_default_login(&env, &envsize, pw->pw_uid);
< path = child_get_env(env, "PATH");
< # endif /* HAVE_ETC_DEFAULT_LOGIN */
Here is an truss of the failure:
1904: open("/etc/default/login", O_RDONLY) = 7
1904: fstat(7, 0xFFFFFFFF7FFFD7F0)...
2003 Oct 07
2
Fwd: Re: Bus Error with OpenSSH 3.7.1p2 on Solaris 8, SPARC 64-bit, YASSP
...===============================
> RCS file:
>
/usr/local/src/security/openssh/cvs/openssh_cvs/session.c,v
> retrieving revision 1.255
> diff -u -p -r1.255 session.c
> --- session.c 22 Sep 2003 11:04:23 -0000 1.255
> +++ session.c 29 Sep 2003 23:34:10 -0000
> @@ -915,7 +915,7 @@ read_etc_default_login(char
> ***env, u_in
> {
> 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,
> @@ -936,7 +936,7 @@ read_etc_default_login(char
>...
2003 Sep 25
1
Bus Error with openssh 3.7.1p1 on 64-bit Sparc/Solaris
I compiled openssh 3.7.1p1 on Solaris 9 with the Forte compiler in
64-bit mode. After authentication, a forked child of sshd dies with a
Bus Error in `read_etc_default_login' (session.c).
The reason is the use of `sscanf' with control string "%5lo" on a
`mode_t' value. On Solaris in 64-bit mode, `mode_t' is an `unsigned
int' (32 bits), whereas `long' is 64 bits.
Here is a change that fixed the problem for me. You might want to fix...
2003 Sep 29
1
Bus Error with OpenSSH 3.7.1p2 on Solaris 8, SPARC 64-bit, YASSP
I had a problem much like the one that Matthias Koeppe
experienced. I would only get the BUS error when
running in a YASSP-modified system, though. The
binary worked fine on a non-YASSP host.
I applied his change to use a long for the mask, and
it works now.
Cheers,
-Thomas
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
2014 Aug 14
0
Problem with enabling /etc/default(s)/login on Cygwin
Hi,
below is a patch which simply removes a Cygwin-specific piece of code
from OpenSSH. Input from a system admin educated me how useful this
option could be on Cygwin as well. However, way back when the call to
read_etc_default_login got disabled on Cygwin hardcoded in session.c,
rather than just setting --disable-etc-default-login when building the
Cygwin version of OpenSSH. So, here's the patch which simply re-enables
reading /etc/default/login on Cygwin.
However, even when removing this Cygwin-specific patch, there'...
2003 Aug 22
14
[Bug 252] Patch for use of /etc/default/login
http://bugzilla.mindrot.org/show_bug.cgi?id=252
dtucker at zip.com.au changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #212 is|0 |1
obsolete| |
------- Additional Comments From dtucker at zip.com.au 2003-08-22 14:14 -------