summaryrefslogtreecommitdiff
path: root/utmp.c
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2011-09-03 14:05:24 +0200
committerAxel Beckert <abe@deuxchevaux.org>2011-09-03 14:05:24 +0200
commit0e9a09d7718f02726b12924f7ddb05a992202aa3 (patch)
tree7b78a28379fdbe3a9dba37cd99c780c5d42c1e6c /utmp.c
parentbdf45bc45637eefdbdee913465729f9d31d6c255 (diff)
downloadscreen-0e9a09d7718f02726b12924f7ddb05a992202aa3.tar.gz
Imported Upstream version 3.9.11upstream/3.9.11
Diffstat (limited to 'utmp.c')
-rw-r--r--utmp.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/utmp.c b/utmp.c
index 2a172d4..440741b 100644
--- a/utmp.c
+++ b/utmp.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 1993
+/* Copyright (c) 1993-2002
* Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
* Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
* Copyright (c) 1987 Oliver Laumann
@@ -33,7 +33,15 @@ RCS_ID("$Id: utmp.c,v 1.7 1994/05/31 12:33:21 mlschroe Exp $ FAU")
#include "screen.h"
#include "extern.h"
+#ifdef HAVE_UTEMPTER
+#include <utempter.h>
+#endif
+
+
extern struct display *display;
+#ifdef CAREFULUTMP
+extern struct win *windows;
+#endif
extern struct win *fore;
extern char *LoginName;
extern int real_uid, eff_uid;
@@ -190,6 +198,7 @@ int how;
Msg(0, "This window is now logged in.");
else
Msg(0, "This window should now be logged in.");
+ WindowChanged(fore, 'f');
}
else
Msg(0, "This window is already logged in.");
@@ -215,6 +224,7 @@ int how;
#ifdef CAREFULUTMP
CarefulUtmp();
#endif
+ WindowChanged(fore, 'f');
}
}
}