Commit 6a761c72 authored by Timo Teräs's avatar Timo Teräs

db: make dev/null a character device with --initdb

fixes #1714
parent 84bfef1a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment