Skip to content

Commit

Permalink
- Make the code actually do, what the comments say (i.e. skip PAM acc…
Browse files Browse the repository at this point in the history
…ount

  management, if we don't have the privileges to do so, anyway)
- Make ssl.h compile again, even if OpenSSL is not found at compile time.


git-svn-id: https://shellinabox.googlecode.com/svn/trunk@115 0da03de8-d603-11dd-86c2-0f8696b7b6f9
  • Loading branch information
zodiac committed Apr 16, 2009
1 parent 0258d46 commit 3bacdb0
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
#define STDC_HEADERS 1

/* Most recent revision number in the version control system */
#define VCS_REVISION "113"
#define VCS_REVISION "115"

/* Version number of package */
#define VERSION "2.6"
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
ac_compiler_gnu=$ac_cv_c_compiler_gnu


VCS_REVISION=113
VCS_REVISION=115


cat >>confdefs.h <<_ACEOF
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ(2.57)

dnl This is the one location where the authoritative version number is stored
AC_INIT(shellinabox, 2.6, [email protected])
VCS_REVISION=114
VCS_REVISION=115
AC_SUBST(VCS_REVISION)
AC_DEFINE_UNQUOTED(VCS_REVISION, "${VCS_REVISION}",
[Most recent revision number in the version control system])
Expand Down
2 changes: 1 addition & 1 deletion demo/vt100.js
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ VT100.prototype.toggleBell = function() {
};

VT100.prototype.about = function() {
alert("VT100 Terminal Emulator " + "2.6 (revision 113)" +
alert("VT100 Terminal Emulator " + "2.6 (revision 115)" +
"\nCopyright 2008-2009 by Markus Gutschke\n" +
"For more information check http://shellinabox.com");
};
Expand Down
1 change: 1 addition & 0 deletions libhttp/ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ typedef struct BIO_METHOD BIO_METHOD;
typedef struct SSL SSL;
typedef struct SSL_CTX SSL_CTX;
typedef struct SSL_METHOD SSL_METHOD;
typedef struct X509 X509;
#define SSL_ERROR_WANT_READ 2
#define SSL_ERROR_WANT_WRITE 3
#endif
Expand Down
2 changes: 1 addition & 1 deletion shellinabox/launcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ static pam_handle_t *internalLogin(struct Service *service, struct Utmp *utmp,

// PAM account management requires root access. Just skip it, if we
// are running with lower privileges.
if (geteuid() &&
if (!geteuid() &&
(rc = pam_acct_mgmt(pam, PAM_SILENT)) !=
PAM_SUCCESS) {
pam_end(pam, rc);
Expand Down
2 changes: 1 addition & 1 deletion shellinabox/shell_in_a_box.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ ShellInABox.prototype.extendContextMenu = function(entries, actions) {
};

ShellInABox.prototype.about = function() {
alert("Shell In A Box version " + "2.6 (revision 113)" +
alert("Shell In A Box version " + "2.6 (revision 115)" +
"\nCopyright 2008-2009 by Markus Gutschke\n" +
"For more information check http://shellinabox.com" +
(typeof serverSupportsSSL != 'undefined' && serverSupportsSSL ?
Expand Down
2 changes: 1 addition & 1 deletion shellinabox/vt100.js
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ VT100.prototype.toggleBell = function() {
};

VT100.prototype.about = function() {
alert("VT100 Terminal Emulator " + "2.6 (revision 113)" +
alert("VT100 Terminal Emulator " + "2.6 (revision 115)" +
"\nCopyright 2008-2009 by Markus Gutschke\n" +
"For more information check http://shellinabox.com");
};
Expand Down

0 comments on commit 3bacdb0

Please sign in to comment.