Bugzilla – Attachment 155 Details for
Bug 178
Content of /etc/nologin isn't shown to users, fix triggers probably AIX bug
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Have sshd child fflush stdout and stderr before exiting.
openssh-aixnologin.patch (text/plain), 1.18 KB, created by
Darren Tucker
on 2002-10-20 16:19:38 AEST
(
hide
)
Description:
Have sshd child fflush stdout and stderr before exiting.
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2002-10-20 16:19:38 AEST
Size:
1.18 KB
patch
obsolete
>Index: session.c >=================================================================== >RCS file: /cvs/openssh/session.c,v >retrieving revision 1.222 >diff -u -r1.222 session.c >--- session.c 26 Sep 2002 00:38:50 -0000 1.222 >+++ session.c 20 Oct 2002 05:38:52 -0000 >@@ -1187,6 +1187,7 @@ > while (fgets(buf, sizeof(buf), f)) > fputs(buf, stderr); > fclose(f); >+ fflush(NULL); > exit(254); > } > } >Index: auth.c >=================================================================== >RCS file: /cvs/openssh/auth.c,v >retrieving revision 1.59 >diff -u -r1.59 auth.c >--- auth.c 16 Oct 2002 00:13:54 -0000 1.59 >+++ auth.c 20 Oct 2002 05:38:52 -0000 >@@ -209,6 +209,8 @@ > */ > if ( (pw->pw_uid != 0) && (geteuid() == 0) && > loginrestrictions(pw->pw_name, S_RLOGIN, NULL, &loginmsg) != 0) { >+ int loginrestrict_errno = errno; >+ > if (loginmsg && *loginmsg) { > /* Remove embedded newlines (if any) */ > char *p; >@@ -220,7 +222,9 @@ > *--p = '\0'; > log("Login restricted for %s: %.100s", pw->pw_name, loginmsg); > } >- return 0; >+ /* Don't fail if /etc/nologin set */ >+ if (! (loginrestrict_errno == EPERM && stat(_PATH_NOLOGIN, &st) == 0)) >+ return 0; > } > #endif /* WITH_AIXAUTHENTICATE */ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 178
:
51
| 155