diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-05-29 13:44:42 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-05-29 13:44:42 +0300 |
commit | 6a761c72e203cbc58a4963df9c1c12a233cf5b0a (patch) | |
tree | adb07498a96e5b36d9c5ed2aa1407cfc1680702c /src/database.c | |
parent | 84bfef1a6b587a7da7d12fb701ab0d1d5d6ce2a9 (diff) | |
download | apk-tools-6a761c72e203cbc58a4963df9c1c12a233cf5b0a.tar.gz apk-tools-6a761c72e203cbc58a4963df9c1c12a233cf5b0a.tar.bz2 apk-tools-6a761c72e203cbc58a4963df9c1c12a233cf5b0a.tar.xz apk-tools-6a761c72e203cbc58a4963df9c1c12a233cf5b0a.zip |
db: make dev/null a character device with --initdb
fixes #1714
Diffstat (limited to 'src/database.c')
-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); |