about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-19 17:11:28 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-19 17:11:28 +0000
commit55033a44cbdc7035730cae127677fb1d3490393b (patch)
tree819f620e4bf62bf927a4f96e2d521c29dee70673
parent3325198e71fe8e600f585ef3a38c3b5240d440db (diff)
downloadglibc-55033a44cbdc7035730cae127677fb1d3490393b.tar.gz
glibc-55033a44cbdc7035730cae127677fb1d3490393b.tar.xz
glibc-55033a44cbdc7035730cae127677fb1d3490393b.zip
Update.
	* test-skeleton.c (main): Make sure correct value is seen as
	argv[0] after adjustment of argv, and argc.
-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;