summaryrefslogtreecommitdiff
path: root/archival (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make certain clients of bb_make_directory default to honoringEric Andersen2004-10-131-1/+1
| | | | the user's umask
* egor duda writes:Eric Andersen2004-10-084-12/+24
| | | | | | | | | | | | | | | | | | | | | | | | Hi! I've created a patch to busybox' build system to allow building it in separate tree in a manner similar to kbuild from kernel version 2.6. That is, one runs command like 'make O=/build/some/where/for/specific/target/and/options' and everything is built in this exact directory, provided that it exists. I understand that applyingc such invasive changes during 'release candidates' stage of development is at best unwise. So, i'm currently asking for comments about this patch, starting from whether such thing is needed at all to whether it coded properly. 'make check' should work now, and one make creates Makefile in build directory, so one can run 'make' in build directory after that. One possible caveat is that if we build in some directory other than source one, the source directory should be 'distclean'ed first. egor
* Make it more apparent that archive creation is not supportedEric Andersen2004-10-071-6/+10
|
* Fixup some warningsEric Andersen2004-08-282-0/+4
|
* Tito writes:Eric Andersen2004-08-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, I've spent the half night staring at the devilish my_getpwuid and my_getgrgid functions trying to find out a way to avoid actual and future potential buffer overflow problems without breaking existing code. Finally I've found a not intrusive way to do this that surely doesn't break existing code and fixes a couple of problems too. The attached patch: 1) changes the behaviour of my_getpwuid and my_getgrgid to avoid potetntial buffer overflows 2) fixes all occurences of this function calls in tar.c , id.c , ls.c, whoami.c, logger.c, libbb.h. 3) The behaviour of tar, ls and logger is unchanged. 4) The behavior of ps with somewhat longer usernames messing up output is fixed. 5) The only bigger change was the increasing of size of the buffers in id.c to avoid false negatives (unknown user: xxxxxx) with usernames longer than 8 chars. The value i used ( 32 chars ) was taken from the tar header ( see gname and uname). Maybe this buffers can be reduced a bit ( to 16 or whatever ), this is up to you. 6) The increase of size of the binary is not so dramatic: size busybox text data bss dec hex filename 239568 2300 36816 278684 4409c busybox size busybox_fixed text data bss dec hex filename 239616 2300 36816 278732 440cc busybox 7) The behaviour of whoami changed: actually it prints out an username cut down to the size of the buffer. This could be fixed by increasing the size of the buffer as in id.c or avoid the use of my_getpwuid and use getpwuid directly instead. Maybe this colud be also remain unchanged...... Please apply if you think it is ok to do so. The diff applies on today's cvs tarball (2004-08-25). Thanks in advance, Ciao, Tito
* BusyBox has no business hard coding the number of major and minor bits for aEric Andersen2004-07-263-12/+9
| | | | | | | | | dev_t. This is especially important now that the user space concept of a dev_t and the kernel concept of a dev_t are divergant. The only bit of user space allowed to know the number of major and minor bits is include/sys/sysmacros.h (i.e. part of libc). When used with a current C library and a 2.6.x kernel, this fix should allow BusyBox to support wide device major/minor numbers. -Erik
* Fixup -T (--files-from) option, works for non-directories nowGlenn L McGrath2004-07-211-3/+6
|
* Update reference for zip formatGlenn L McGrath2004-06-061-1/+4
|
* Steve Grubb writes:Eric Andersen2004-05-051-2/+2
| | | | | | | | | | | Hello, I found and patched 2 more bugs. The first is a misplaced semi-colon. The second one is a buffer overflow. I doubt the buffer overflow is triggered in real life. But you never know what those wily hackers are up to. Thanks, Steve Grubb
* Fix symlink handling and small memory leakGlenn L McGrath2004-04-291-0/+5
|
* Update my email address, document some of my tasks in the AUTHORS fileGlenn L McGrath2004-04-255-5/+5
|
* Larry Doolittle writes:Eric Andersen2004-04-148-44/+44
| | | | | | | | | | | | | | | | | | | | | | This is a bulk spelling fix patch against busybox-1.00-pre10. If anyone gets a corrupted copy (and cares), let me know and I will make alternate arrangements. Erik - please apply. Authors - please check that I didn't corrupt any meaning. Package importers - see if any of these changes should be passed to the upstream authors. I glossed over lots of sloppy capitalizations, missing apostrophes, mixed American/British spellings, and German-style compound words. What is "pretect redefined for test" in cmdedit.c? Good luck on the 1.00 release! - Larry
* Add a comment explaining why we have to check for an extra \nGlenn L McGrath2004-04-091-1/+3
|
* rename uncompress.c to decompress_uncompress.cEric Andersen2004-04-053-1279/+4
| | | | rename unzip.c to decompress_unzip.c
* Add missing include filesEric Andersen2004-03-271-0/+1
|
* s/fileno\(stdin\)/STDIN_FILENO/gEric Andersen2004-03-278-17/+17
| | | | s/fileno\(stdout\)/STDOUT_FILENO/g
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-1524-129/+129
|
* Fix option handling, -i or -t must be given, if both ignore the -t.Glenn L McGrath2004-02-251-39/+44
| | | | Use bb_getopt_ulflags.
* Sometimes i get carried away with the use of function pointers, im sureGlenn L McGrath2004-02-211-1/+1
| | | | it seemed like a good idea at the time.
* Fix up hard linksGlenn L McGrath2004-02-201-3/+5
|
* A strict interpretation of the ustar format requires the type flag to beGlenn L McGrath2004-02-201-11/+8
| | | | | interpreted, we cannot depend on the file type being set in the mode field.
* Add extra comments, freakout if a pax archive is encoutered.Glenn L McGrath2004-02-191-9/+24
|
* Remove debuggingGlenn L McGrath2004-02-171-2/+0
|
* Dont strip trailing '/' until _after_ i test to set if its there !Glenn L McGrath2004-02-171-12/+17
|
* s/u_int/uint/gEric Andersen2004-01-302-17/+17
|
* Add the -h, --dereference option for archive creation.Glenn L McGrath2004-01-251-5/+8
|
* Patch from Arthur Othieno, clarify common options between dpkg and dpkg-debGlenn L McGrath2004-01-171-20/+23
|
* Use bb_getopt_ulflags, save 100 bytes and strict argument checking.Glenn L McGrath2004-01-071-44/+49
|
* Use bb_getopt_ulflags, save 150 bytes.Glenn L McGrath2004-01-051-28/+11
|
* Use bb_getopt_ulflags, simplify some logic, saves some bytes.Glenn L McGrath2004-01-051-40/+29
|
* Fix usage with libraries, skip symbol table.Glenn L McGrath2004-01-041-1/+1
|
* Use bb_getopt_ulflags, saves some space, better argument checking.Glenn L McGrath2004-01-041-70/+32
| | | | Remove ar specific extraction code, always use common extraction code.
* Isolate code better for unused options, config option to enable longGlenn L McGrath2003-12-262-57/+138
| | | | options, add some conditions to the tar tests in testsuite.
* Fix a bug of mine where extracting files to stdout would extract toGlenn L McGrath2003-12-221-1/+1
| | | | much, modified patch from Bastian Blank
* Don't hose up perms for files that happen to have symlinksEric Andersen2003-12-211-2/+4
| | | | | in the tarball that point to them. -Erik
* Fix a compile error when only using ar, patch by Paul van GoolGlenn L McGrath2003-12-051-1/+1
|
* Patch from Ian Campbell, fix or'ed dependencies and handle virtualGlenn L McGrath2003-11-281-79/+237
| | | | dependencies.
* Fix tar hard linksGlenn L McGrath2003-11-272-5/+5
|
* Important bugfixes from Ian Campbell.Glenn L McGrath2003-11-261-26/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | init_archive_deb_data() We want to filter for data.tar.* in the AR file not the TAR file, else we get nothing. all_control_list() Make the 'extensions' array of control file names a global so it can be used in unpack_package as well. Name the global all_control_files. Don't hard code the length of all_control_files but instead used sizeof. unpack_package() Only unpack the control files we are interested in (from all_control_files). Extract the data.tar.gz into / rather than the current directory. dpkg_main() Configure packages in a second pass so all the packages being installed are unpacked before configuring. Some purely cosmetic changes: header update list of differences since two of them are no longer true. The .control file is no longer stored as a result of this patch -- it was redundant since the info is in status. New packages appear to be added to the end of the status file now rather than the start. remove_package() Make message printing optional, so we can avoid a redundant message when replacing/upgrading a package. When we do print stuff then include the version number. purge_package() Print "Purging xxx (yyy) ..." message like the other actions. configure_package() Add "..." to "Setting up" message to be consistent with other actions.
* As we no longer use function pointers for read in common archiving codeGlenn L McGrath2003-11-2111-114/+11
| | | | | | | 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.
* Use safe readGlenn L McGrath2003-11-212-2/+2
|
* Remove unused functionGlenn L McGrath2003-11-202-31/+0
|
* Fix tar-handles-nested-exclude testcaseGlenn L McGrath2003-11-202-0/+13
|
* Check at least one context is specifiedGlenn L McGrath2003-11-201-0/+3
|
* Check there are files to add the archive before removing a specifiedGlenn L McGrath2003-11-201-5/+4
| | | | tar file.
* Dont attempt to unlink directoriesGlenn L McGrath2003-11-201-1/+1
|
* tar -Z, uncompress supportGlenn L McGrath2003-11-185-11/+37
|
* Dont close original file handle, we may need it later.Glenn L McGrath2003-11-181-3/+4
|
* Make unlink old files default behaviour and add a new option -k toGlenn L McGrath2003-11-181-19/+23
| | | | prevent overwritting existing files
* Dont free filename, its needed in the extracted files list.Glenn L McGrath2003-11-171-2/+1
|