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 --- python3/sha3sum.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python3/sha3sum.py') diff --git a/python3/sha3sum.py b/python3/sha3sum.py index eba5ecd..83d5af9 100755 --- a/python3/sha3sum.py +++ b/python3/sha3sum.py @@ -894,6 +894,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