summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--test-skeleton.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c790f5b15e..47916c1e43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 78a88dccb7..24f8fb8eed 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;