Support importing container with symlinked shell

Fixes #797

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll
2023-10-05 15:28:52 +02:00
committed by Jonathon Anderson
parent 45e3ebd1f5
commit d23e67970d
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