Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Jeroen Roovers (jer)" <jer@g.o>
Subject: gentoo-x86 commit in net-misc/socat/files: socat-1.7.1.0-fixsetenv.patch
Date: Sat, 02 May 2009 16:27:00 +0000
jer         09/05/02 16:27:00

  Added:                socat-1.7.1.0-fixsetenv.patch
  Log:
  Apply patch provided by Todd Stansell to fix crashes on systems without setenv().
  (Portage version: 2.2_rc31/cvs/Linux i686)

Revision  Changes    Path
1.1                  net-misc/socat/files/socat-1.7.1.0-fixsetenv.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/socat/files/socat-1.7.1.0-fixsetenv.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/socat/files/socat-1.7.1.0-fixsetenv.patch?rev=1.1&content-type=text/plain

Index: socat-1.7.1.0-fixsetenv.patch
===================================================================
diff -r -N -U 3 socat-1.7.1.0/CHANGES socat-1.7.1.0+fixsetenv/CHANGES
--- socat-1.7.1.0/CHANGES	2009-04-02 21:20:24.000000000 +0200
+++ socat-1.7.1.0+fixsetenv/CHANGES	2009-04-03 08:42:04.000000000 +0200
@@ -1,4 +1,8 @@
 
+corrections:
+	socat crashed on systems without setenv() (esp. SunOS up to Solaris 9);
+	thanks to Todd Stansell for reporting this bug
+
 ####################### V 1.7.1.0:
 
 new features:
diff -r -N -U 3 socat-1.7.1.0/VERSION socat-1.7.1.0+fixsetenv/VERSION
--- socat-1.7.1.0/VERSION	2009-04-02 21:18:17.000000000 +0200
+++ socat-1.7.1.0+fixsetenv/VERSION	2009-04-03 08:38:34.000000000 +0200
@@ -1 +1 @@
-"1.7.1.0"
+"1.7.1.0+fixsetenv"
diff -r -N -U 3 socat-1.7.1.0/utils.c socat-1.7.1.0+fixsetenv/utils.c
--- socat-1.7.1.0/utils.c	2009-04-02 09:32:48.000000000 +0200
+++ socat-1.7.1.0+fixsetenv/utils.c	2009-04-03 08:37:21.000000000 +0200
@@ -75,7 +75,7 @@
    if (!overwrite) {
       if (getenv(name))  return 0;	/* already exists */
    }
-   if ((env = Malloc(strlen(name)+strlen(value)+2)) != NULL) {
+   if ((env = Malloc(strlen(name)+strlen(value)+2)) == NULL) {
       return -1;
    }
    sprintf(env, "%s=%s", name, value);





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in dev-perl/class-returnvalue: class-returnvalue-0.55.ebuild
Next by thread:
gentoo-x86 commit in net-misc/socat/files: socat-1.7.1.0-fixsetenv.patch
Previous by date:
gentoo-x86 commit in dev-perl/XML-Writer: ChangeLog XML-Writer-0.606.ebuild
Next by date:
gentoo-x86 commit in net-misc/socat: ChangeLog socat-1.7.1.0-r1.ebuild


Updated Mar 31, 2012

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.