Fix handling of utmp entries on sparc64.

Approved by:	cy (maintainer)
Obtained from:	NetBSD
This commit is contained in:
Philip Paeps 2005-10-21 14:24:02 +00:00
parent 447aca5102
commit 41ea7ff3f8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=146030
4 changed files with 36 additions and 2 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= screen
PORTVERSION= 4.0.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= misc
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
${MASTER_SITE_GNU}

View File

@ -0,0 +1,17 @@
--- utmp.c.orig Mon Sep 8 16:27:17 2003
+++ utmp.c Wed Oct 19 14:58:40 2005
@@ -726,9 +728,12 @@
char *line, *user;
int pid;
{
+ time_t temp;
+
strncpy(u->ut_line, line, sizeof(u->ut_line));
strncpy(u->ut_name, user, sizeof(u->ut_name));
- (void)time((time_t *)&u->ut_time);
+ (void)time(&temp);
+ u->ut_time = temp;
}
static slot_t

View File

@ -7,7 +7,7 @@
PORTNAME= screen
PORTVERSION= 4.0.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= misc
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
${MASTER_SITE_GNU}

View File

@ -0,0 +1,17 @@
--- utmp.c.orig Mon Sep 8 16:27:17 2003
+++ utmp.c Wed Oct 19 14:58:40 2005
@@ -726,9 +728,12 @@
char *line, *user;
int pid;
{
+ time_t temp;
+
strncpy(u->ut_line, line, sizeof(u->ut_line));
strncpy(u->ut_name, user, sizeof(u->ut_name));
- (void)time((time_t *)&u->ut_time);
+ (void)time(&temp);
+ u->ut_time = temp;
}
static slot_t