32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
$OpenBSD: patch-common_utils_c,v 1.4 2015/02/05 17:34:33 ajacoutot Exp $
|
|
|
|
implicit declaration of function 'mkstemp'
|
|
|
|
--- common/utils.c.orig Thu Jan 29 13:20:21 2015
|
|
+++ common/utils.c Thu Feb 5 16:44:21 2015
|
|
@@ -1,5 +1,6 @@
|
|
#include "utils.h"
|
|
#include "string.h"
|
|
+#include <stdlib.h>
|
|
#include <dlfcn.h>
|
|
#include <sys/stat.h>
|
|
#include <errno.h>
|
|
@@ -116,7 +117,7 @@ enum UTILS_PLUGIN_STATUS validate_plugin_version()
|
|
|
|
if (get_key_value(HPLIP_PLUGIN_STATE,"[plugin]" , "version", plugin_version, sizeof(plugin_version)) != UTILS_CONF_OK )
|
|
{
|
|
- BUG("validate_plugin_version() Failed to get Plugin version from [%s]\n", "/var/lib/hp/hplip.state");
|
|
+ BUG("validate_plugin_version() Failed to get Plugin version from [%s]\n", "/var/db/hp/hplip.state");
|
|
return UTILS_PLUGIN_STATUS_NOT_INSTALLED;
|
|
}
|
|
|
|
@@ -254,7 +255,7 @@ int getHPLogLevel()
|
|
char *p;
|
|
int iLogLevel = 0;
|
|
|
|
- fp = fopen ("/etc/cups/cupsd.conf", "r");
|
|
+ fp = fopen ("${SYSCONFDIR}/cups/cupsd.conf", "r");
|
|
if (fp == NULL)
|
|
return 0;
|
|
while (!feof (fp))
|