1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-27 17:58:13 +00:00

don't maintain utmp/wtmp

This commit is contained in:
Greg Alexander 2014-12-16 23:06:45 -05:00
parent c222b4b074
commit f2b458f499
2 changed files with 4 additions and 1 deletions

1
NOTES
View File

@ -72,7 +72,6 @@ it uses select(), I'm not sure how I would honor Thread.interrupt() or
whatever. It's not guaranteed to interrupt select(), and I'm not keen on whatever. It's not guaranteed to interrupt select(), and I'm not keen on
adding an arbitrary timeout/polling feature to it. adding an arbitrary timeout/polling feature to it.
XXX - disable utmp/wtmp
XXX - visit XXX in jni/interface.c XXX - visit XXX in jni/interface.c
XXX - allow user to specify parameters for dropbear XXX - allow user to specify parameters for dropbear
XXX - convert UI to use proper preferences templates, and have ...->settings instead of putting it on the home screen XXX - convert UI to use proper preferences templates, and have ...->settings instead of putting it on the home screen

View File

@ -306,10 +306,12 @@ static void closechansess(struct Channel *channel) {
#endif #endif
if (chansess->tty) { if (chansess->tty) {
#if 0
/* write the utmp/wtmp login record */ /* write the utmp/wtmp login record */
li = chansess_login_alloc(chansess); li = chansess_login_alloc(chansess);
login_logout(li); login_logout(li);
login_free_entry(li); login_free_entry(li);
#endif /* 0 */
pty_release(chansess->tty); pty_release(chansess->tty);
m_free(chansess->tty); m_free(chansess->tty);
@ -807,11 +809,13 @@ static int ptycommand(struct Channel *channel, struct ChanSess *chansess) {
close(chansess->slave); close(chansess->slave);
#if 0
/* write the utmp/wtmp login record - must be after changing the /* write the utmp/wtmp login record - must be after changing the
* terminal used for stdout with the dup2 above */ * terminal used for stdout with the dup2 above */
li = chansess_login_alloc(chansess); li = chansess_login_alloc(chansess);
login_login(li); login_login(li);
login_free_entry(li); login_free_entry(li);
#endif /* 0 */
#ifdef DO_MOTD #ifdef DO_MOTD
if (svr_opts.domotd) { if (svr_opts.domotd) {