aboutsummaryrefslogtreecommitdiff
path: root/coreutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Made new xreadlink function for libbb and changed applets to use it instead ofmarkw2001-04-301-6/+6
| | | | | | | readlink(2). git-svn-id: svn://busybox.net/trunk/busybox@2495 69ca8d6d-28ef-0310-b511-8ec308f3f277
* These do not need initial values. Let them live in the bss.andersen2001-04-302-3/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2493 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix handling of permission addition and removal (e.g., o-r).kraai2001-04-261-9/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2461 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Doh. I never allocated storate for the struct stat I am using.andersen2001-04-261-3/+3
| | | | | | | | There was just a never initialized pointer. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2460 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix handling of -R flag.kraai2001-04-263-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2459 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another nice cleanup from Larry. This adds a new last_char_is() function andandersen2001-04-261-1/+1
| | | | | | | | | uses it to avoid possible buffer underruns whn strlen is zero, and avoid the possible space-hogging inline of strlen() in several cases. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2450 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As Larry pointed out, this the off by one canbe fixed much more elegantly.andersen2001-04-263-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2449 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a silly off-by-one error noticed by Santiago Garcia Mantinan ↵andersen2001-04-263-3/+3
| | | | | | | | | <manty@debian.org> -Erik git-svn-id: svn://busybox.net/trunk/busybox@2448 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from I.Q. to add -s to cmp.markw2001-04-251-9/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2440 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Larry noticed that chown and chgrp has the version numbers off a bitandersen2001-04-252-2/+2
| | | | | | | for glibc's lchown support. Thanks Larry. git-svn-id: svn://busybox.net/trunk/busybox@2437 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move messages.c to libbb. Make each string in messages.c be its own .o file.andersen2001-04-259-31/+1
| | | | | | | | | | This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrote rm.kraai2001-04-242-109/+32
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2423 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Split up chmod_chown_chgrp.c into 3 separate apps. This unfortunatelyandersen2001-04-243-0/+289
| | | | | | | | | adds 384 bytes to the overall size. But having each app be standalone is the Right Thing(tm) so we will just have to live with it. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2422 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use generic flag names.kraai2001-04-242-18/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2419 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrite cp and mv to be SUSv2 compliant.kraai2001-04-232-0/+297
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2407 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simplify pathname building, in which a bug was noted by Larry Doolittle,kraai2001-04-231-9/+9
| | | | | | | | a patch was provided by Vladimir Oleynik, and am improved patch commited by me. git-svn-id: svn://busybox.net/trunk/busybox@2398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix buffer underrun noted and solved by Larry Doolittle.kraai2001-04-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2376 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from I.Q. to add sort -u as a feature.markw2001-04-171-7/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2363 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed line[strlen(line) - 1] = '\0'; to chomp(line);markw2001-04-171-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2362 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from I.Q. to fix problem with sort -n.markw2001-04-171-3/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Handle endian-ness. Patch from Paul J.Y. Lahaie <pjlahaie@linuxcare.com>andersen2001-04-141-1/+8
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2344 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix dos2unix/tr problem noted by Larry Doolittle.kraai2001-04-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2341 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use tmpfile() and revert my previous changes... convert() belongs herebug12001-04-121-0/+84
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2327 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move convert to libbbbug12001-04-121-91/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir's patch to reverse previous patchbug12001-04-111-6/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2319 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply Vladimir's latest cleanup patch.andersen2001-04-094-20/+17
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2288 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more FILE_OFFSET_BITS == 64 adjustments.andersen2001-04-051-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2267 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a fewandersen2001-04-052-3/+3
| | | | | | | | | shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2250 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Place a temporary bandaid on the ls/du/df human-readable issue. This method isandersen2001-04-031-6/+9
| | | | | | | | | | | | not going to scale up as well as I would like, and Matt Kraai and I have discussed a better long term solution. But for now this will at least make all the human-readable apps give correct answers. Please test the human readable/non-human readable options on your systems!!! -Erik git-svn-id: svn://busybox.net/trunk/busybox@2235 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in a new standalone env applet for fixing up app's environmentsandersen2001-03-291-0/+97
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2224 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix ls so it uses make_human_readable_str() the same way alreadyandersen2001-03-281-1/+1
| | | | | | | | used by 'du' and 'df'. Now we just need to fix make_human_readable_str so it behaves they way it used to before Matt fixed it. git-svn-id: svn://busybox.net/trunk/busybox@2217 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from David Douthitt to fix problem where ls reports half themarkw2001-03-271-2/+2
| | | | | | | file size. Should close bug #1140. git-svn-id: svn://busybox.net/trunk/busybox@2204 69ca8d6d-28ef-0310-b511-8ec308f3f277
* -Wshadow tr fix from Jeff Garzikandersen2001-03-231-9/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2191 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A nice patch from Larry Doolittle that adds -Wshadow andandersen2001-03-213-11/+11
| | | | | | | cleans up most of the now-revealed problems. git-svn-id: svn://busybox.net/trunk/busybox@2177 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Another cleanup patch from Jeff Garzik <jgarzik@mandrakesoft.com>andersen2001-03-193-3/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2163 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simpify detection of no options.andersen2001-03-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2149 69ca8d6d-28ef-0310-b511-8ec308f3f277
* locale correction patch from Vladimirandersen2001-03-191-20/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2146 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Should exclude "i" option when not enabled.andersen2001-03-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2144 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Doesn't need a "-" option -- getopt does that for us.andersen2001-03-191-4/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2143 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Vladimir to force interactiveFlag=FALSE when forceFlag=TRUEandersen2001-03-191-3/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2142 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getopt-ify rm so that BB_FEATURE_RM_INTERACTIVE will workandersen2001-03-191-34/+32
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Credited Christophe Boyaniqu for interactive patch to rm.markw2001-03-131-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2057 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Christophe Boyanique to add -i support to rm.markw2001-03-131-0/+25
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2053 69ca8d6d-28ef-0310-b511-8ec308f3f277
* /* getopt not needed */markw2001-03-101-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2035 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added some more '/* getopt not needed */' lines.markw2001-03-093-0/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2034 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fixed df.c so that nfs volumes will display properly (fixing bug #1113).andersen2001-03-091-6/+10
| | | | | | | | | | Problem was 512/1024 = 0 if you use longs, so I cast KILOBYTE to a double, then cast the result back to an int after the math is done, letting C's type promotion do its magic for the rest. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2032 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Jeff Garzik marking a few 'getopt not needed' apps.andersen2001-03-092-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2029 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A cleanup patch from Jeff Garzik to static-ify a number ofandersen2001-03-097-28/+28
| | | | | | | namespace polluting things that really should be static. git-svn-id: svn://busybox.net/trunk/busybox@2027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupandersen2001-03-097-1/+8
| | | | | | | | warnings with glibc 2.2 and use always use xfopen -Erik git-svn-id: svn://busybox.net/trunk/busybox@2021 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Eliminate superfluous test.kraai2001-03-071-2/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2003 69ca8d6d-28ef-0310-b511-8ec308f3f277