aboutsummaryrefslogtreecommitdiffstats
path: root/extlinux
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-08-24 22:06:46 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-08-24 22:06:46 -0700
commita7179414798e28720e25d4a1346a765a521c4fbe (patch)
tree701d8429ac845155b61f8deea89a2cb4bb2d172e /extlinux
parent0378a4489558176f40eddbd070d90a08eacece02 (diff)
downloadsyslinux.git-a7179414798e28720e25d4a1346a765a521c4fbe.tar.gz
syslinux.git-a7179414798e28720e25d4a1346a765a521c4fbe.tar.xz
syslinux.git-a7179414798e28720e25d4a1346a765a521c4fbe.zip
extlinux: when building for klibc, mknod() needs to be a block device
Diffstat (limited to 'extlinux')
-rw-r--r--extlinux/extlinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extlinux/extlinux.c b/extlinux/extlinux.c
index 176ed2f6..1ec8b7bc 100644
--- a/extlinux/extlinux.c
+++ b/extlinux/extlinux.c
@@ -675,7 +675,7 @@ install_loader(const char *path, int update_only)
snprintf(devname_buf, sizeof devname_buf, "/tmp/dev-%u:%u",
major(st.st_dev), minor(st.st_dev));
- if (mknod(devname_buf, 0600, st.st_dev)) {
+ if (mknod(devname_buf, S_IFBLK|0600, st.st_dev)) {
fprintf(stderr, "%s: cannot create device %s\n", program, devname);
return 1;
}