aboutsummaryrefslogtreecommitdiff
path: root/libbb
AgeCommit message (Collapse)Author
2001-05-05include libbb.h after other includesGlenn L McGrath
2001-05-04Larry suggested using concat_path_file() would be an even safer betEric Andersen
for 'which'. I ageed, so I whipped this up -- which revealed a bug in concat_path_file. It turns out that that a '/' can be appended from either the path _or_ the filename, but only the former was checked. -Erik
2001-04-30Oops. I was a bit too hasty and also changed applet_name.Eric Andersen
2001-04-30Made new xreadlink function for libbb and changed applets to use it instead ofMark Whitley
readlink(2).
2001-04-30These messages can be .rodata, so make them even more const.Eric Andersen
-Erik
2001-04-30Fix user permissions of copied directories.Matt Kraai
2001-04-30Simplify permission handling for FIFOs.Matt Kraai
2001-04-30Fix exit status when there is an error copying a file.Matt Kraai
2001-04-27Terminate source correctly when copying symlink. Report and patch byMatt Kraai
Brian Webb <webbb@desertscenes.net>.
2001-04-26Another nice cleanup from Larry. This adds a new last_char_is() function andEric Andersen
uses it to avoid possible buffer underruns whn strlen is zero, and avoid the possible space-hogging inline of strlen() in several cases. -Erik
2001-04-25libbb.h now includes ../busybox.h. This way, files in libbb that haveMark Whitley
BB_[FEATURE] #defines won't be ignored. Credit to Magnus Damm for spotting this.
2001-04-25Fixed a BB_MTAB #define buglet reported by Magnus Damm.Mark Whitley
2001-04-25Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen
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
2001-04-24Rewrote rm.Matt Kraai
2001-04-24Use generic flag names.Matt Kraai
2001-04-24Move applet_name declaration from busybox.h to libbb.h.Matt Kraai
2001-04-23Rewrite cp and mv to be SUSv2 compliant.Matt Kraai
2001-04-23Reversed last patch; unnecessary.Mark Whitley
2001-04-23Added a sanity check to fix weird bug exposed when sourcing in commands from aMark Whitley
file with lash. Based on report from Heinz Walter.
2001-04-23Simplify file_prefix handling, and use of *dir variable.Glenn L McGrath
2001-04-21Fix horrible, horrible memmory leak. I wondered why processes were dying !Glenn L McGrath
2001-04-21Clearly define out exclude list code, as recommended by Larry DoolittleGlenn L McGrath
2001-04-20Set permissions of created fileGlenn L McGrath
2001-04-19This has two patches. First it moves interface.c to libbb (it isEric Andersen
support code after all). It also contains a patch from Larry Doolittle that removes two instances of "strlen([^)]*) *- *1", un-shadows two variables, relaxes requirement for a sprintf(3) that returns number of bytes written, and eliminates a duplicate subroutine.
2001-04-18Move real_loop.h to libbb, where it belongs.Eric Andersen
-Erik
2001-04-18Add types for the inline funcs, thanks to Ralph Siemsen <ralphs@netwinder.org>Eric Andersen
2001-04-18Eliminated seeks so that we work correctly on pipes, and removed reliance onMatt Kraai
undefined evaluation ordering. Thanks to Anthony Towns for explanation and solution.
2001-04-16dpkg improvements, use full package struct, avoid extracting to tmp dir, ↵Glenn L McGrath
rename variable. deb_extract, untar and dpkg_deb modified to make the above possible
2001-04-15untar changed to allow deb_extract to extract to memory, allows better ↵Glenn L McGrath
operation of dpkg-deb -f
2001-04-15Reads a field from a debian control (status or available) file, handles ↵Glenn L McGrath
multi-line fields.
2001-04-15Read a FILE* till an empty line or eof and return it as a char buffer.Glenn L McGrath
In future maybe add char *end_str to interface to allow calling function to specify end point.
2001-04-13dpkg-deb -f and partial -I commands, adds 600 bytesGlenn L McGrath
2001-04-12Fix dos2unix/tr problem noted by Larry Doolittle.Matt Kraai
2001-04-12Updates, fixes for handling contents, verbose extract.Glenn L McGrath
More updates to come
2001-04-12New dpkg-deb function -t, stands for --fsys-tarfileGlenn L McGrath
2001-04-12Change size to unsinged long long, so if -1 is passed it will read as much ↵Glenn L McGrath
as possible.
2001-04-12dpkg-deb -c works nowGlenn L McGrath
2001-04-12Fix dpkg-deb, enum's are coolGlenn L McGrath
2001-04-12remove unused clearerr statementsGlenn L McGrath
2001-04-12This belongs in dos2unix.cGlenn L McGrath
2001-04-12convert() is used by dos2unix and unix2dosGlenn L McGrath
2001-04-12Moved from dos2unixGlenn L McGrath
2001-04-11Seek to start of an entry inside an ar fileGlenn L McGrath
2001-04-11copy_file_chunk uses streams now.Glenn L McGrath
2001-04-11This is primarily to allow deb_extract to be independent of the tar applet.Glenn L McGrath
TODO: This function and its conterpart in tar.c should be merged
2001-04-11Remove unneeded printf statmentGlenn L McGrath
2001-04-11Disable sigtermGlenn L McGrath
2001-04-11Move unzip, gz_open, gz_close to libbbGlenn L McGrath
2001-04-11Move deb_extract() to libbb, dpkg now independent of dpkg-debGlenn L McGrath
2001-04-11Move get_ar_headers to libbb, make dpkg_deb.c independent of ar.cGlenn L McGrath