Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pkgar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
redox-os
pkgar
Commits
9db8e8f2
Verified
Commit
9db8e8f2
authored
Mar 12, 2020
by
Jeremy Soller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0.1.5 - fix extraction of symlinks
parent
4c5a1b02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
Cargo.toml
Cargo.toml
+1
-1
src/bin.rs
src/bin.rs
+1
-3
No files found.
Cargo.toml
View file @
9db8e8f2
[package]
name
=
"pkgar"
version
=
"0.1.
4
"
version
=
"0.1.
5
"
description
=
"Redox Package Archive"
license
=
"MIT"
authors
=
[
"Jeremy Soller <jackpot51@gmail.com>"
]
...
...
src/bin.rs
View file @
9db8e8f2
...
...
@@ -291,9 +291,7 @@ pub fn extract(public_path: &str, archive_path: &str, folder: &str) -> Result<()
entry
.copy_hash
(
&
mut
package
,
&
mut
temp_file
,
&
mut
buf
)
?
},
MODE_SYMLINK
=>
{
let
size
=
usize
::
try_from
(
entry
.size
())
.map_err
(
Error
::
TryFromInt
)
?
;
let
mut
data
=
vec!
[
0
;
size
];
let
mut
data
=
Vec
::
new
();
let
(
total
,
hash
)
=
entry
.copy_hash
(
&
mut
package
,
&
mut
data
,
&
mut
buf
)
?
;
let
os_str
:
&
OsStr
=
OsStrExt
::
from_bytes
(
data
.as_slice
());
symlink
(
os_str
,
&
temp_path
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment