ports/68067: [PATCH] net/socks5 Current startup script doesn't check if configuration file for socks5 daemon exists

KIMURA Yasuhiro yasu at utahime.org
Fri Jun 18 05:11:40 UTC 2004


>Number:         68067
>Category:       ports
>Synopsis:       [PATCH] net/socks5 Current startup script doesn't check if configuration file for socks5 daemon exists
>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:   Fri Jun 18 05:10:25 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     KIMURA Yasuhiro
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD eastasia.home.utahime.org 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Fri May 28 04:49:31 JST 2004 root at eastasia.home.utahime.org:/usr/obj/usr1/cvsup/releng_4_10/src/sys/EASTASIA i386


	
>Description:
	

	Current startup script doesn't check if ${PREFIX}/etc/socks5.conf
        exist and starts daemon even if there is no configuration file,
        which results in following error message.

	Jun 18 13:47:46 eastasia Socks5[247]: Config: Error opening config file (/usr/local/etc/socks5.conf): No such file or directory

>How-To-Repeat:
	
>Fix:

	

	Apply the patch below.

--- socks5.patch begins here ---
diff -ruN socks5.dist/Makefile socks5/Makefile
--- socks5.dist/Makefile	Wed Apr  7 12:24:10 2004
+++ socks5/Makefile	Fri Jun 18 13:42:35 2004
@@ -7,7 +7,7 @@
 
 PORTNAME=	socks5
 PORTVERSION=	1.0.11
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	net security
 DISTNAME=	socks5-v1.0r11
 
diff -ruN socks5.dist/files/socks5.sh.sample socks5/files/socks5.sh.sample
--- socks5.dist/files/socks5.sh.sample	Sat Apr  3 04:39:10 2004
+++ socks5/files/socks5.sh.sample	Fri Jun 18 13:48:56 2004
@@ -7,7 +7,7 @@
 
 case "$1" in
 start)
-	[ -x ${PREFIX}/bin/socks5 ] && ${PREFIX}/bin/socks5 && echo -n ' socks5'
+	[ -x ${PREFIX}/bin/socks5 -a -f ${PREFIX}/etc/socks5.conf ] && ${PREFIX}/bin/socks5 && echo -n ' socks5'
 	;;
 stop)
 	killall socks5 && echo -n ' socks5'
--- socks5.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list