aboutsummaryrefslogtreecommitdiff
path: root/coreutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* s/fileno\(stdin\)/STDIN_FILENO/gandersen2004-03-272-5/+5
| | | | | | | s/fileno\(stdout\)/STDOUT_FILENO/g git-svn-id: svn://busybox.net/trunk/busybox@8663 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Brian Pomerantz writes:andersen2004-03-231-1/+1
| | | | | | | | | | | | | | | | | | | I've noticed a bug in the "autowidth" feature more, and is probably in others. The call to the function get_terminal_width_height() passes in a file descriptor but that file descriptor is never used, instead the ioctl() is called with 0. In more_main() the call to get_terminal_width_height() passes 0 as the file descriptor instead of fileno(cin). This isn't a problem when you more a file (e.g. "more /etc/passwd") but when you pipe a file to it (e.g. "cat /etc/passwd | more") the size of the terminal cannot be determined because file descriptor 0 is not a terminal. The fix is simple, I've attached a patch for more.c and get_terminal_width_height.c. BAPper git-svn-id: svn://busybox.net/trunk/busybox@8656 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove trailing whitespace. Update copyright to include 2004.andersen2004-03-1538-114/+114
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8630 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Hideki IWAMOTO writes:andersen2004-03-121-2/+2
| | | | | | | | | | | | | | | | | Current `tr' implementation has a problem, if `plain char' is signed. [current cvs version] >echo a | _install/usr/bin/tr '\0' '\377' Segmentation fault (core dumped) [patched version] >echo a | _install/usr/bin/tr '\0' '\377' a git-svn-id: svn://busybox.net/trunk/busybox@8624 69ca8d6d-28ef-0310-b511-8ec308f3f277
* When displaying the size in 1kB blocks round up if an odd number ofbug12004-03-101-1/+5
| | | | | | | blocks git-svn-id: svn://busybox.net/trunk/busybox@8610 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch by Seth W. Klein, the -l switch was reversedbug12004-03-101-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8609 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix broken sort order flags.mjn32004-03-081-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8601 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix/eliminate use of atolandersen2004-03-061-27/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8598 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Matt Kraai to fix debian bug number 231994.bug12004-03-061-4/+7
| | | | | | | There was an extra blank line preceding the first directory. git-svn-id: svn://busybox.net/trunk/busybox@8595 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Close bracket in description from Peter Willis's eject appletbug12004-03-051-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8572 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Return 1 upon failurebug12004-02-221-1/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8533 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use return instead of exit, use == instead of & ==, left justify labels,bug12004-02-211-33/+29
| | | | | | | adjustment of whitespace. git-svn-id: svn://busybox.net/trunk/busybox@8530 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add the -r option, patch from Rob with some help from myself.bug12004-02-171-4/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8501 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Woops, im getting ahead of myself, we dont have the -r (refernece)bug12004-02-171-2/+4
| | | | | | | option yet git-svn-id: svn://busybox.net/trunk/busybox@8493 69ca8d6d-28ef-0310-b511-8ec308f3f277
* define option names to be clearer, simplify nested if statements, removebug12004-02-171-30/+29
| | | | | | | un-needed if statement, minor indenting change git-svn-id: svn://busybox.net/trunk/busybox@8492 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir N. Oleynik writes:andersen2004-02-051-2/+2
| | | | | | | | | | | | | | Hi, Glenn. Current CVS "ls" applet have small problem: some options ignoring. Last patch attached ;-) --w vodz git-svn-id: svn://busybox.net/trunk/busybox@8411 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Jean Wolter writes:andersen2004-02-041-1/+1
| | | | | | | | | | | | | | | | | | Hello, when calling seq with seq 1 1 it generates an "endless" list of numbers until the counter wraps and reaches 1 again. The follwoing small patch should introduce the expected behavior (output of 1 and termination): regards, Jean git-svn-id: svn://busybox.net/trunk/busybox@8399 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use bb_xstrdup() instead of strdup().mjn32004-02-011-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8388 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Avoid symbol naming conflict with libmandersen2004-01-301-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8372 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New applet, seq. No options, just the basics.bug12004-01-273-0/+51
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8354 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Align using spaces to furthurest character and then one tab, now theybug12004-01-271-60/+59
| | | | | | | should always be aligned. git-svn-id: svn://busybox.net/trunk/busybox@8351 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Pascal Brisset writes:andersen2004-01-261-1/+1
| | | | | | | | | | | | | uuencode fails to encode binary data because it right-shifts bytes as signed chars and keeps the duplicated sign bits. The original base64_encode() from wget/http.c is broken as well, but it is only used to encode ascii data. -- Pascal git-svn-id: svn://busybox.net/trunk/busybox@8348 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be stricter when converting strings to integers. Should fix the problemmjn32004-01-251-9/+11
| | | | | | | reported by Rob. git-svn-id: svn://busybox.net/trunk/busybox@8347 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add the -r option as a synonym of -Rbug12004-01-251-1/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8345 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Enable long options, adds 150 bytes.bug12004-01-231-1/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8339 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Check valid options were givenbug12004-01-231-0/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8337 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Dont change ownership unless we created the directory.bug12004-01-231-4/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8336 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove unneeded conditions and logic, fix bug where ownership didntbug12004-01-231-33/+34
| | | | | | | | | change. Dont use bb_make_directory it doesnt have the features, and its ugly to work around it. git-svn-id: svn://busybox.net/trunk/busybox@8335 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a bug where `ls -le` would print the time twice.bug12004-01-181-13/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8312 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use bb_getopt_ulflags, save 200-300 bytesbug12004-01-181-89/+131
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8311 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bastian Blank to fix debian bug #226722, test case: bug12004-01-081-12/+1
| | | | | | | | | mkdir foo touch foo/bar ln -s bar foo/baz git-svn-id: svn://busybox.net/trunk/busybox@8266 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Batch from Bastian Blank to fix debian bug #216435;bug12003-12-311-4/+12
| | | | | | | | When linking a non existing file busybox ln will report the target missind and not the source: git-svn-id: svn://busybox.net/trunk/busybox@8206 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Bring usage upto date, patch by Steven Scholzbug12003-12-081-2/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8056 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a bug, ignore the source path when installing to a directory.bug12003-11-271-45/+41
| | | | | | | | We may be installing symlinks, so use lstat/lchown. Make use of bb_getopt_ulflags and cp_mv_stat2, save 100 bytes. git-svn-id: svn://busybox.net/trunk/busybox@8006 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As we no longer use function pointers for read in common archiving codebug12003-11-211-1/+1
| | | | | | | | | | archive_xread can be replaced with bb_full_read, and archive_copy_file with bb_copyfd* bb_copyfd is split into two functions bb_copyfd_size and bb_copyfd_eof, they share a common backend. git-svn-id: svn://busybox.net/trunk/busybox@7984 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up the -s option, and make usage consitent with behaviour,bug12003-11-201-7/+6
| | | | | | | patch by Steven Scholz git-svn-id: svn://busybox.net/trunk/busybox@7954 69ca8d6d-28ef-0310-b511-8ec308f3f277
* woops, we needed that functionbug12003-11-181-18/+35
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Only use getopt and associated flags if checking is enabledbug12003-11-181-44/+36
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7937 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Replaced by md5_sha1_sum.cbug12003-11-181-492/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7936 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Replaced by md5_sha1_sum.cbug12003-11-181-1102/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7935 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Merge common parts of sha1sum and md5sum, which is everything except thebug12003-11-103-10/+208
| | | | | | | | | algorithms. Move algorithms to hash_fd and make them available via a common function. git-svn-id: svn://busybox.net/trunk/busybox@7863 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As vodz pointed out, setting unset_env to NULL is sufficientandersen2003-11-071-5/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7844 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrite, 800+ bytes smaller and more robust.bug12003-11-061-330/+178
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7817 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix oversight with CONFIG_FEATURE_AUTOWIDTH handlingandersen2003-11-041-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7780 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Set unset_env pointing to a NULL item, to prevent us from walkingandersen2003-11-031-1/+5
| | | | | | | | off the end of the list and segfaulting. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7766 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move the tail -c option from FANCY_TAIL to the default tail, this makesbug12003-10-312-18/+9
| | | | | | | | the default tail options conform to SUSv3, with the non-SUS option all in FANCY_TAIL git-svn-id: svn://busybox.net/trunk/busybox@7730 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove config options for sort -u and sort -r, they are always enabledbug12003-10-311-16/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7728 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Accept the -c option and do nothingbug12003-10-291-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7723 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Disable any buffering to stdoutandersen2003-10-221-0/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7694 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Andreas Mohr writes:andersen2003-10-221-9/+9
| | | | | | | | | | | | | | the busybox menuconfig triggered my "inacceptable number of spelling mistakes" upper level, so I decided to make a patch ;-) I also improved some wording to describe some things in a better way. Many thanks for an incredible piece of software! Andreas Mohr, random OSS developer git-svn-id: svn://busybox.net/trunk/busybox@7692 69ca8d6d-28ef-0310-b511-8ec308f3f277