From 6a0663ca69bccc7fc9733355fb70ea2903333a10 Mon Sep 17 00:00:00 2001 From: hpa Date: Sun, 15 Aug 2004 19:40:45 +0000 Subject: [PATCH] Make mtools a bit more forgiving for goofy configurations --- syslinux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syslinux.c b/syslinux.c index a4a5e6d..c5f2d29 100644 --- a/syslinux.c +++ b/syslinux.c @@ -193,6 +193,8 @@ int main(int argc, char *argv[]) exit(1); } fprintf(mtc, + "MTOOLS_NO_VFAT=1\n" + "MTOOLS_SKIP_CHECK=1\n" /* Needed for some flash memories */ "drive s:\n" " file=\"/proc/%lu/fd/%d\"\n" " offset=%lld\n", @@ -212,7 +214,7 @@ int main(int argc, char *argv[]) /* This command may fail legitimately */ system("mattrib -h -r -s s:ldlinux.sys 2>/dev/null"); - mtp = popen("mcopy -o - s:ldlinux.sys", "w"); + mtp = popen("mcopy -D o -D O -o - s:ldlinux.sys", "w"); if ( !mtp || (fwrite(syslinux_ldlinux, 1, syslinux_ldlinux_len, mtp) != syslinux_ldlinux_len) || -- 2.7.4