Source: cups-pk-helper Version: 0.2.5-2 Severity: important Tags: patch User: [email protected] Usertags: hurd
Hi, Currently the latest version of cups-pk-helper fails to build from source and is flagged as out-of-date. This is due to usage of PATH_MAX, which is not defined on GNU/Hurd. The attached patch solve this problem by defining PATH_MAX to 4096 in src/cups.c if not defined. The reason for not doing it differently is that the character array newppdfile[] is used in function cupsTempFile2() to create a temporary file and this function is defined in the cups package, not in cups-pk-helper. Thanks!
--- a/src/cups.c 2014-06-03 09:27:31.000000000 +0200 +++ b/src/cups.c 2014-06-03 11:54:31.000000000 +0200 @@ -279,6 +279,9 @@ * thinking there are multiple lines. */ #define CPH_STR_MAXLEN 512 +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif static gboolean _cph_cups_is_string_printable (const char *str,

