patch-common_utils_c 1.1 KB

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