Magellan Linux

Annotation of /trunk/busybox/patches/busybox-1.10.2-fuser.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 626 - (hide annotations) (download)
Sat May 31 10:33:24 2008 UTC (16 years ago) by niro
File size: 578 byte(s)
-added more official fixes

1 niro 626 --- busybox-1.10.2/procps/fuser.c Sat Apr 19 06:03:13 2008
2     +++ busybox-1.10.2-fuser/procps/fuser.c Wed May 28 16:53:35 2008
3     @@ -208,6 +208,7 @@
4     return plist;
5     }
6    
7     +/* NB: does chdir internally */
8     static pid_list *scan_proc_pids(inode_list *ilist)
9     {
10     DIR *d;
11     @@ -215,7 +216,8 @@
12     pid_t pid;
13     pid_list *plist;
14    
15     - d = opendir(".");
16     + xchdir("/proc");
17     + d = opendir("/proc");
18     if (!d)
19     return NULL;
20    
21     @@ -329,7 +331,7 @@
22     pp++;
23     }
24    
25     - plist = scan_proc_pids(ilist);
26     + plist = scan_proc_pids(ilist); /* changes dir to "/proc" */
27    
28     if (!plist)
29     return EXIT_FAILURE;