mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
Only escape backslash, question mark is not needed
This commit is contained in:
parent
bc6d294b91
commit
7dfd580320
@ -884,7 +884,7 @@
|
||||
sFILE=$1
|
||||
CANREAD=0
|
||||
RETVAL=1
|
||||
escaped_file=$(echo ${sFILE} | sed 's/\*/\\*/; s/\?/\\?/')
|
||||
escaped_file=$(echo ${sFILE} | sed 's/\*/\\*/; s/?/\\?/')
|
||||
LogText "Test: check if we can access ${sFILE} (escaped: ${escaped_file})"
|
||||
|
||||
# Check for symlink
|
||||
|
Loading…
x
Reference in New Issue
Block a user