diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | test-skeleton.c | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -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. diff --git a/test-skeleton.c b/test-skeleton.c index 78a88dc..24f8fb8 100644 --- a/test-skeleton.c +++ b/test-skeleton.c @@ -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; |