Open GoogleCodeExporter opened 9 years ago
This patch solves this issue.
diff -rupN shellinabox-214.a/shellinabox/launcher.c
shellinabox-214.b/shellinabox/launcher.c
--- shellinabox-214.a/shellinabox/launcher.c 2010-07-09 15:48:51.000000000
+0000
+++ shellinabox-214.b/shellinabox/launcher.c 2015-02-19 15:11:45.535180959
+0000
@@ -495,6 +495,7 @@ struct Utmp *newUtmp(int useLogin, const
return utmp;
}
+/*
#if defined(HAVE_UPDWTMP) && !defined(HAVE_UPDWTMPX)
#define min(a,b) ({ typeof(a) _a=(a); typeof(b) _b=(b); _a < _b ? _a : _b; })
#define updwtmpx x_updwtmpx
@@ -516,6 +517,7 @@ static void updwtmpx(const char *wtmpx_f
updwtmp(wtmpx_file, &ut);
}
#endif
+*/
void destroyUtmp(struct Utmp *utmp) {
if (utmp) {
Original comment by cassi...@polaco.pro.br
on 19 Feb 2015 at 5:21
Original issue reported on code.google.com by
soumya.p...@gmail.com
on 10 Oct 2013 at 11:21