diff options
author | chanthmiao <chanthmiao@outlook.com> | 2021-12-05 16:58:17 +0800 |
---|---|---|
committer | chanthmiao <chanthmiao@outlook.com> | 2021-12-05 16:58:17 +0800 |
commit | db5aa5e5d8932c73f1b9f01fe567fa343898b825 (patch) | |
tree | c743c87e8c896daa00f9113d26e7123649b4dfe1 /sys-utils | |
parent | 2401078c9cf9ddec105e44af074cf2fcbd4ef153 (diff) | |
download | util-linux-db5aa5e5d8932c73f1b9f01fe567fa343898b825.tar.gz |
Fix integer overflow for alpha like linux
Diffstat (limited to 'sys-utils')
-rw-r--r-- | sys-utils/swapon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index ed6be244e..76c5cac51 100644 --- a/sys-utils/swapon.c +++ b/sys-utils/swapon.c @@ -543,7 +543,7 @@ static int swapon_checks(const struct swapon_ctl *ctl, struct swap_device *dev) /* test for holes by LBT */ if (S_ISREG(st.st_mode)) { - if (st.st_blocks * 512 < st.st_size) { + if (st.st_blocks * 512L < st.st_size) { warnx(_("%s: skipping - it appears to have holes."), dev->path); goto err; |