aboutsummaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
* For the time being, revert the changes for detecting copyingandersen2004-02-221-6/+0
| | | | | | | | | a directory into itself. It is harder to do this correctly than it appears. Not trying at all seems a better compromise for the time being, untill we can implement this correctly. git-svn-id: svn://busybox.net/trunk/busybox@8547 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Sometimes i get carried away with the use of function pointers, im surebug12004-02-211-5/+5
| | | | | | | it seemed like a good idea at the time. git-svn-id: svn://busybox.net/trunk/busybox@8531 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Chris Larson (kergoth) writes:andersen2004-02-191-16/+6
| | | | | | | | | | | | | | As Manuel points out, this is a flawed fix, and doesnt fix the following: mkdir -p cpa cpb cpc cp -a cpa cpa/cpb/cpc Attached what appears to be a more sane fix. Apply on top of previous. Please confirm sanity. git-svn-id: svn://busybox.net/trunk/busybox@8517 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Chris Larson (kergoth) writes:andersen2004-02-191-0/+16
| | | | | | | | | | | | | | | | I was adding -s/--symbolic-link support to busybox cp when I noticed a bug with -r/-a. Test case: mkdir -p test/out cd test busybox cp -a * out/ Will never return until we run out of open files or similar. Coreutils cp on the other hand will error with "cannot copy a directory, `out', into itself, `out'". Patch attached. git-svn-id: svn://busybox.net/trunk/busybox@8516 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Accomodate the fact that newer libc versions may in fact notandersen2004-02-131-6/+29
| | | | | | | contain query_module and friends and more git-svn-id: svn://busybox.net/trunk/busybox@8464 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make the loop support stuff be much less evil, and make it copeandersen2004-02-064-81/+34
| | | | | | | | | | | | with 2.6.x asm/posix_types.h, which has done singularly evil thing by yanking __kernel_dev_t and renaming it. The loop interface was really poorly designed in the first place. The new 64 bit loop interface looks to be somewhat less horrible, too bad it is only present in 2.6.x kernels. -Erik git-svn-id: svn://busybox.net/trunk/busybox@8418 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vladimir N. Oleynik writes:andersen2004-02-051-3/+1
| | | | | | | | | | | Ok. I found my mistake :( The trivial patch attached. --w vodz git-svn-id: svn://busybox.net/trunk/busybox@8410 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The variable 'complementaly' used to be allocated with calloc, which zeroed itandersen2004-02-041-0/+2
| | | | | | | | | | | | out during the allocation process. When vodz changed it to be allocated on the stack, he forgot to explicitly zero it, leaving its value filled with whatever used to be sitting on the stack. It would garbage values, depending on the garbage that happened to be sitting on the stack when the function was called. The result was that applets using bb_getopt_ulflags() were showing unpredictable behavior (such as segfaults), which naturally broke many things. git-svn-id: svn://busybox.net/trunk/busybox@8397 69ca8d6d-28ef-0310-b511-8ec308f3f277
* s/u_int/unsigned int/gandersen2004-01-301-4/+4
| | | | | | | s/u_short/unsigned short/g git-svn-id: svn://busybox.net/trunk/busybox@8375 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use proper C99 types throughout. So not use silly typedefs.andersen2004-01-301-47/+44
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8373 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Support new uClibc stdio core.mjn32004-01-301-4/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8369 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply a couple of optimizationsandersen2004-01-291-3/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8363 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Teach busybox ps to get the correct uid when displaying stuffandersen2004-01-271-3/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8355 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz, last_patch_123, patch have new version getopt_ulflags.bug12004-01-221-28/+20
| | | | | | | | | - size reduced 34 bytes - don`t use dynamic memory allocation - small indent correction. git-svn-id: svn://busybox.net/trunk/busybox@8332 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Atsushi Nemoto, recent MIPS kernel headersbug12004-01-211-0/+4
| | | | | | | | does not provide PAGE_SHIFT for userland (because now mips-linux kernel supports PAGESIZE other than 4K). git-svn-id: svn://busybox.net/trunk/busybox@8324 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Modify bb_lookup_port to allow the protocol to be specified, allowingbug12004-01-171-2/+2
| | | | | | | /etc/services support for inetd, netcat and tftp. git-svn-id: svn://busybox.net/trunk/busybox@8307 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a bug where mount could check the wrong device. st_rdev is the correctandersen2004-01-131-2/+5
| | | | | | | | | | device ID iff the named file is a character or block special device. Otherwise it is meaningless junk, in which case st_dev should be used. This was done incorrectly, which could cause mount to display bogus mount info. -Erik git-svn-id: svn://busybox.net/trunk/busybox@8279 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Matt Kraai to fix debian bug #227081bug12004-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | cp does not truncate existing destinations. That is, after running echo foo > foo echo fubar > fubar cp foo fubar the contents of fubar are foo r instead of foo git-svn-id: svn://busybox.net/trunk/busybox@8270 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix broken formattingandersen2003-12-231-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8168 69ca8d6d-28ef-0310-b511-8ec308f3f277
* don't mess up errnoandersen2003-12-231-2/+9
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8167 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bother. It seems I can't read.andersen2003-12-201-4/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8150 69ca8d6d-28ef-0310-b511-8ec308f3f277
* doh!andersen2003-12-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8149 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Try to accomodate systems that do not define PAGE_SHIFTandersen2003-12-201-0/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8147 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use low level file descriptors to match bb_copyfd_eofbug12003-12-201-20/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8142 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change interface to bb_lookup_host, dont try and set port inside thisbug12003-12-201-18/+15
| | | | | | | | | | | function as there is no gracefull way of handling failures. Rename bb_getport to bb_lookup_port, allow a default port to be specified so it always returns a correct value. Modify ftpgetput/rdate/wget to use the new interface. wget/rdate now use etc/services with a falback default value. git-svn-id: svn://busybox.net/trunk/busybox@8140 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Allow escaped 8 bit characters in bb_opt_complementalybug12003-12-191-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8131 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix a bug preventing use of escaped characters that use the signed bitbug12003-12-191-3/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Get vfork_daemon_rexec working under uclinuxruss2003-12-151-6/+57
| | | | git-svn-id: svn://busybox.net/trunk/busybox@8087 69ca8d6d-28ef-0310-b511-8ec308f3f277
* When a size of 0 is passed to copyfd_size, dont do anything, it wasbug12003-11-241-1/+4
| | | | | | | reading untill eof which breaks tar git-svn-id: svn://busybox.net/trunk/busybox@8001 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix warningbug12003-11-221-2/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7985 69ca8d6d-28ef-0310-b511-8ec308f3f277
* As we no longer use function pointers for read in common archiving codebug12003-11-213-27/+38
| | | | | | | | | | 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
* Dont over-read fd, use function pointer for hash function.bug12003-11-201-29/+43
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7974 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Superficial changesbug12003-11-201-19/+17
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7955 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Merge common parts of sha1sum and md5sum, which is everything except thebug12003-11-102-1/+849
| | | | | | | | | 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
* Fix rdate and ftpget/ftpput so they compile with the new xconnect.andersen2003-11-031-2/+2
| | | | | | | | I have checked rdate. Someone should also check ftpget/ftpput to be sure they still work. git-svn-id: svn://busybox.net/trunk/busybox@7765 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rework wget, the xconnect interface, and its various clientsandersen2003-10-312-50/+38
| | | | | | | | | | | | | | | | | in order to fix the problems with round robin DNS reported by Andrew Flegg: http://busybox.net/lists/busybox/2003-October/009579.html This removes the ipv6 specific xconnect dns lookups. I do not see why that would need to be special cased for ipv6 as was done, but that will just have to be tested. So IPV6 people -- please test this change! -Erik git-svn-id: svn://busybox.net/trunk/busybox@7735 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Arthur Othieno to fix a compiler warningandersen2003-10-221-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7697 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make this a little bit less messyandersen2003-10-221-13/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix an ommision preventing building, patch by Tito.bug12003-10-091-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7628 69ca8d6d-28ef-0310-b511-8ec308f3f277
* We did not have a safe_write, which is the analog to safe_read. Convertandersen2003-10-092-1/+49
| | | | | | | | full_write to use safe_write internally, which is needed to guarantee proper behavior, i.e. when writing to a pipe. git-svn-id: svn://busybox.net/trunk/busybox@7621 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Vodz last_patch_105 without his xargs patch which doenst apply cleanlybug12003-10-061-2/+12
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7605 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add the "install" applet, move get_ug_id to libbb as its used by chown,bug12003-09-242-1/+29
| | | | | | | chgrp and install. git-svn-id: svn://busybox.net/trunk/busybox@7557 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Configuration option to define wether to follows GNU sed's behaviour bug12003-09-161-2/+1
| | | | | | | | or the posix standard. Put the cleanup code back the way it was. git-svn-id: svn://busybox.net/trunk/busybox@7535 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Compile get_terminal_width_heightbug12003-09-161-7/+8
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7533 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be entirely consistant when using ioctl(0, TIOCGWINSZ, &winsize)andersen2003-09-151-0/+66
| | | | | | | | to ensure proper fallback behavior on, i.e. serial consoles. -Erik git-svn-id: svn://busybox.net/trunk/busybox@7526 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more crond+crontab integrating with loginutil libbb functions and deletedbug12003-09-031-4/+12
| | | | | | | | patch from Thomas Gleixner to init. Viodz last_patch_108 git-svn-id: svn://busybox.net/trunk/busybox@7377 69ca8d6d-28ef-0310-b511-8ec308f3f277
* move all "-/bin/sh" "/bin/sh" and "sh" to libbb/messages.c file as onebug12003-09-022-1/+5
| | | | | | | | constant. Vodz last_patch_107 git-svn-id: svn://busybox.net/trunk/busybox@7365 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix compile error and reducing size for libbb/get_console.c to previous size.bug12003-09-011-45/+27
| | | | | | | Vodz last_patch106 git-svn-id: svn://busybox.net/trunk/busybox@7345 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The default behaviour for run-parts is corrected to continue if an errorbug12003-08-301-2/+3
| | | | | | | | is encountered in a script. Patch by Philip Blundell git-svn-id: svn://busybox.net/trunk/busybox@7309 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove some unwanted code, patch from Holger Schurig, confirmed by vodzbug12003-08-291-4/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@7293 69ca8d6d-28ef-0310-b511-8ec308f3f277