fix bug in detecting file system type
This commit is contained in:
parent
4041fefe13
commit
229644cd1d
|
@ -196,7 +196,7 @@ def checkSensitiveFilePermissions(filename):
|
||||||
['/usr/bin/stat', '-f', '-c', '%T', filename],
|
['/usr/bin/stat', '-f', '-c', '%T', filename],
|
||||||
stderr=subprocess.STDOUT
|
stderr=subprocess.STDOUT
|
||||||
) # nosec B603
|
) # nosec B603
|
||||||
if 'fuseblk' in fstype:
|
if b'fuseblk' in fstype:
|
||||||
logger.info(
|
logger.info(
|
||||||
'Skipping file permissions check for %s.'
|
'Skipping file permissions check for %s.'
|
||||||
' Filesystem fuseblk detected.', filename)
|
' Filesystem fuseblk detected.', filename)
|
||||||
|
|
Reference in New Issue
Block a user