Bläddra i källkod

some utmp portability fixes from the FreeBSD ports

Ralf S. Engelschall 20 år sedan
förälder
incheckning
8279c80535
2 ändrade filer med 18 tillägg och 1 borttagningar
  1. 17 0
      screen/screen.patch
  2. 1 1
      screen/screen.spec

+ 17 - 0
screen/screen.patch

@@ -198,3 +198,20 @@ Index: os.h
  # define USE_SETEUID
  #endif
  
+Index: utmp.c
+--- utmp.c.orig	2003-09-08 16:27:17 +0200
++++ utmp.c	2006-01-11 16:53:48 +0100
+@@ -726,9 +726,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

+ 1 - 1
screen/screen.spec

@@ -33,7 +33,7 @@ Class:        CORE
 Group:        Terminal
 License:      GPL
 Version:      4.0.2
-Release:      20051108
+Release:      20060111
 
 #   list of sources
 Source0:      ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-%{version}.tar.gz