We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa613f3 commit 0e7133cCopy full SHA for 0e7133c
src/fetchers/tarball-fetcher.js
@@ -136,6 +136,11 @@ export default class TarballFetcher extends BaseFetcher {
136
chown: false, // don't chown. just leave as it is
137
map: header => {
138
header.mtime = now;
139
+ if (header.linkname) {
140
+ const basePath = path.posix.dirname(path.join('/', header.name));
141
+ const jailPath = path.posix.join(basePath, header.linkname);
142
+ header.linkname = path.posix.relative('/', jailPath);
143
+ }
144
return header;
145
},
146
fs: patchedFs,
0 commit comments