pseudo terminals.
#define STDC_HEADERS 1
/* Most recent revision number in the version control system */
-#define VCS_REVISION "233"
+#define VCS_REVISION "234"
/* Version number of package */
#define VERSION "2.10"
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-VCS_REVISION=233
+VCS_REVISION=234
cat >>confdefs.h <<_ACEOF
dnl This is the one location where the authoritative version number is stored
AC_INIT(shellinabox, 2.10, markus@shellinabox.com)
-VCS_REVISION=233
+VCS_REVISION=234
AC_SUBST(VCS_REVISION)
AC_DEFINE_UNQUOTED(VCS_REVISION, "${VCS_REVISION}",
[Most recent revision number in the version control system])
};
VT100.prototype.about = function() {
- alert("VT100 Terminal Emulator " + "2.10 (revision 233)" +
+ alert("VT100 Terminal Emulator " + "2.10 (revision 234)" +
"\nCopyright 2008-2010 by Markus Gutschke\n" +
"For more information check http://shellinabox.com");
};
utmp->useLogin = useLogin;
#ifdef HAVE_UTMPX_H
utmp->utmpx.ut_type = useLogin ? LOGIN_PROCESS : USER_PROCESS;
- dcheck(!strncmp(ptyPath, "/dev/pts", 8));
+ dcheck(!strncmp(ptyPath, "/dev/pts", 8) ||
+ !strncmp(ptyPath, "/dev/pty", 8) ||
+ !strncmp(ptyPath, "/dev/tty", 8));
strncat(&utmp->utmpx.ut_line[0], ptyPath + 5, sizeof(utmp->utmpx.ut_line));
strncat(&utmp->utmpx.ut_id[0], ptyPath + 8, sizeof(utmp->utmpx.ut_id));
strncat(&utmp->utmpx.ut_user[0], "SHELLINABOX", sizeof(utmp->utmpx.ut_user));
// Temporarily drop most permissions. We still retain the ability to
// switch back to root, which is necessary for launching "login".
lowerPrivileges();
- closeAllFds((int []){ pair[1] }, 1);
+ closeAllFds((int []){ pair[1], 2 }, 2);
launcherDaemon(pair[1]);
fatal("exit() failed!");
case -1:
};
ShellInABox.prototype.about = function() {
- alert("Shell In A Box version " + "2.10 (revision 233)" +
+ alert("Shell In A Box version " + "2.10 (revision 234)" +
"\nCopyright 2008-2010 by Markus Gutschke\n" +
"For more information check http://shellinabox.com" +
(typeof serverSupportsSSL != 'undefined' && serverSupportsSSL ?
};
VT100.prototype.about = function() {
- alert("VT100 Terminal Emulator " + "2.10 (revision 233)" +
+ alert("VT100 Terminal Emulator " + "2.10 (revision 234)" +
"\nCopyright 2008-2010 by Markus Gutschke\n" +
"For more information check http://shellinabox.com");
};