I found what is problem. When you do not authenticate the user at
Apache (via configuration), the number of parameters passed into the
hook script is 3, and when you do the authentication, the number of
parameters is 4. Thus, your hook script have to consider whether the
user is being authenticated or not by checking the number of
parameters, so you will get a different parameter position for the
property name parameter.
I attached the source code of the hook script I have wrote. I would
like to improve it so that only the user who commited the revision
could change the log message of such revision. But, since I'm not a
C/C++ guru, I leave it to others who are willing to handle it.
Thanks,
Celio Cidral Jr
2005/7/12, Célio Cidral Junior <ccidral.newsbox@gmail.com>:
> I have wrote a little C++ application to do the job and have put it in
> the place of the batch file. I also have set a valid user to Apache's
> service so now its process have all rights needed to execute the hook
> script. However, it remains failing as before. I attached the app's
> source file. I compiled it using the free Borland C++ compiler. Note
> that is does not depend upon the PATH env var.
>
> 2005/7/12, Gábor Szabó <szabgab@gmail.com>:
> > On 7/12/05, Célio Cidral Junior <ccidral.newsbox@gmail.com> wrote:
> > > I tested it both via http:// and file:// access, and noticed that it
> > > works only via file://
> > >
> > > What can be wrong here?
> >
> > use rights, missing or different environment variables ?
> >
> > Your Apache runs as a different user and has a different environment
> > that where you tested. (e.g. PATH is different)
> >
> > Gabor
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
>
>
> --
> Celio Cidral Junior
> WEG Eletric
> http://www.weg.com.br
>
>
>
--
Celio Cidral Junior
WEG Eletric
http://www.weg.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 12 18:38:20 2005