ports/107802: [PATCH] devel/fam: Fix bug in Listener::create_local_client()
KIMURA Yasuhiro
yasu at utahime.org
Wed Jan 10 21:00:36 UTC 2007
>Number: 107802
>Category: ports
>Synopsis: [PATCH] devel/fam: Fix bug in Listener::create_local_client()
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jan 10 21:00:34 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: KIMURA Yasuhiro
>Release: FreeBSD 6.1-RELEASE-p11 i386
>Organization:
>Environment:
System: FreeBSD xxxx 6.1-RELEASE-p11 FreeBSD 6.1-RELEASE-p11 #0: Wed Dec 6 21:28:24 JST 2006 xxxx i386
>Description:
Fix bug in Listener::create_local_client() that Unix domain
socket is placed on / rather than /tmp.
>How-To-Repeat:
>Fix:
--- patch-fam begins here ---
Index: Makefile
===================================================================
RCS file: /usr1/freebsd/cvsroot/ports/devel/fam/Makefile,v
retrieving revision 1.31
diff -u -r1.31 Makefile
--- Makefile 16 Aug 2006 12:32:26 -0000 1.31
+++ Makefile 10 Jan 2007 20:30:14 -0000
@@ -7,7 +7,7 @@
PORTNAME= fam
PORTVERSION= 2.6.10
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ftp://oss.sgi.com/projects/fam/download/
DIST_SUBDIR= ${PORTNAME}
Index: files/patch-fam-Listener.c++
===================================================================
RCS file: /usr1/freebsd/cvsroot/ports/devel/fam/files/patch-fam-Listener.c++,v
retrieving revision 1.2
diff -u -r1.2 patch-fam-Listener.c++
--- files/patch-fam-Listener.c++ 4 Sep 2002 00:22:12 -0000 1.2
+++ files/patch-fam-Listener.c++ 10 Jan 2007 20:30:04 -0000
@@ -1,6 +1,6 @@
---- fam/Listener.c++~ Tue Jul 16 02:14:41 2002
-+++ fam/Listener.c++ Tue Sep 3 19:53:27 2002
-@@ -35,6 +35,10 @@
+--- fam/Listener.c++.orig Tue Apr 15 13:52:40 2003
++++ fam/Listener.c++ Thu Jan 11 05:28:45 2007
+@@ -36,6 +36,10 @@
#include <sys/stat.h>
#include <sys/un.h>
#include <unistd.h>
@@ -11,3 +11,12 @@
#include <errno.h>
+@@ -203,7 +207,7 @@
+ // requested user and pass the name back to the client.
+
+ // Unset TMPDIR to ensure that tempnam() works as desired
+- putenv("TMPDIR=");
++ unsetenv("TMPDIR");
+
+ char *tmpfile = tempnam("/tmp", ".fam");
+ #if defined(__FreeBSD__)
--- patch-fam ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list