pwdx & libprocps-ng: Hurd does not have MAX_PATH defined

A patch from Debian.

Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=485243
Bug-Debian: http://bugs.debian.org/588677
Backported-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Daniel Novotny
2009-02-18 13:05:22 +01:00
committed by Craig Small
parent daf4014205
commit 5d29bfedc8
2 changed files with 17 additions and 5 deletions

View File

@@ -1354,7 +1354,7 @@ proc_data_t *readproctab3 (int(*want_task)(proc_t *buf), PROCTAB *restrict const
* and filled out proc_t structure.
*/
proc_t * get_proc_stats(pid_t pid, proc_t *p) {
static char path[PATH_MAX], sbuf[1024];
static char path[32], sbuf[1024];
struct stat statbuf;
sprintf(path, "/proc/%d", pid);