fuser: a now, the corrected fix (vda botched previous one)
authorDenis Vlasenko <vda.linux@googlemail.com>
Wed, 28 May 2008 14:57:58 +0000 (14:57 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Wed, 28 May 2008 14:57:58 +0000 (14:57 -0000)
procps/fuser.c

index 663abe478eea127cdb459213e3adc052e7545d4a..55f7917a08ba459baf3ed2588487466f27afbd81 100644 (file)
@@ -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;