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
apk-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
60
Issues
60
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
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
alpine
apk-tools
Commits
1d55b948
Commit
1d55b948
authored
Aug 14, 2018
by
Jesse Young
Committed by
Timo Teräs
Aug 14, 2018
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
archive: enable FIFO extraction
parent
e1a05c74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/archive.c
src/archive.c
+4
-2
No files found.
src/archive.c
View file @
1d55b948
...
...
@@ -300,6 +300,9 @@ int apk_tar_parse(struct apk_istream *is, apk_archive_entry_parser parser,
case
'5'
:
/* directory */
entry
.
mode
|=
S_IFDIR
;
break
;
case
'6'
:
/* fifo */
entry
.
mode
|=
S_IFIFO
;
break
;
case
'g'
:
/* global pax header */
break
;
case
'x'
:
/* file specific pax header */
...
...
@@ -477,11 +480,10 @@ int apk_archive_entry_extract(int atfd, const struct apk_file_info *ae,
if
(
r
<
0
)
ret
=
-
errno
;
atflags
|=
AT_SYMLINK_NOFOLLOW
;
break
;
case
S_IFSOCK
:
case
S_IFBLK
:
case
S_IFCHR
:
case
S_IFIFO
:
r
=
mknodat
(
atfd
,
fn
,
ae
->
mode
&
07777
,
ae
->
device
);
r
=
mknodat
(
atfd
,
fn
,
ae
->
mode
,
ae
->
device
);
if
(
r
<
0
)
ret
=
-
errno
;
break
;
}
...
...
Jesse Young
@jlyo
mentioned in commit
abe925f8
·
Jul 14, 2019
mentioned in commit
abe925f8
mentioned in commit abe925f864e38a095ab26b0cbcb4b74d60d667ee
Toggle commit list
Jesse Young
@jlyo
mentioned in commit
0ff5e936
·
Jul 14, 2019
mentioned in commit
0ff5e936
mentioned in commit 0ff5e936d9aafa87da803a35f8c83ad38d9aa26c
Toggle commit list
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