Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #352 from giuseppe/fix-new-cp-issues
cp: fix another regression
  • Loading branch information
rhatdan committed Jul 9, 2019
2 parents 86b28a5 + feba476 commit 7f2769b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion daemon/archive.go
Expand Up @@ -141,6 +141,9 @@ func (daemon *Daemon) containerArchivePath(container *container.Container, path
if err != nil {
return nil, nil, err
}
if stat.LinkTarget != "" {
resolvedPath = stat.LinkTarget
}

// We need to rebase the archive entries if the last element of the
// resolved path was a symlink that was evaluated and is now different
Expand Down Expand Up @@ -269,7 +272,7 @@ func (daemon *Daemon) containerExtractToDir(container *container.Container, path
}
}

if err := chrootarchive.UntarWithRoot(content, resolvedPath, options, absPath); err != nil {
if err := chrootarchive.UntarWithRoot(content, absPath, options, container.BaseFS); err != nil {
return err
}

Expand Down

0 comments on commit 7f2769b

Please sign in to comment.