Subversion post-commit hook fails to send emails

Subversion post-commit hook fails to send emails

Posted by: benjaminarai
Posted on: 2006-12-21 01:54:00

Hi,

I have been using the post-commit hook for over a year but in the last couple of weeks it has stopped sending commit emails to my users. I talked to a Dreamhost staff and they said that post-commit command was returning the following error when run under the Apache user.

sunset: 10:59 AM# su - dhapache -s/bin/bash
-c'/home/[home]/svn/[repository]/hooks/post-commit /home/[home]/svn/cbsrdb 98'
Insecure $ENV{PATH} while running setuid at
/usr/lib/subversion/hook-scripts/commit-email.pl line 454.
sunset: 10:59 AM#

Does anybody know what could be causing this? Thanks in advance.

Benjamin

Re: Subversion post-commit hook fails to send emai

Posted by: aixccapt99
Posted on: 2006-12-21 09:25:00

What's line 454 look like?

Re: Subversion post-commit hook fails to send emai

Posted by: wholly
Posted on: 2006-12-21 19:59:00

Sounds like the admins turned on some security. You might want to ask support what you can do to get around the "insecure environment" issue (and you might look in the wiki)

Wholly

Tags: svnsubversiondreamhostemailsend emailshooksthanks in advancerepositorylibusrscriptsapachepl