wok diff syslinux/stuff/iso2exe/boot.c @ rev 19435
zerobin: add download button
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 04 15:33:49 2016 +0200 (2016-10-04) |
parents | fd3dadf90ba9 |
children | e93e6b4d565f |
line diff
1.1 --- a/syslinux/stuff/iso2exe/boot.c Mon Sep 05 18:15:15 2016 +0200 1.2 +++ b/syslinux/stuff/iso2exe/boot.c Tue Oct 04 15:33:49 2016 +0200 1.3 @@ -154,9 +154,12 @@ 1.4 initrd = NULL; 1.5 cmdline = "auto"; 1.6 if (argc > 1) { 1.7 - if (argv[1][0] == '@') 1.8 - cmdfile = argv[1] + 1; 1.9 - else { 1.10 + switch (argv[1][0]) { 1.11 + case '-' : case '/' : case '?' : 1.12 + usage(argv[0]); break; 1.13 + case '@' : 1.14 + cmdfile = argv[1] + 1; break; 1.15 + default : 1.16 cmdfile = NULL; 1.17 copycmdline(args); 1.18 }