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

RE: Subversion Hooks Issue

From: Erik Hemdal <erik_at_comprehensivepower.com>
Date: 2007-02-09 23:53:44 CET

> -----Original Message-----
> From: Doug Goldstein [mailto:doug@monetra.com]
> Sent: Friday, February 09, 2007 4:55 PM
> To: users@subversion.tigris.org
> Subject: Re: Subversion Hooks Issue
>
>
>
> # cat pre-commit
> #!/bin/sh
>
> LOG=/tmp/hook.log
>
> /usr/bin/whoami >> $LOG 2>&1
> /bin/echo "about to execute cmd" >> $LOG 2>&1
> /bin/echo "finished cmd" >> $LOG 2>&1
>
>
> Nothing was ever created in /tmp/. I can run the script successfully
> with the following however:
>
> env - /var/data/svn/monetra/hooks/pre-commit
>
> The env - command clears out your environment so you don't even have
> PATH set.
>

By any chance, are you on Linux with SELinux enforcing? I wasn't thinking
about that before, but that also might cause these mysterious failures.
SELinux is famous for preventing you from running something because even
though you have permission on the script/program/etc. it's trying to work in
a directory or a file that SELinux policy says you should not be in.

Erik

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 9 23:54:29 2007

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

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