summaryrefslogtreecommitdiffhomepage
path: root/procps/fuser.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/fuser.c')
-rw-r--r--procps/fuser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/procps/fuser.c b/procps/fuser.c
index 663abe478..55f7917a0 100644
--- a/procps/fuser.c
+++ b/procps/fuser.c
@@ -216,6 +216,7 @@ static pid_list *scan_proc_pids(inode_list *ilist)
pid_t pid;
pid_list *plist;
+ xchdir("/proc");
d = opendir("/proc");
if (!d)
return NULL;