pkgsrc/security/fwbuilder/patches/patch-ac
bad f007c3ab9b Initial import of fwbuilder-2.0.5.
Firewall Builder is a multi-platform firewall configuration and
management tool.  It consists of a GUI and a set of policy compilers for
various firewall platforms.  Firewall Builder uses an object-oriented
approach, it helps administrators maintain a database of network
objects and allows policy editing using simple drag-and-drop
operations.  Firewall Builder currently supports

	iptables,
	IP Filter,
	ipfw,
	OpenBSD PF, and
	Cisco PIX

fwbuilder provides the GUI frontend and the policy compilers.
2005-02-24 11:03:22 +00:00

20 lines
532 B
Text

$NetBSD: patch-ac,v 1.1.1.1 2005/02/24 11:03:22 bad Exp $
--- src/gui/utils.cpp.orig Fri Dec 3 05:42:09 2004
+++ src/gui/utils.cpp Thu Feb 24 00:25:02 2005
@@ -244,7 +244,15 @@
int sn1 = file.findRev('/',-1);
int sn2 = file.findRev('\\',-1);
int sn = (sn1>=0)?sn1:sn2;
+#if 0
QString dir = (sn<0) ? "./" : file.left( sn );
+#else
+ QString dir;
+ if(sn<0)
+ dir = "./";
+ else
+ dir = file.left( sn );
+#endif
#ifdef _WIN32
/* on windows, if directory is in the root of the drive (like "c:"),