summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-06-23 18:06:20 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-06-23 20:21:29 +0300
commit22a81e8fb5b6dc6463d1fe62e077eaa7fcb4079b (patch)
treecf0780e2a0dad5d364f15ec991c897790923d3c0 /src/io.c
parent2433c9d23b03c18006c12d37306f6e151c713607 (diff)
downloadapk-tools-22a81e8fb5b6dc6463d1fe62e077eaa7fcb4079b.tar.gz
apk-tools-22a81e8fb5b6dc6463d1fe62e077eaa7fcb4079b.tar.bz2
apk-tools-22a81e8fb5b6dc6463d1fe62e077eaa7fcb4079b.tar.xz
apk-tools-22a81e8fb5b6dc6463d1fe62e077eaa7fcb4079b.zip
mkpkg, extract: implement support for symlinks, devices and fifos
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index ece34e4..5a426cf 100644
--- a/src/io.c
+++ b/src/io.c
@@ -724,7 +724,7 @@ int apk_fileinfo_get(int atfd, const char *filename, unsigned int flags,
.gid = st.st_gid,
.mode = st.st_mode,
.mtime = st.st_mtime,
- .device = st.st_dev,
+ .device = st.st_rdev,
};
if (xattr_hash_alg != APK_DIGEST_NONE) {