Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37909370
en ru br
ALT Linux repos
S:9.4p1-alt1
5.0: 5.2p1-alt1.1
4.1: 5.0p1-alt3
4.0: 5.0p1-alt3
+updates:4.7p1-alt1
3.0: 3.6.1p2-alt6

Group :: Networking/Remote access
RPM: openssh

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: openssh-3.6.1p2-cvs-20040408-UT_LINESIZE.patch
Download


diff -urk.orig openssh-3.6.1p2.orig/defines.h openssh-3.6.1p2/defines.h
--- openssh-3.6.1p2.orig/defines.h	2003-01-24 03:50:32 +0300
+++ openssh-3.6.1p2/defines.h	2004-04-26 20:24:15 +0400
@@ -553,6 +553,10 @@
 
 #endif
 
+#ifndef UT_LINESIZE
+# define UT_LINESIZE 8
+#endif
+
 /* I hope that the presence of LASTLOG_FILE is enough to detect this */
 #if defined(LASTLOG_FILE) && !defined(DISABLE_LASTLOG)
 #  define USE_LASTLOG
diff -urk.orig openssh-3.6.1p2.orig/loginrec.c openssh-3.6.1p2/loginrec.c
--- openssh-3.6.1p2.orig/loginrec.c	2003-03-10 03:23:07 +0300
+++ openssh-3.6.1p2/loginrec.c	2004-04-26 20:24:58 +0400
@@ -1354,7 +1354,7 @@
 syslogin_perform_logout(struct logininfo *li)
 {
 # ifdef HAVE_LOGOUT
-	char line[8];
+	char line[UT_LINESIZE];
 
 	(void)line_stripname(line, li->line, sizeof(line));
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin