diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-08-24 22:06:46 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-08-24 22:06:46 -0700 |
commit | a7179414798e28720e25d4a1346a765a521c4fbe (patch) | |
tree | 701d8429ac845155b61f8deea89a2cb4bb2d172e /extlinux | |
parent | 0378a4489558176f40eddbd070d90a08eacece02 (diff) | |
download | syslinux-a7179414798e28720e25d4a1346a765a521c4fbe.tar.gz |
extlinux: when building for klibc, mknod() needs to be a block device
Diffstat (limited to 'extlinux')
-rw-r--r-- | extlinux/extlinux.c | 2 |
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; } |