diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-05-31 12:58:22 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-05-31 12:58:22 +0000 |
commit | e7bdf94241b031ed1308a915e9a58b949d52f31f (patch) | |
tree | a182af906a589004f879cdd25cfb5f6f171e139c /package/busybox/busybox-1.10.2-fuser.patch | |
parent | c35b4dbc5dcf85bc383c2158cc14b34284a10d70 (diff) | |
download | buildroot-novena-e7bdf94241b031ed1308a915e9a58b949d52f31f.tar.gz buildroot-novena-e7bdf94241b031ed1308a915e9a58b949d52f31f.zip |
busybox: additional 1.10.2 fixes
Diffstat (limited to 'package/busybox/busybox-1.10.2-fuser.patch')
-rw-r--r-- | package/busybox/busybox-1.10.2-fuser.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.10.2-fuser.patch b/package/busybox/busybox-1.10.2-fuser.patch new file mode 100644 index 000000000..02a22e0af --- /dev/null +++ b/package/busybox/busybox-1.10.2-fuser.patch @@ -0,0 +1,29 @@ +--- busybox-1.10.2/procps/fuser.c Sat Apr 19 06:03:13 2008 ++++ busybox-1.10.2-fuser/procps/fuser.c Wed May 28 16:53:35 2008 +@@ -208,6 +208,7 @@ + return plist; + } + ++/* NB: does chdir internally */ + static pid_list *scan_proc_pids(inode_list *ilist) + { + DIR *d; +@@ -215,7 +216,8 @@ + pid_t pid; + pid_list *plist; + +- d = opendir("."); ++ xchdir("/proc"); ++ d = opendir("/proc"); + if (!d) + return NULL; + +@@ -329,7 +331,7 @@ + pp++; + } + +- plist = scan_proc_pids(ilist); ++ plist = scan_proc_pids(ilist); /* changes dir to "/proc" */ + + if (!plist) + return EXIT_FAILURE; |