summary refs log tree commit diff
path: root/test-skeleton.c
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 /test-skeleton.c
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.
Diffstat (limited to 'test-skeleton.c')
-rw-r--r--test-skeleton.c1
1 files changed, 1 insertions, 0 deletions
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;