info-cvs
[Top][All Lists]
Advanced

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

Re: Help: Pserver not working properly (on Commits)


From: Larry Jones
Subject: Re: Help: Pserver not working properly (on Commits)
Date: Fri, 16 Mar 2001 12:10:57 -0500 (EST)

Ty, Gio writes:
> 
> Writers.sh:
> $CVSROOT/CVSROOT/writer `whoami`
> 
> writer is a program that takes a username as a parameter and determines 
> if the user is allowed to commit.  If so, it returns 0 and if not it returns
> 1.
> 
> I think pserver is set up ok since I can checkout and update
> files on my client.  However, upon commit, I get this error.
> 
> /cvs/CVSROOT/writers.sh: whoami: not found
> Segmentation Fault - core dumped
> cvs server: Pre-commit check failed
> cvs [server aborted]: correct above errors first!
> cvs commit: saving log message in /var/tmp/cvsBAA7paOSt
> 
> I think its complaing about the 'whoami' but I don't see why.. this works
> just fine if I'm running it locally on the server.

When running it locally, you're using your $PATH to find commands which
is almost certainly different from what the pserver being run by inetd
has for it's $PATH.  A good rule of thumb for shell scripts of any kind
is to use the full path to the commands so your not dependent on $PATH.

-Larry Jones

It's either spectacular, unbelievable success, or crushing, hopeless
defeat!  There is no middle ground! -- Calvin



reply via email to

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