aboutsummaryrefslogtreecommitdiff
path: root/coreutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Very minor tweak to tail.landley2005-08-131-4/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11128 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rewrite of mount, umount, losetup. Untangled lots of code, shrunklandley2005-08-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | things down a bit, fixed a number of funky corner cases, added support for several new features (things like mount --move, mount --bind, lazy unounts, automatic detection of loop mounts, and so on). Probably broke several other things, but it's fixable. (Bang on it, tell me what doesn't work for you...) Note: you no longer need to say "-o loop". It does that for you when necessary. Still need to add "user mount" support, which involves making mount suid. Not too hard to do under the new infrastructure, just haven't done it yet... The previous code had the following notes, that belong in the version control comments: - * 3/21/1999 Charles P. Wright <cpwright@cpwright.com> - * searches through fstab when -a is passed - * will try mounting stuff with all fses when passed -t auto - * - * 1999-04-17 Dave Cinege...Rewrote -t auto. Fixed ro mtab. - * - * 1999-10-07 Erik Andersen <andersen@codepoet.org>. - * Rewrite of a lot of code. Removed mtab usage (I plan on - * putting it back as a compile-time option some time), - * major adjustments to option parsing, and some serious - * dieting all around. - * - * 1999-11-06 mtab support is back - andersee - * - * 2000-01-12 Ben Collins <bcollins@debian.org>, Borrowed utils-linux's - * mount to add loop support. - * - * 2000-04-30 Dave Cinege <dcinege@psychosis.com> - * Rewrote fstab while loop and lower mount section. Can now do - * single mounts from fstab. Can override fstab options for single - * mount. Common mount_one call for single mounts and 'all'. Fixed - * mtab updating and stale entries. Removed 'remount' default. - * git-svn-id: svn://busybox.net/trunk/busybox@11099 69ca8d6d-28ef-0310-b511-8ec308f3f277
* implemented a builtin echo command in ash. moved the guts of thepgf2005-08-092-138/+3
| | | | | | | | | echo applet into libbb, and now call bb_echo() from both echo.c and ash.c git-svn-id: svn://busybox.net/trunk/busybox@11083 69ca8d6d-28ef-0310-b511-8ec308f3f277
* commiting patch from bug 71:pgf2005-08-012-4/+75
| | | | | | | | 0000071: patch: implement "--color" option for ls coloring control git-svn-id: svn://busybox.net/trunk/busybox@11009 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tell people to ignore the dups/e0 warningsvapier2005-07-301-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10980 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use toplevel ARFLAGS and update default ARFLAGS to be quietvapier2005-07-272-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10923 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove unused variable ret as reported by apgo in Bug 350 and touchup syntax ↵vapier2005-07-261-8/+5
| | | | | | along the way git-svn-id: svn://busybox.net/trunk/busybox@10920 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just punt all the f_frsize crap since not all linux headers support it Bug 346vapier2005-07-261-22/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10917 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying fix for:pgf2005-07-201-0/+12
| | | | | | | | | 0000265: tail -f should keep following files even if they were truncated git-svn-id: svn://busybox.net/trunk/busybox@10884 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying patch from:pgf2005-07-201-1/+2
| | | | | | | | 0000227: sort use wrong type for getopt return variable git-svn-id: svn://busybox.net/trunk/busybox@10879 69ca8d6d-28ef-0310-b511-8ec308f3f277
* If /tmp and /home were different partitions, then "mv /tmp/file /home/file"landley2005-07-201-3/+3
| | | | | | | | | | would delete /home/file even if /tmp/file didn't exist. This fixes that, although the logic of both mv and cp is a bit tangled and should probably be untangled. git-svn-id: svn://busybox.net/trunk/busybox@10868 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by jonlar in Bug 312 to split the U_W_TMP feature into sep UTMP and ↵vapier2005-07-011-1/+1
| | | | | | WTMP options git-svn-id: svn://busybox.net/trunk/busybox@10679 69ca8d6d-28ef-0310-b511-8ec308f3f277
* patch by Shaun Jackman to combine dup/close funcs into dup2vapier2005-06-301-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10642 69ca8d6d-28ef-0310-b511-8ec308f3f277
* dont use f_frsize unless linux-2.6.0 or bettervapier2005-06-291-1/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10622 69ca8d6d-28ef-0310-b511-8ec308f3f277
* tweak signed/unsigned char usage to avoid mismatchesvapier2005-06-241-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10585 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shaun Jackman submitted a patch converting an allocation to uselandley2005-05-281-5/+7
| | | | | | | | CONFIG_RESERVE_BUFFER. (Rob Landley removed an #ifdef, per discussion on the list.) git-svn-id: svn://busybox.net/trunk/busybox@10435 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Shaun Jackman to save a few bytes.landley2005-05-281-4/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10433 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use more busybox functions and remove redundant codevapier2005-05-161-18/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10343 69ca8d6d-28ef-0310-b511-8ec308f3f277
* as Rob Landley pointed out, need to fix the 1 versus i typo in indexingvapier2005-05-131-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10323 69ca8d6d-28ef-0310-b511-8ec308f3f277
* blah, forgot to save last time to fix whitespacingvapier2005-05-131-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10322 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove duplicated code and rework algorithms to end up with smaller codevapier2005-05-131-40/+38
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10321 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use a bunch of if statements since it is a few bytes smaller than a switch; ↵vapier2005-05-121-20/+16
| | | | | | also use bb_xfopen() instead of fopen() so comm doesnt segfault when given non-existant files :( git-svn-id: svn://busybox.net/trunk/busybox@10317 69ca8d6d-28ef-0310-b511-8ec308f3f277
* err, added 2 to the wrong var :) also touchup the option detection to shrink ↵vapier2005-05-121-14/+8
| | | | | | size git-svn-id: svn://busybox.net/trunk/busybox@10316 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix segfault if user only specifies 1 filevapier2005-05-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10315 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix whitespace/coding stylevapier2005-05-121-27/+28
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10313 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add missing comm.o rulevapier2005-05-121-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10311 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace touchupsvapier2005-05-121-68/+67
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10310 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Small comm implementatin from Rob Sullivan. Needed to build perl.landley2005-05-112-0/+162
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10298 69ca8d6d-28ef-0310-b511-8ec308f3f277
* change the hardcoded error constant (0x80000000UL) to a nice flexible define ↵vapier2005-05-114-4/+4
| | | | | | (BB_GETOPT_ERROR) git-svn-id: svn://busybox.net/trunk/busybox@10289 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Shaun Jackman:landley2005-05-091-22/+15
| | | | | | | | | | | | | | | | | | | | | > This patch modfies expr to use portable POSIX regex rather than BSD > regex. ... > This updated patch implements an anchored regex by checking that the > match starts at offset 0. More to the point, this patch uses the same regex that sed.c is already using (opportunity to suck in less library code), and even building a dynamically linked busybox with just expr the result is a slightly smaller binary (by 94 bytes, I dunno what nm --size-sort has to say about it because I didn't build with debug info, since that changes the binary size a lot by disabling optimization...) Your mileage may vary. Handle with caution. Do not taunt happy fun ball. git-svn-id: svn://busybox.net/trunk/busybox@10272 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Manuel points out that if printf needs a flush to act like dprintf, the resultlandley2005-05-071-2/+1
| | | | | | | | is bigger. Revert last patch. git-svn-id: svn://busybox.net/trunk/busybox@10268 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Shaun Jackman pointed out that dprintf(STDOUT_FILENO,...) is just a printf.landley2005-05-071-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10263 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A patch from Takeharu KATO to update/fix SE-Linux support.landley2005-05-032-36/+41
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10238 69ca8d6d-28ef-0310-b511-8ec308f3f277
* On Wednesday 13 April 2005 09:12 pm, Shaun Jackman wrote:landley2005-04-301-26/+13
| | | | | | | | | > This patch fixes a memory leak in hash_file by using the BUFFER macros > instead of xmalloc. Please apply. git-svn-id: svn://busybox.net/trunk/busybox@10207 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Matthew S. Wood:landley2005-04-291-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | | > The following patch adds support for the -S and -b flags to `ln'. These > flags [especially -b] are used extensively in Debian pre and post > installation scripts. Comments from Vladimir Oleynik influenced the final patch, and I also ripped out the in-file changelog since it belongs here. At the time, it said: /* Apr 15, 2004 Matthew S. Wood (mwood@realmsys.com) * * Implement '-b' (backup) flag. * Implement '-S' (backup suffix) flag. * * * Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) * * Fixed bug involving -n option. Essentially, -n was always in effect. */ git-svn-id: svn://busybox.net/trunk/busybox@10202 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix stupid build mistake i made earlier as pointed out by psmvapier2005-04-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10182 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rework human_fstype to cut down sizevapier2005-04-241-78/+47
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10170 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rework options to get rid of extra variablesvapier2005-04-241-15/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10169 69ca8d6d-28ef-0310-b511-8ec308f3f277
* stat implementation based upon coreutilsvapier2005-04-233-0/+615
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10163 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cast the time pointer so gcc stops warning over nothingvapier2005-04-231-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10153 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use bb_fflush_stdout_and_exit instead of exitvapier2005-04-231-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10152 69ca8d6d-28ef-0310-b511-8ec308f3f277
* grab sum from coreutils, clean it up, and make it busybox happyvapier2005-04-213-0/+189
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10148 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add a printenv implementationvapier2005-04-213-0/+59
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10147 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix whitespacevapier2005-04-211-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10146 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bernhard Fischer to make a bunch of symbols staticandersen2005-04-162-4/+4
| | | | | | | which were otherwise cluttering the global namespace. git-svn-id: svn://busybox.net/trunk/busybox@10121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* In Bug 208, bernhardf writes:vapier2005-04-161-2/+2
| | | | | | | | | On machines with only ANSI compliant compilers, not explitily delcaring an empty parameter list 'void' causes failure. git-svn-id: svn://busybox.net/trunk/busybox@10113 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fake out support for POSIX -H and -L options since busybox cp dereferences ↵vapier2005-04-141-5/+13
| | | | | | everything by default git-svn-id: svn://busybox.net/trunk/busybox@10097 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add aliases == and [[ for = and [ to support more bash scriptsvapier2005-04-141-1/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@10096 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add 'nice' and replace 'renice' with a new implementation.mjn32005-02-133-0/+93
| | | | git-svn-id: svn://busybox.net/trunk/busybox@9868 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Sort rewrite to be SUSv3 compliant. New config option, updated help, andlandley2005-01-242-56/+306
| | | | | | | a couple of infrastructure bits. git-svn-id: svn://busybox.net/trunk/busybox@9767 69ca8d6d-28ef-0310-b511-8ec308f3f277