aboutsummaryrefslogtreecommitdiffstats
path: root/python2
diff options
context:
space:
mode:
Diffstat (limited to 'python2')
-rwxr-xr-xpython2/sha3sum.py2
1 files changed, 2 insertions, 0 deletions
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 <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: