mirror of
https://github.com/securego/gosec.git
synced 2025-01-03 22:52:22 +02:00
Fix os.IsExist() condition in filelist.Contains()
This commit is contained in:
parent
b659538aa8
commit
0737ea6b04
@ -59,7 +59,7 @@ func (f *filelist) Contains(pathname string) bool {
|
||||
|
||||
// Finally try absolute path
|
||||
st, e := os.Stat(rel)
|
||||
if !os.IsNotExist(e) && st.IsDir() && strings.HasPrefix(abs, rel) {
|
||||
if os.IsExist(e) && st.IsDir() && strings.HasPrefix(abs, rel) {
|
||||
return true
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user