Bugzilla – Attachment 51 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]
patches as shown in the bug report, relavtive to local cvs repository
507 (text/plain), 2.65 KB, created by
Ralf.Wenk
on 2002-03-21 19:37:24 AEDT
(
hide
)
Description:
patches as shown in the bug report, relavtive to local cvs repository
Filename:
MIME Type:
Creator:
Ralf.Wenk
Created:
2002-03-21 19:37:24 AEDT
Size:
2.65 KB
patch
obsolete
>--==_Exmh_5841657520 >Index: session.c >=================================================================== >RCS file: /usr/local/.cvs/auth/openssh/session.c,v >retrieving revision 1.1.1.7 >diff -c -r1.1.1.7 session.c >*** session.c 2002/03/08 07:55:51 1.1.1.7 >--- session.c 2002/03/20 07:59:02 >*************** >*** 1094,1099 **** >--- 1094,1107 ---- > while (fgets(buf, sizeof(buf), f)) > fputs(buf, stderr); > fclose(f); >+ #ifdef _AIX >+ /* >+ * This is ugly, but otherwise AIX (at least 4.3.3ML8) >+ * will get stuck forever in the close(ttyfd) call of >+ * the parent process in do_exec_pty(). >+ */ >+ sleep(2); >+ #endif /* _AIX */ > exit(254); > } > } > >--==_Exmh_5841657520 >Index: auth.c >=================================================================== >RCS file: /usr/local/.cvs/auth/openssh/auth.c,v >retrieving revision 1.1.1.5 >diff -c -r1.1.1.5 auth.c >*** auth.c 2002/03/08 07:55:38 1.1.1.5 >--- auth.c 2002/03/15 12:54:01 >*************** >*** 177,183 **** > } > > #ifdef WITH_AIXAUTHENTICATE >! if (loginrestrictions(pw->pw_name, S_RLOGIN, NULL, &loginmsg) != 0) { > if (loginmsg && *loginmsg) { > /* Remove embedded newlines (if any) */ > char *p; >--- 177,190 ---- > } > > #ifdef WITH_AIXAUTHENTICATE >! /* >! * To let the user read a possible message in /etc/nologin we have to >! * accept him here. Otherwise the message will just be logged and the >! * user gets only a permission denied message. >! */ >! if (loginrestrictions(pw->pw_name, S_RLOGIN, NULL, &loginmsg) != 0 && >! (errno != EPERM || >! stat(_PATH_NOLOGIN, &st) != 0)) { > if (loginmsg && *loginmsg) { > /* Remove embedded newlines (if any) */ > char *p; > >--==_Exmh_5841657520 >Index: session.c >=================================================================== >RCS file: /usr/local/.cvs/auth/openssh/session.c,v >retrieving revision 1.1.1.7 >diff -c -r1.1.1.7 session.c >*** session.c 2002/03/08 07:55:51 1.1.1.7 >--- session.c 2002/03/19 15:17:52 >*************** >*** 572,590 **** >--- 572,594 ---- > if (is_winnt) > cygwin_set_impersonation_token(INVALID_HANDLE_VALUE); > #endif >+ debug("parent+"); > if (pid < 0) > packet_disconnect("fork failed: %.100s", strerror(errno)); > s->pid = pid; > >+ debug("parent++"); > /* Parent. Close the slave side of the pseudo tty. */ > close(ttyfd); > >+ debug("parent+++"); > /* > * Create another descriptor of the pty master side for use as the > * standard input. We could use the original descriptor, but this > * simplifies code in server_loop. The descriptor is bidirectional. > */ > fdout = dup(ptyfd); >+ debug("parent++++"); > if (fdout < 0) > packet_disconnect("dup #1 failed: %.100s", strerror(errno)); > > >
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