(main): Make sure correct value is seen as argv[0] after adjustment of
authordrepper <drepper>
Thu, 19 Dec 2002 17:08:51 +0000 (17:08 +0000)
committerdrepper <drepper>
Thu, 19 Dec 2002 17:08:51 +0000 (17:08 +0000)
argv, and argc.

test-skeleton.c

index 78a88dc..24f8fb8 100644 (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;