search for: mode_syslinux

Displaying 3 results from an estimated 3 matches for "mode_syslinux".

2010 Jun 19
1
[PATCH 2/2] linux/syslinux.c: Test if null
...re testing first character. Signed-off-by: Gene Cumm <gene.cumm at gmail.com> --- diff --git a/linux/syslinux.c b/linux/syslinux.c index 3a51f7e..2fd562e 100644 --- a/linux/syslinux.c +++ b/linux/syslinux.c @@ -283,7 +283,8 @@ int main(int argc, char *argv[]) parse_options(argc, argv, MODE_SYSLINUX); ret = asprintf(&subdir, "%s%s", - opt.directory[0] == '/' ? "" : "/", opt.directory); + (opt.directory ? ((opt.directory[0] == '/') ? "" : "/") : ""), + opt.directory); if (...
2010 Jun 19
1
[PATCH 1/2] linux/syslinux.c: Silence warnings
...inux.c b/linux/syslinux.c index 888df3d..3a51f7e 100644 --- a/linux/syslinux.c +++ b/linux/syslinux.c @@ -276,12 +276,13 @@ int main(int argc, char *argv[]) int mnt_cookie; int patch_sectors; int i; + int ret; mypid = getpid(); umask(077); parse_options(argc, argv, MODE_SYSLINUX); - asprintf(&subdir, "%s%s", + ret = asprintf(&subdir, "%s%s", opt.directory[0] == '/' ? "" : "/", opt.directory); if (!subdir) { perror(program);
2016 Jun 04
0
[PATCH] Wedding gift, removing double l from auxilliary
...on boot failure\n" " --once=... %s Execute a command once upon boot\n" " --clear-once -O Clear the boot-once command\n" - " --reset-adv Reset auxilliary data\n", + " --reset-adv Reset auxiliary data\n", mode == MODE_SYSLINUX ? " " : "-o"); /* * Have to chop this roughly in half for the DOS installer due diff --git a/syslinux.spec.in b/syslinux.spec.in index b82d9a1..421e4f2 100644 --- a/syslinux.spec.in +++ b/syslinux.spec.in @@ -231,7 +231,7 @@ fi * Fri Apr 13 2001 H. Peter Anvin &l...