summaryrefslogtreecommitdiff
path: root/physmem.c
Commit message (Collapse)AuthorAgeFilesLines
* sponge fixesBrock Noland2008-04-111-4/+5
| | | | | | | | | | | *Fixed many bugs relating to renaming of temp file to output file *Doesn't set umask, not sure what correct behavior is *Does not try and delete /tmp/sponge.XXXXXX on exit if there was no temporary file used *Uses temporary file when buffer * 2 is >= mem_available as the buffer will double shortly after this operation *Only traps signals if we are creating a temporary file *Cleaned up error messages Signed-off-by: Brock Noland <brockn@gmail.com>
* make sponge use a temp file if the input is largeJoey Hess2008-04-101-0/+300
patch from Brock Noland