From 920b9d89753e2a9657139624065e2ef7e2438781 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 24 Jul 2013 13:46:15 +0200 Subject: in case st_blksize is not properly set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- python2/sha3sum.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python2') diff --git a/python2/sha3sum.py b/python2/sha3sum.py index e4614d9..f1a1a11 100755 --- a/python2/sha3sum.py +++ b/python2/sha3sum.py @@ -913,6 +913,8 @@ along with this program. If not, see . blksize = 4096 try: blksize = os.stat(os.path.realpath(fn)).st_blksize + if blksize <= 0: + blksize = 4096 except: pass while True: -- cgit v1.2.3-70-g09d2