From a7179414798e28720e25d4a1346a765a521c4fbe Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 24 Aug 2006 22:06:46 -0700 Subject: extlinux: when building for klibc, mknod() needs to be a block device --- extlinux/extlinux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extlinux') 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; } -- cgit v1.2.1