busybox: rm -f should NOT work on directories
David Douthitt
ssrat at mailbag.com
Wed Sep 20 17:16:16 UTC 2000
Package: busybox
Version: 0.47pre
Severity: normal
rm -f <dir> works under busybox, but does not under GNU fileutils rm.
Instead, rm -f <dir> should report:
rm: /tmp/foo: is a directory
Following is some output....
Under LRP 2.9.7 (modified), with busybox 0.47pre installed:
# busybox
BusyBox v0.47pre (2000.07.21-04:02+0000) multi-call binary -- GPL2
Usage: busybox [function] [arguments]...
or: [function] [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use, and
BusyBox
will act like whatever it was invoked as.
Currently defined functions:
busybox, cat, chgrp, chmod, chown, clear, cp, cut, date, dd,
df,
dmesg, du, dutmp, false, fdflush, find, gunzip, gzip, kill,
killall,
ln, loadkmap, ls, makedevs, mkdir, mknod, nc, more, mount, mv,
printf, pwd, renice, rm, rmdir, sleep, sync, swapon, swapoff,
tar, telnet, tee, touch, true, umount, update, zcat
# uname -a
Linux lrpsys.nope 2.2.16 #1 Sun Jul 16 18:29:35 EDT 2000 i386 unknown
# mkdir /tmp/foo
# rm -f /tmp/foo
# ls /tmp/foo
/tmp/foo: No such file or directory
#
Under Red Hat 6.2:
# rpm -qf $(which rm)
fileutils-4.0-21
# uname -a
Linux mysys.nope 2.2.16-3 #1 Mon Jun 19 18:49:25 EDT 2000 i586 unknown
# mkdir /tmp/foo
# rm -f /tmp/foo
rm: /tmp/foo: is a directory
# ls -ld /tmp/foo
drwxr-xr-x 2 root root 4096 Sep 20 12:12 /tmp/foo
#
--
David Douthitt
UNIX Systems Administrator
HP-UX, Linux, Unixware
ddouthitt at mennonite.minister.net
---------------------------------------
Received: (at 1040-close) by bugs.lineo.com; 20 Sep 2000 23:10:50 +0000
More information about the busybox
mailing list