📄 changelog
字号:
* Fixed rebooting when init runs as an initrd. * Fixes and updates from Karl M. Hegbloom <karlheg@debian.org> - update.c rewritten to look more like update-2.11 - moveed the inode hash out of du.c and into utility.c to make it a common resource that can be used by other apps. - cp_mv.c now checks inodes to see if a source and dest are the same, and prints an error (instead of endlessly looping). - mv now attempts to do a rename, and will fall back to doing a copy only if the rename fails. - Syslogd now supports multiple concurrent connections * Several fixes from Pavel Roskin <proski@gnu.org>: - Fixes to sort. Removed "-g", fixed and added "-r" - Fixes to the makefile for handling "strip" * An initial telnet implementation was added by Randolph Chung <tausq@debian.org>. * Fixed a bug where "sed 's/foo/bar/g'" (i.e. a script w/o a "-e") * ps now supports BB_FEATURE_AUTOWIDTH, and can adjust its width to match the terminal (defaults to width=79 when this is off). * ps now accepts (and ignores) all options except for "--help" (which as would be expected displays help). * Fixed mount'ing loop devices when the filesystem type was not specified. It used to revert to non-loop after the first try. * all mallocs now use xmalloc (and so are OOM error safe), and the common error handling saves a few bytes. Thanks to Bob Tinsley <bob@earthrise.demon.co.uk> for the patch. * Fix "+" parsing bug in date, from "Merle F. McClelland" <mfm@cts.com>. * Fix symlink following bug in chmod -R and friends. * Now allows SYSV style 'chown foo:bar' in addition to 'chown foo.bar' * Fixed a bug in the busybox globbing routine such that 'find /dir -name [i]' no longer segfaults. -Erik Andersen0.42 * Fairly massive restructuring of umount.c to deal with remounting busy devices read-only. Adds a -r option to control that; it is optionally compiled in with BB_FEATURE_REMOUNT * Added a bunch of functions to mtab.c to interact with the {get,set,end}mntent interface; as it turns out, those functions do not appear to be re-entrant, and that causes a lot of problems with the way umount was originally written. * Makes init send TERM and KILL (instead of HUP and KILL) on reboot to be more consistent with sysvinit * Changes to init.c to use the new -r option to umount. Also increased the sleep time between the time the TERM and KILL signals are sent - Randolph Chung * cp.c, mv.c: removed, replaced by cp_mv.c which has been extensively rewritten from the original cp.c. * Fixed cp and mv so if the source and destination are a the same directory it will print an error and continue. * Also added a warning message to the `mv' usage string saying that this is not GNU mv, and it will break hard links. cp also breaks hard links. * ln.c: implemented `-n' switch, no-deref symlinks. * include<sys/param.h>: and use PATH_MAX everywhere. busybox: File * name buffer overrun guards to prevent future crashes. - Always check exit status. - Purge all use of `creat()', replace with `open()'. * utility.c - recursiveAction was overriding the value of followLinks thus ignoring it. - isDirectory now takes a followLinks boolean, updated all callers - copyFile had the followLinks logic reversed. * messages.c: New file. Put common error message strings all in one place in an attempt to shrink the binary a little. -Karl M. Hegbloom * changed fsck_minix.c to reduce its .bss size significantly -beppu -piptigger * Made tar creation support in busybox tar optional. You no longer * _have_ to put a "-" in front of tar options. Tar could inadvertently * change permissions and ownership on certain directories pointed to by symlinks. * Made grep and grep -h do the right thing wrt printing the file name (it failed to print files names in many cases). * Fix a namespace aliasing problem wereby if du was built in, the symlink for both du and dutmp would be installed, or then rm was built in, the symlinks for both rm and rmmod would be installed. * Added a closelog() to init.c after loging -- fix thanks to Taketoshi Sano <kgh12351@nifty.ne.jp> * Rewrote and simplified logger. Added the "-t" option, and made it behave itself a bit better. * Optional support contributed by Ben Collins <bcollins@debian.org> for the kernel init chroot patch by Werner Almesberger, which allows init to chroot to a new device, and umount the old one. * Fixed bug that wouldn't let one chown a symlink -- it would always dereference before. -beppu * Fixed a bug where init could have reference already freed memory. Found and fixed by Taketoshi Sano <kgh12351@nifty.ne.jp> * Several contributions from Friedrich Vedder <fwv@myrtle.lahn.de> * Added (and documented) "-n" option for head * Cleanup for a number of usage messages -- also contributed Friedrich Vedder <fwv@myrtle.lahn.de> * Cosmetic fix to busybox.c (Don't print a comma at the end of line if there are no more application names). * Fixed a stupid bug in "head" option handling ("head -n" would segfault). * Moved commonly used functions "xmalloc()" and "exit()" to utility.c (with proper #ifdef's). * Created a tiny tail implementation, removing -c, -q, -v, and making tail -f work only with a single file. This reduced tail from 6k to 2.4k. The bigger/more featured tail can still be had by disabling BB_FEATURE_SIMPLE_TAIL in busybox.defs.h * Ping now falls back to doing the right thing if /etc/protocols turns up missing. * Fixed mount and umount. Previously they could leak loop device allocations, causing the system to quickly run out. Fix for umount by Ben Collins <bcollins@debian.org>, and mount was fixed by me. * ls formatting on eight charactor user names fixed by Randolph Chung <tausq@debian.org>. * cp could, when copying symlinks, change permissions of the files pointed to by the symlinks. * Several fixes from Pavel Roskin <proski@gnu.org>: - `chown' with 1 argument displayed the error incorrectly - `fdflush', `length' and `printf' crashed if run without arguments - `fdflush' tried to flush itself using *argv - added "skip" and "seek" to dd. - ls no longer messus up output when combining files and directories on the command line * swapoff -a was not working. Now it is. * init did not cleanly unmount filesystems on reboot. Now it does. * "sed -ne s/foo/bar/" worked but "sed -n -e s/foo/bar/" didn't. Now both work. * Some architectures (PowerPc) assume chars are unsigned, so they could not distinguish between EOF and '\0xFF' in sed. Sed now uses ints. * Began converting error handling to use some common routines in utility.c * syslogd now has better message handling and ignores SIGHUP. * install.sh had a bug preventing installation to the specified target directory. Fix from Gilbert Coville <gilbert@mvista.com> * You can now spefify alternative strip commands -- change also from Gilbert Coville. -Erik Andersen0.41 * New Apps: wc, hostid, logname, tty, whoami, yes -- all contributed by Edward Betts <edward@debian.org> * Fixed a bug in both cp and mv preventing 'cp foo/README bar' type commands (file in a directory to another directory) from working. * Fixed a logger bug that caused garbage to be written to the syslog (unless you used busybox syslog, which hid the bug). Thanks to Alex Holden <alex@linuxhacker.org> for the fix. * /bin/true and /bin/false were echoing a blank line when run. Now fixed. * mkdir -p would print an error when asked to mkdir an existing dir with no interveining subdirectories. * Fixed "syslogd -O" so that it works. Added -o loop option for mount, * and support in umount for loop devices. Support is toggled by MOUNT_LOOP feature -- Ben Collins <bcollins@debian.org> * Several fixes from Marco Pantaleoni <panta@prosa.it> compile in * fullWrite() not only if BB_TAR is defined, but also if BB_CP or BB_MV are (fullWrite() is referenced by copyFile()) * add some compiler optimizations to further reduce executable size (as a side note, on my machines the largest code is generated by gcc 2.95.2 with -Os ! The smallest by plain gcc 2.7.2.3 with -O2 -m386 ...) * Compile now won't fail if busybox.def.h defines BB_FEATURE_LINUXRC but not BB_INIT. (init_main used to be referenced, but not compiled) * Fixed a bug in setting TERM for serial console support. TERM now defaults to "ansi" for serial consoles. * Fixed a bug in handling the CONSOLE env. variable for serial * consoles. -Erik Andersen, Jan 15, 20000.40 * New Apps: sort, uniq. -beppu New Apps: lsmod, rmmod -erik New Apps: * fbset contributed by Randolph Chung <tausq@debian.org>. New App:: * loadacm contributed by Peter Novodvorsky <petya@logic.ru> for loading application character maps for Unicode fonts. * Major init re-work. init now supports inittab (slightly different but similar to sysvinit), allowing me to get all the policy out of init and into the conf file. It works just fine without inittab being present, but if you dont like the default behavior you can now do something about it. Init is much cleaner as a result. * Fixed an bug in syslogd causing it to stop after 20 minutes. -erik * Fixed an embarrasing segfault in head -beppu Fixed the embarrasing * failure of 'logger -p'. -erik Added the -s option to du -beppu * Re-worked the source tree a bit so it will compile under glibc 2.0.7 with the 2.0.x Linux kernel. * Added 'grep -q' thanks to a patch from "Konstantin Boldyshev" <konst@voshod.com>. * Grep -i previously failed on UPPER CASE patterns due to a silly regexp implementation bug that is now fixed. * Fixed a bug where tar would set, and then clear SGID and SUID bits. * Fixed a bug where tar would not set the user and group on device special files. * Fixed a bug where tar would not restore the time to files. Fixed a * major security problem with tar -- it changed ownership of any file pointed to by a symlink to 777 (like say libc....) Ouch!!! * cp and mv were very broken when moving directories. I have rewritten them so they should now work as expected. * sed now supports addresses (numeric or regexp, with negation) and has an append command, thanks to Marco Pantaleoni <panta@prosa.it> * Fixed dmesg. It wasn't parsing its options (-n or -s) properly. * Some cosmetic fixes to ls output formatting to make it behave more like GNU ls. * Fixed a stupid segfault in kill. Several fixes from Friedrich Vedder * <fwv@myrtle.lahn.de>: - Added gunzip -t, removed gunzip.c dead code, - fixed several typos - Glibc 2.0.7 and libc5 compile fixes * Fixed a bug where 'mknod --help' would segfault. -Erik Andersen, Jan 07, 20000.39 * New Apps: ping, hostname, and mkfifo contributed by Randolph Chung <tausq@debian.org>. 3 items off the TODO list! * I wrote free (just calls "cat /proc/meminfo"). Added tail, based on * tail from GNU textutils-1.19, but adjusted to suit my evil purposes. Costs 6k. I'll make it smaller sometime. * on reboot, init called 'umount -a -n', which caused errors when BB_MTAB was not enabled. Changed to 'umount -a', which does the right thing. * init will now try to run /sbin/getty if it is present (for easy integration with the about-to-be-released tinylogin.) * kill now behaves itself properly, added 'kill -l' to list signals 'ls * -l' was failing on long directories, since my_getid was leaking one file descriptor per file. Oops. * Fixed rebooting from init. I'd accidently left some debugging code * in which blocked reboots. * Fixed reboot, halt (and added poweroff) such that they handle it when init is not at PID 1 (like when running in an initrd). * Added a prelinary du implementation. Some parameter parsing stuff still needs to be added. -beppu (John Beppu <beppu@codepoet.org>) * Implemented tee. -beppu Implemented head. -beppu -Erik Andersen, Dec 10, 19990.38 * Fixed a segfault in 'umount -a' when a badly formed /etc/fstab file existed. * df will not exit on error, but will stat all mounted filesystems. * Fixed tar so uid/gid/permissions on extracted tarballs will be correct. * Fixed find -name so it properly uses shell wildcard patterns (i.e. `*', `?', and `[]') instead of regular expressions, which was causing some confusing and unexpected behavior. * Added klogd to syslogd, so now the log will contain both system and kernel messages. * syslogd now creates the /dev/log socket to make sure it is there, and
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -