Re: [PATCH] execline: use pathexec_or_die

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Thu, 18 May 2017 12:43:49 +0000

>In exec.c, we already win a little by doing a single call of
>pathexec_run instead of having each branch do their own

  This change is invalid. When you exit the if (dash) block, the
dashed[] array goes out of scope, and is deallocated; but argv[0] is
still pointing to it. The duplication of the call to pathexec_run()
is necessary.

--
  Laurent
Received on Thu May 18 2017 - 12:43:49 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC