[syslinux] argv[0] doesn't contain module name

Miller, Shao shao.miller at yrdsb.edu.on.ca
Fri Jul 2 03:03:00 PDT 2010


Gert's concern (regarding argv[0]) below addressed by H. Peter's commit:

commit 68a7538d5a80ec8db48c02d4a9de7199df0af9f9
Author: H. Peter Anvin <hpa at linux.intel.com>
Date:   Mon Mar 29 16:58:30 2010 -0700

    com32: export the filename of a com32 module to the module itself

    Export the filename of the com32 module to the module itself,
setting
    argv[0].

    Signed-off-by: H. Peter Anvin <hpa at linux.intel.com>

- Shao Miller

-----Original Message-----
From: syslinux-bounces at zytor.com [mailto:syslinux-bounces at zytor.com] On
Behalf Of Gert Hulselmans
Sent: Thursday, March 18, 2010 14:50
To: For discussion of Syslinux and tftp-hpa
Subject: [syslinux] argv[0] doesn't contain module name and cat.c32
hangs with Syslinux 4.00-pre36


The program name of the module can't be retrieved with argv[0].
I tested it by running cat.c32 (com32/samples/cat.c32).
In Syslinux 3.85, argv[0] returns an empty string.
In Syslinux 4.00-pre36, argv[0] returns some garbage characters.

... ... ...




More information about the Syslinux mailing list