[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Fwd: [Linux] Hook hashbang hardships

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 12 Oct 2016 12:43:29 +0200

On Wed, Oct 12, 2016 at 12:29:55PM +0200, Dario Niedermann wrote:
> That is true. I was mostly wondering if Subversion was (for example)
> running hook scripts via /usr/bin/env; so that it's expected for any
> flags on the shebang line to cause errors. Or if I'm onto something
> and opening a bug is justified.
>
> Thank you,
> DN

Subversion uses APR's apr_proc_create to run the hook, with the
command type attribute set to APR_PROGRAM (not APR_SHELLCMD!).
On Unix, APR then uses execve() to run the program.

The relevant code from APR trunk is here:
https://svn.apache.org/repos/asf/apr/apr/trunk/threadproc/unix/proc.c
Received on 2016-10-12 12:43:46 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.