mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #3217 from SvenDowideit/deal-with-changing-paths-for-lxc-start
lxc-start-unconfined softlink can go bad
This commit is contained in:
commit
f0d6a91a1b
1 changed files with 1 additions and 1 deletions
|
@ -868,7 +868,7 @@ func linkLxcStart(root string) error {
|
|||
}
|
||||
targetPath := path.Join(root, "lxc-start-unconfined")
|
||||
|
||||
if _, err := os.Stat(targetPath); err != nil && !os.IsNotExist(err) {
|
||||
if _, err := os.Lstat(targetPath); err != nil && !os.IsNotExist(err) {
|
||||
return err
|
||||
} else if err == nil {
|
||||
if err := os.Remove(targetPath); err != nil {
|
||||
|
|
Loading…
Reference in a new issue