fix bug in detecting file system type

This commit is contained in:
Kashiko Koibumi 2024-06-23 00:47:51 +09:00
parent 4041fefe13
commit 229644cd1d
No known key found for this signature in database
GPG Key ID: 8F06E069E37C40C4

View File

@ -196,7 +196,7 @@ def checkSensitiveFilePermissions(filename):
['/usr/bin/stat', '-f', '-c', '%T', filename],
stderr=subprocess.STDOUT
) # nosec B603
if 'fuseblk' in fstype:
if b'fuseblk' in fstype:
logger.info(
'Skipping file permissions check for %s.'
' Filesystem fuseblk detected.', filename)