summaryrefslogtreecommitdiff
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
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.
-rw-r--r--ChangeLog6
-rw-r--r--loginrec.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 62c16684a..66f00c590 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
120040408
2 - (dtucker) [loginrec.c] Use UT_LINESIZE if available, prevents truncating
3 pty name on Linux 2.6.x systems. Patch from jpe at eisenmenger.org.
4
120040407 520040407
2 - (dtucker) [session.c] Flush stdout after displaying loginmsg. From 6 - (dtucker) [session.c] Flush stdout after displaying loginmsg. From
3 f_mohr at yahoo.de. 7 f_mohr at yahoo.de.
@@ -947,4 +951,4 @@
947 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 951 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
948 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 952 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
949 953
950$Id: ChangeLog,v 1.3303 2004/04/07 04:16:11 mouring Exp $ 954$Id: ChangeLog,v 1.3304 2004/04/08 00:57:05 dtucker Exp $
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