mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Update.
* test-skeleton.c (main): Make sure correct value is seen as argv[0] after adjustment of argv, and argc.
This commit is contained in:
parent
3325198e71
commit
55033a44cb
@ -1,5 +1,8 @@
|
||||
2002-12-19 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* test-skeleton.c (main): Make sure correct value is seen as
|
||||
argv[0] after adjustment of argv, and argc.
|
||||
|
||||
* elf/rtld.c: Don't initialize _dl_dynamic_weak to 1 if
|
||||
RTLD_CORRECT_DYNAMIC_WEAK is defined.
|
||||
|
||||
|
@ -225,6 +225,7 @@ main (int argc, char *argv[])
|
||||
atexit (delete_temp_files);
|
||||
|
||||
/* Correct for the possible parameters. */
|
||||
argv[optind - 1] = argv[0];
|
||||
argv += optind - 1;
|
||||
argc -= optind - 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user