summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
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) {