(start_login): put utmpx code into a new scope to avoid pre c99 problems.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15196 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1295,6 +1295,7 @@ start_login(const char *host, int autologin, char *name)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_UTMPX_H
|
#ifdef HAVE_UTMPX_H
|
||||||
|
{
|
||||||
int pid = getpid();
|
int pid = getpid();
|
||||||
struct utmpx utmpx;
|
struct utmpx utmpx;
|
||||||
char *clean_tty;
|
char *clean_tty;
|
||||||
@@ -1317,6 +1318,7 @@ start_login(const char *host, int autologin, char *name)
|
|||||||
gettimeofday (&utmpx.ut_tv, NULL);
|
gettimeofday (&utmpx.ut_tv, NULL);
|
||||||
if (pututxline(&utmpx) == NULL)
|
if (pututxline(&utmpx) == NULL)
|
||||||
fatal(net, "pututxline failed");
|
fatal(net, "pututxline failed");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
scrub_env();
|
scrub_env();
|
||||||
|
Reference in New Issue
Block a user