info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: verifymsg cannot exec


From: joseph conrad
Subject: Re: verifymsg cannot exec
Date: 20 Dec 2005 10:11:23 -0800
User-agent: G2/0.2

Jim Hyslop wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> joseph conrad wrote:
> > Hi,
> > I can't make my cvs server execute a simple validating message script:
> >
> > 1) I add this entry to the CVSROOT/verifymsg:
> > DEFAULT /var/lib/cvsd/bin/validate-cvs-log.sh
> >
> > 2) I created the file in the lib with the code:
> > #!/bin/sh
> > #
> > # validate-cvs-log.sh logfile
> > # test that log message has some characters in it
> > if [ `cat $1 | wc -c ` -lt 10 ] ; then
> > echo "log message too short; please enter a description for the
> > changes"
> > exit 1
> > else
> > exit 0
> > fi
> >
> > 3) when committing, I get
> > cvs commit: cannot exec /var/lib/cvsd/bin/validate-cvs-log.sh: No such
> > file or directory
> > cvs [commit aborted]: Message verification failed
> >
> > any suggestion?
> > I run CVS on linux red hat
>
> What connection method do you use? If it's pserver, is your server
> running in a chroot jail?

pserver,
yes, the root is /var/lib/cvsd
so I tried to include only the file as bin/validate-msg-log.sh

>
> If I were to debug this, I'd start by placing the script in
> $CVSROOT/CVSROOT and see if that works. If it does, then I'd add a
> command to the script:
> ls /var/lib/cvsd/bin/
>

which script? the verifymsg or the validate-msg-log.sh ?
if I put it in the first, the system works
if I put it in the second, i can't read it.
the file has 777 permissions

cheers
jc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]