Merge pull request #942 from mslacken/ContainerShSymlink

import symlinked /bin/sh
This commit is contained in:
Jonathon Anderson
2023-12-09 02:01:38 -07:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -115,6 +115,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- only write IPMI if write is true
- Don't show an error if image files for containers can't be found. #933
- Make configured paths available in overlays as `.Path` #960
- Support importing containers with symlinked `/bin/sh` #797
## [4.4.0] 2023-01-18

View File

@@ -177,7 +177,7 @@ func IsFile(path string) bool {
return false
}
if stat, err := os.Stat(path); err == nil && !stat.IsDir() {
if stat, err := os.Lstat(path); err == nil && !stat.IsDir() {
return true
}
return false