mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
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
4 changed files with 36 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= screen
|
PORTNAME= screen
|
||||||
PORTVERSION= 4.0.2
|
PORTVERSION= 4.0.2
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
CATEGORIES= misc
|
CATEGORIES= misc
|
||||||
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
|
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
|
||||||
${MASTER_SITE_GNU}
|
${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
|
PORTNAME= screen
|
||||||
PORTVERSION= 4.0.2
|
PORTVERSION= 4.0.2
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
CATEGORIES= misc
|
CATEGORIES= misc
|
||||||
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
|
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
|
||||||
${MASTER_SITE_GNU}
|
${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…
Add table
Reference in a new issue