aboutsummaryrefslogtreecommitdiffstats
path: root/python3/sha3sum.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xpython3/sha3sum.py2
1 files changed, 2 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
blksize = 4096
try:
blksize = os.stat(os.path.realpath(fn)).st_blksize
+ if blksize <= 0:
+ blksize = 4096
except:
pass
while True: