[PATCH v4] ld.so: add an --argv0 option

Andreas Schwab schwab@linux-m68k.org
Mon Sep 14 15:03:16 GMT 2020


On Sep 14 2020, vincent via Libc-alpha wrote:

> @@ -1384,6 +1395,10 @@ of this helper program; chances are you did not intend to run this program.\n\
>  	    break;
>  	  }
>  #endif
> +
> +      /* Set the argv[0] string now that we've processed the executable.  */
> +      if (argv0 != NULL)
> +		_dl_argv[0] = argv0;

Indentation is still off here.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list