CVSROOT: /cvs Module name: src Changes by: matt...@cvs.openbsd.org 2012/07/11 10:19:24
Modified files: bin/cp : utils.c Log message: When copying a file sparsely, truncate the resulting file based on the current seek offset rather than what fstat() reported the original file's length was. This fixes things like "cp /dev/ksyms /tmp" so that we don't truncate the file to 0 bytes after copying all of the data. ok tedu, millert