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

fixes #1714
cute-signatures
Timo Teräs 2013-05-29 13:44:42 +03:00
parent 84bfef1a6b
commit 6a761c72e2
1 changed files with 1 additions and 1 deletions

View File

@ -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);