> -----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