summaryrefslogtreecommitdiff
path: root/extlinux/main.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2011-04-18 14:53:45 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2011-04-18 14:53:45 -0700
commit1be51e9991618732179da97750548a65371e9dff (patch)
tree5b1ed62a487d3947e025b0491157b21678764a84 /extlinux/main.c
parent6831030abcb28fa34f63ec8d1a6304d097addb90 (diff)
parent1370ad3a91803626d326abea253f9270bd6819c3 (diff)
downloadsyslinux-dynamic-sector.tar.gz
Merge commit 'syslinux-4.04' into dynamic-sectordynamic-sector
Diffstat (limited to 'extlinux/main.c')
-rwxr-xr-xextlinux/main.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/extlinux/main.c b/extlinux/main.c
index 21369e46..e5212a95 100755
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -503,19 +503,6 @@ int install_file(const char *path, int devfd, struct stat *rst)
return 1;
}
-/*
- * SYSLINUX installs the string 'SYSLINUX' at offset 3 in the boot
- * sector; this is consistent with FAT filesystems. Earlier versions
- * would install the string "EXTLINUX" instead, handle both.
- */
-int already_installed(int devfd)
-{
- char buffer[8];
-
- xpread(devfd, buffer, 8, 3);
- return !memcmp(buffer, "SYSLINUX", 8) || !memcmp(buffer, "EXTLINUX", 8);
-}
-
#ifdef __KLIBC__
static char devname_buf[64];
@@ -766,7 +753,7 @@ int install_loader(const char *path, int update_only)
if (devfd < 0)
return 1;
- if (update_only && !already_installed(devfd)) {
+ if (update_only && !syslinux_already_installed(devfd)) {
fprintf(stderr, "%s: no previous syslinux boot sector found\n",
program);
close(devfd);