summaryrefslogtreecommitdiff
path: root/libbb/copy_file.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Attempt to make a warning go away without increasing size.Rob Landley2006-03-141-4/+3
|
* just whitespaceTim Riker2006-01-251-1/+1
|
* Fix cp /dev/null filename, and a few in-passing cleanups.Rob Landley2005-11-011-59/+44
|
* applying fix for:Paul Fox2005-07-191-1/+1
| | | | | | 0000117: Remove linefeed after overwrite prompt using cp -i User input not on the same line as the prompt when about to overwrite a file.
* applying fix from:Paul Fox2005-07-191-3/+7
| | | | | 0000067: cp -p produces misleading error message
* fake out support for POSIX -H and -L options since busybox cp dereferences ↵Mike Frysinger2005-04-141-4/+5
| | | | everything by default
* Dont try and preserve hard links to directories.Glenn L McGrath2004-04-191-1/+3
| | | | | | | The linux kernel doesnt allow hard links to directories, SUS says its implementation specific. cramfs gives empty directories and 0 length files the same node it makies it difficult to distinguish from hard links.
* For the time being, revert the changes for detecting copyingEric Andersen2004-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.
* Chris Larson (kergoth) writes:Eric 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.
* Chris Larson (kergoth) writes:Eric 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.
* Patch from Matt Kraai to fix debian bug #227081Glenn L McGrath2004-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
* Use low level file descriptors to match bb_copyfd_eofGlenn L McGrath2003-12-201-20/+19
|
* As we no longer use function pointers for read in common archiving codeGlenn L McGrath2003-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.
* Vodz, last_patch_86Glenn L McGrath2003-05-261-4/+2
|
* Major coreutils update.Manuel Novoa III2003-03-191-27/+27
|
* Merge copyfd and copy_file_chunkGlenn L McGrath2002-12-131-1/+1
|
* last_patch56 from vodz to simplify copy_file logicEric Andersen2002-09-171-74/+18
|
* Let people force overwrite linksEric Andersen2002-09-161-1/+1
| | | | -Erik
* Properly honor FILEUTILS_INTERACTIVE and FILEUTILS_FORCE forEric Andersen2002-09-161-1/+65
| | | | | | file all file types (not just regular files and dirs). Unlink destination files when needed. -Erik
* * libbb/copy_file.c (copy_file): Check st_dev instead of st_rdev.Matt Kraai2002-06-111-1/+1
|
* Make cp and mv optionally preserve hard links.Matt Kraai2001-12-171-1/+23
|
* Open the source before creating the destination.Matt Kraai2001-12-111-8/+11
|
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-1/+0
| | | | -Erik
* Invert FILEUTILS_PRESERVE_SYMLINKS into FILEUTILS_DEREFERENCE.Matt Kraai2001-10-051-2/+2
|
* dfp might be used uninitialized. NULL it.Eric Andersen2001-08-211-1/+1
|
* Add some missing includes to kill warnings when building with the defaultManuel Novoa III2001-06-291-0/+1
| | | | | | | Config.h and using gcc's -fno-builtin. There are probably other files with the similar problems. Also, if building against uClibc, don't include asm/unistd.h in syscalls.c and module_syscalls.c.
* Copy files until EOF, not the reported file size, to deal with bad sizes inMatt Kraai2001-06-111-3/+4
| | | | the proc filesystem.
* Made new xreadlink function for libbb and changed applets to use it instead ofMark Whitley2001-04-301-10/+3
| | | | readlink(2).
* Fix user permissions of copied directories.Matt Kraai2001-04-301-1/+8
|
* Simplify permission handling for FIFOs.Matt Kraai2001-04-301-12/+1
|
* Fix exit status when there is an error copying a file.Matt Kraai2001-04-301-1/+1
|
* Terminate source correctly when copying symlink. Report and patch byMatt Kraai2001-04-271-2/+3
| | | | Brian Webb <webbb@desertscenes.net>.
* Use generic flag names.Matt Kraai2001-04-241-9/+10
|
* Move applet_name declaration from busybox.h to libbb.h.Matt Kraai2001-04-241-1/+1
|
* Rewrite cp and mv to be SUSv2 compliant.Matt Kraai2001-04-231-143/+189
|
* Set permissions of created fileGlenn L McGrath2001-04-201-0/+1
|
* copy_file_chunk uses streams now.Glenn L McGrath2001-04-111-58/+75
|
* Convert utility.c into libbb.a. It is now a whole pile of .cEric Andersen2001-03-161-0/+180
files. Clean up the resulting damage and fix up the makefile. -Erik