diff options
Diffstat (limited to 'usr/src/lib/libproc/common/Pisprocdir.c')
-rw-r--r-- | usr/src/lib/libproc/common/Pisprocdir.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/usr/src/lib/libproc/common/Pisprocdir.c b/usr/src/lib/libproc/common/Pisprocdir.c index b617b2edda..70e341bcbe 100644 --- a/usr/src/lib/libproc/common/Pisprocdir.c +++ b/usr/src/lib/libproc/common/Pisprocdir.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 1997-2003 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -43,11 +42,11 @@ Pisprocdir(struct ps_prochandle *Pr, const char *dir) struct statvfs statvfsb; if (*dir == '/') - (void) snprintf(path, sizeof (path), "/proc/%d/root%s", - (int)Pr->pid, dir); + (void) snprintf(path, sizeof (path), "%s/%d/root%s", + procfs_path, (int)Pr->pid, dir); else - (void) snprintf(path, sizeof (path), "/proc/%d/cwd/%s", - (int)Pr->pid, dir); + (void) snprintf(path, sizeof (path), "%s/%d/cwd/%s", + procfs_path, (int)Pr->pid, dir); /* * We can't compare the statb.st_fstype string to "proc" because |