diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index e130f0b..1fe4eae 100644 --- a/src/database.c +++ b/src/database.c @@ -1227,7 +1227,7 @@ static int apk_db_create(struct apk_database *db) mkdirat(db->root_fd, "tmp", 01777); mkdirat(db->root_fd, "dev", 0755); - mknodat(db->root_fd, "dev/null", 0666, makedev(1, 3)); + mknodat(db->root_fd, "dev/null", S_IFCHR | 0666, makedev(1, 3)); mkdirat(db->root_fd, "etc", 0755); mkdirat(db->root_fd, "etc/apk", 0755); mkdirat(db->root_fd, "lib", 0755); |