Skip to content

Commit

Permalink
Fix file decompression when a colon is present in the name; closes pt…
Browse files Browse the repository at this point in the history
  • Loading branch information
DaneEveritt committed Mar 15, 2020
1 parent a5d1760 commit 79a8f77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This file is a running track of new features and fixes to each version of the da
to connect and send commands to a server they do not have permission to access.
* Fixes utilization metrics to send the correct CPU and memory usage calculations for servers. This now matches the
logic used by `docker stats`.
* Files with a colon in their name can be properly decompressed.

### Added
* Installation docker images can now be prefixed with `~` to use a local image.
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class FileSystem {

let Exec;
if (result === 'application/x-gzip' || result === 'application/gzip') {
Exec = Process.spawn('tar', ['xzf', Path.basename(file), '-C', to], {
Exec = Process.spawn('tar', ['xzf', Path.basename(file), '--force-local', '-C', to], {
cwd: Path.dirname(file),
uid: Config.get('docker.container.user', 1000),
gid: Config.get('docker.container.user', 1000),
Expand Down

0 comments on commit 79a8f77

Please sign in to comment.