summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-04-08 10:57:05 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-04-08 10:57:05 +1000
commit4d2f361f966db93e473eb455856f28f4340bed68 (patch)
tree3af93d46c444feee81a62d59e8f5196acb973203 /loginrec.c
parenta8104b5c92a44774208e6d8b979d583975ba67d4 (diff)
- (dtucker) [loginrec.c] Use UT_LINESIZE if available, prevents truncating
pty name on Linux 2.6.x systems. Patch from jpe at eisenmenger.org.
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/loginrec.c b/loginrec.c
index 71dbaea15..9a9ad66a0 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -158,7 +158,7 @@
158#include "log.h" 158#include "log.h"
159#include "atomicio.h" 159#include "atomicio.h"
160 160
161RCSID("$Id: loginrec.c,v 1.54 2004/02/10 05:49:35 dtucker Exp $"); 161RCSID("$Id: loginrec.c,v 1.55 2004/04/08 00:57:05 dtucker Exp $");
162 162
163#ifdef HAVE_UTIL_H 163#ifdef HAVE_UTIL_H
164# include <util.h> 164# include <util.h>
@@ -1354,7 +1354,11 @@ static int
1354syslogin_perform_logout(struct logininfo *li) 1354syslogin_perform_logout(struct logininfo *li)
1355{ 1355{
1356# ifdef HAVE_LOGOUT 1356# ifdef HAVE_LOGOUT
1357# ifdef UT_LINESIZE
1358 char line[UT_LINESIZE];
1359# else
1357 char line[8]; 1360 char line[8];
1361# endif
1358 1362
1359 (void)line_stripname(line, li->line, sizeof(line)); 1363 (void)line_stripname(line, li->line, sizeof(line));
1360 1364