* test-skeleton.c (main): Make sure correct value is seen as
	argv[0] after adjustment of argv, and argc.
This commit is contained in:
Ulrich Drepper 2002-12-19 17:11:28 +00:00
parent 3325198e71
commit 55033a44cb
2 changed files with 4 additions and 0 deletions

View File

@ -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.

View File

@ -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;