openbsd-ports/print/hplip/patches/patch-prnt_hpijs_globals_cpp
ajacoutot eeb3a85b88 - SECURITY: fix for Secunia SA31470 -- patches adapted from RedHat
(CVE-2008-2940 CVE-2008-2941)
prodded by jasper@
- fix some hardcoded paths and regen PLIST while here

ok jasper@
2009-02-02 10:47:11 +00:00

13 lines
488 B
Plaintext

$OpenBSD: patch-prnt_hpijs_globals_cpp,v 1.1 2009/02/02 10:47:12 ajacoutot Exp $
--- prnt/hpijs/globals.cpp.orig Mon Feb 2 10:50:06 2009
+++ prnt/hpijs/globals.cpp Mon Feb 2 10:50:17 2009
@@ -225,7 +225,7 @@ void *LoadPlugin (char *szPluginName)
void *ptemp = NULL;
char *p = NULL;
int bFound = 0;
- if ((fp = fopen ("/etc/hp/hplip.conf", "r")) == NULL)
+ if ((fp = fopen ("${SYSCONFDIR}/hp/hplip.conf", "r")) == NULL)
{
return NULL;
}