Source: p11-kit Version: 0.7-1 Severity: important Tags: patch User: [email protected] Usertags: hurd
Hi, currently[1], p11-kit 0.7 (0.6 did too) does not compile on GNU/Hurd. The problem is the unconditional PATH_MAX usage in p11-kit/modules.c; the fix is limiting the check on the optional PATH_MAX when PATH_MAX is actually defined. [1] https://buildd.debian.org/status/fetch.php?pkg=p11-kit&arch=hurd-i386&ver=0.7-1&stamp=1317145772 Thanks, -- Pino
--- a/p11-kit/modules.c +++ b/p11-kit/modules.c @@ -263,9 +263,14 @@ assert (filename); len = snprintf (NULL, 0, "%s/%s", dir, filename) + 1; - if (len <= 0 || len > PATH_MAX) + if (len <= 0) return NULL; +#ifdef PATH_MAX + if (len > PATH_MAX) + return NULL; +#endif + if (!(path = malloc (len))) return NULL;

