From fa007dcc04c410979444b944db8a1a50bcd8f0a1 Mon Sep 17 00:00:00 2001
From: Thomas Lange <lange@debian.org>
Date: Sat, 12 Aug 2017 05:39:32 +0200
Subject: [PATCH 5/6] we can get the size by using stat instead of reading the
 whole file

---
 functions | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/functions b/functions
index 8cf8c83..08db781 100644
--- a/functions
+++ b/functions
@@ -276,7 +276,7 @@ verify_checksum () {
 			error 1 SIGCHECK "Cannot check sha${SHA_SIZE}sum"
 		fi
 	fi
-	relsize=`wc -c < "$1"`
+	relsize=`stat -c '%s' "$1"`
 	if [ "$expsize" -ne "$relsize" ] || [ "$expchecksum" != "$relchecksum" ]; then
 		return 1
 	fi
-- 
2.11.0

