diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2011-09-03 14:05:24 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2011-09-03 14:05:24 +0200 |
commit | 0e9a09d7718f02726b12924f7ddb05a992202aa3 (patch) | |
tree | 7b78a28379fdbe3a9dba37cd99c780c5d42c1e6c /utmp.c | |
parent | bdf45bc45637eefdbdee913465729f9d31d6c255 (diff) | |
download | screen-0e9a09d7718f02726b12924f7ddb05a992202aa3.tar.gz |
Imported Upstream version 3.9.11upstream/3.9.11
Diffstat (limited to 'utmp.c')
-rw-r--r-- | utmp.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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'); } } } |