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

Re: hook script basics

From: Jeremy Pereira <jeremyp_at_jeremyp.net>
Date: 2007-08-07 03:49:08 CEST

On 6 Aug 2007, at 11:19, Ryan Schmidt wrote:

> On Aug 5, 2007, at 11:08, Brian Krusic wrote:
>
>>
> Yes, the env is empty on UNIX-like systems, but I've heard it
> reported here before that on Windows the env is not empty. I'd call
> that a bug; Subversion should empty the env on Windows systems too,
> to be consistent, and since the Book says the env is empty for
> security reasons.
>
> Can we agree that this is a bug? I couldn't find one filed in the
> issue tracker.

If it is a bug, it's an APR bug. Subversion passes a null
environment pointer to apr_proc_create and my cursory inspection of
the Windows and Unix versions of this function is that the semantics
are different.

On Unix, if the environment pointer is null, a pointer to an empty
array is passed to the exec call (i.e. an array initialised thus:
{ NULL }). In the Windows version of the call, it appears that a
null pointer is passed to CreateProcW. Here's the Microsoft
documentation for the environment parameter:

"[in] A pointer to the environment block for the new process. If this
parameter is NULL, the new process uses the environment of the
calling process."

http://msdn2.microsoft.com/en-us/library/ms682425.aspx

>
>
>> The actual problem was that Apache is normally run as the SYSTEM
>> user so I changed it to run as a user having access privs to the
>> repo and it worked.
>
> I'm glad you got the problem resolved.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 7 03:48:19 2007

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