Fix handling of utmp entries on sparc64.
Approved by: cy (maintainer) Obtained from: NetBSD
This commit is contained in:
parent
447aca5102
commit
41ea7ff3f8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=146030
@ -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}
|
||||
|
17
misc/screen/files/patch-utmp.c
Normal file
17
misc/screen/files/patch-utmp.c
Normal 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
|
||||
|
@ -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}
|
||||
|
17
sysutils/screen/files/patch-utmp.c
Normal file
17
sysutils/screen/files/patch-utmp.c
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user