mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
.
This commit is contained in:
1 parent
7960ad7d8b
commit
baaac7ac25
1 file changed
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user