projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7960ad7
)
.
author
Jim Meyering
<jim@meyering.net>
Wed, 13 Apr 1994 15:26:17 +0000
(15:26 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 13 Apr 1994 15:26:17 +0000
(15:26 +0000)
src/cp.c
patch
|
blob
|
history
diff --git
a/src/cp.c
b/src/cp.c
index
fceee95
..
b190c64
100644
(file)
--- a/
src/cp.c
+++ b/
src/cp.c
@@
-1182,8
+1182,7
@@
copy_reg (src_path, dst_path)
/* If the file has fewer blocks than would normally
be needed for a file of its size, then
at least one of the blocks in the file is a hole. */
- if (S_ISREG (sb.st_mode) &&
- sb.st_size - (sb.st_blocks * DEV_BSIZE) >= DEV_BSIZE)
+ if (S_ISREG (sb.st_mode) && sb.st_size > sb.st_blocks * DEV_BSIZE)
make_holes = 1;
}
#endif