summaryrefslogtreecommitdiff
path: root/src/cp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-04-13 15:26:17 +0000
committerJim Meyering <jim@meyering.net>1994-04-13 15:26:17 +0000
commitbaaac7ac25ea615dfd014acb9fbcad56f0dceb6e (patch)
tree10e24cc66eaaa30af99492de7a42ae62ad73b6c6 /src/cp.c
parent7960ad7d8b7b2a57c416d8d15aea60a13c9b602a (diff)
downloadcoreutils-baaac7ac25ea615dfd014acb9fbcad56f0dceb6e.tar.xz
.
Diffstat (limited to 'src/cp.c')
-rw-r--r--src/cp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cp.c b/src/cp.c
index fceee953c..b190c6416 100644
--- 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