- don't include stropts.h (#440803)
- fix compiler warnings in ipv6 patch
This commit is contained in:
parent
6f40f59395
commit
bc9ef8342c
@ -199,7 +199,7 @@
|
||||
+ hints.ai_protocol = IPPROTO_TCP;
|
||||
+ if(getaddrinfo(p->w_cmdargs[1], p->w_cmdargs[2] ? p->w_cmdargs[2] : TEL_DEFPORT,
|
||||
+ &hints, &res0)) {
|
||||
+ Msg(errno, "TelOpenAndConnect: getaddrinfo", p->w_cmdargs[1]);
|
||||
+ Msg(0, "unknown host: %s", p->w_cmdargs[1]);
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
@ -246,14 +246,14 @@
|
||||
+ }
|
||||
+ else
|
||||
+ WriteString(p, "connected.\r\n", 12);
|
||||
+ if (p->w_cmdargs[2] == TEL_DEFPORT)
|
||||
+ if (!(p->w_cmdargs[2] && strcmp(p->w_cmdargs[2], TEL_DEFPORT)))
|
||||
+ TelReply(p, (char *)tn_init, sizeof(tn_init));
|
||||
+
|
||||
+ p->w_ptyfd = fd;
|
||||
+ memcpy(&p->w_telsa, &res->ai_addr, sizeof(res->ai_addr));
|
||||
+ freeaddrinfo(res0);
|
||||
+ return 0;
|
||||
+ }
|
||||
+ return -1;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
48
screen-4.0.3-stropts.patch
Normal file
48
screen-4.0.3-stropts.patch
Normal file
@ -0,0 +1,48 @@
|
||||
diff -up screen-4.0.3/tty.sh.stropts screen-4.0.3/tty.sh
|
||||
--- screen-4.0.3/tty.sh.stropts 2003-09-08 16:24:25.000000000 +0200
|
||||
+++ screen-4.0.3/tty.sh 2008-04-07 11:28:34.000000000 +0200
|
||||
@@ -76,7 +76,7 @@ exit 0
|
||||
#endif
|
||||
|
||||
#include "config.h"
|
||||
-#ifdef SVR4
|
||||
+#if 0
|
||||
#include <sys/stropts.h> /* for I_POP */
|
||||
#endif
|
||||
|
||||
diff -up screen-4.0.3/screen.c.stropts screen-4.0.3/screen.c
|
||||
--- screen-4.0.3/screen.c.stropts 2008-04-07 11:25:21.000000000 +0200
|
||||
+++ screen-4.0.3/screen.c 2008-04-07 11:29:14.000000000 +0200
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
-#ifdef SVR4
|
||||
+#if 0
|
||||
# include <sys/stropts.h>
|
||||
#endif
|
||||
|
||||
diff -up screen-4.0.3/process.c.stropts screen-4.0.3/process.c
|
||||
--- screen-4.0.3/process.c.stropts 2003-09-18 14:53:54.000000000 +0200
|
||||
+++ screen-4.0.3/process.c 2008-04-07 11:29:47.000000000 +0200
|
||||
@@ -37,7 +37,7 @@
|
||||
#include "config.h"
|
||||
|
||||
/* for solaris 2.1, Unixware (SVR4.2) and possibly others: */
|
||||
-#ifdef SVR4
|
||||
+#if 0
|
||||
# include <sys/stropts.h>
|
||||
#endif
|
||||
|
||||
diff -up screen-4.0.3/pty.c.stropts screen-4.0.3/pty.c
|
||||
--- screen-4.0.3/pty.c.stropts 2003-09-08 16:26:18.000000000 +0200
|
||||
+++ screen-4.0.3/pty.c 2008-04-07 11:30:07.000000000 +0200
|
||||
@@ -34,7 +34,7 @@
|
||||
#endif
|
||||
|
||||
/* for solaris 2.1, Unixware (SVR4.2) and possibly others */
|
||||
-#ifdef HAVE_SVR4_PTYS
|
||||
+#if 0
|
||||
# include <sys/stropts.h>
|
||||
#endif
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Summary: A screen manager that supports multiple logins on one terminal
|
||||
Name: screen
|
||||
Version: 4.0.3
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
URL: http://www.gnu.org/software/screen
|
||||
@ -20,6 +20,7 @@ Patch1: screen-4.0.3-libs.patch
|
||||
# Some tweaks of the default screenrc
|
||||
Patch2: screen-4.0.2-screenrc.patch
|
||||
Patch3: screen-4.0.3-ptygroup.patch
|
||||
Patch4: screen-4.0.3-stropts.patch
|
||||
# Fixes potential buffer overflow when > 2^31 semicolons are passed.
|
||||
Patch7: screen-4.0.1-args.patch
|
||||
Patch11: screen-4.0.2-maxstr.patch
|
||||
@ -40,6 +41,7 @@ support multiple logins on one terminal.
|
||||
%patch1 -p1 -b .libs
|
||||
%patch2 -p1 -b .screenrc
|
||||
%patch3 -p1 -b .ptygroup
|
||||
%patch4 -p1 -b .stropts
|
||||
%patch7 -p0 -b .args
|
||||
%patch11 -p1 -b .maxstr
|
||||
%patch12 -p1 -b .ipv6
|
||||
@ -113,6 +115,10 @@ fi
|
||||
%config(noreplace) %{_sysconfdir}/pam.d/screen
|
||||
|
||||
%changelog
|
||||
* Mon Apr 07 2008 Miroslav Lichvar <mlichvar@redhat.com> - 4.0.3-11
|
||||
- don't include stropts.h (#440803)
|
||||
- fix compiler warnings in ipv6 patch
|
||||
|
||||
* Tue Feb 26 2008 Miroslav Lichvar <mlichvar@redhat.com> - 4.0.3-10
|
||||
- don't set xterm function keys in default config (#151556)
|
||||
- always return 0 in scriptlet (#433882)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user