[PATCH] fuser bugfix: switch to /proc before scanning pid list

Matthias Kaehlcke matthias at kaehlcke.net
Wed Oct 1 10:45:35 UTC 2008


scan_proc_pids() of the fuser applet assumes that the working
directory is /proc when it is invoked. in the current version of
busybox this isn't the case and fuser fails if the working directory
is different from /proc. this patch adds a chdir("/proc") at the
beginning of scan_proc_pids()

-- 
Matthias Kaehlcke
Embedded Linux Engineer
Barcelona

       The yellow ships hung in the air just like bricks dont do
                 (The Hitch-Hiker's Guide to the Galaxy)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fuser_chdir_proc.diff
Type: text/x-diff
Size: 288 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20081001/0e6fa1d1/attachment.bin 


More information about the busybox mailing list