ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21083] - exec "cvs commit" doesn't work for sudo
Date Wed, 25 Jun 2003 15:41:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21083>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21083

exec "cvs commit" doesn't work for sudo





------- Additional Comments From gus.heck@olin.edu  2003-06-25 15:41 -------
I think I had something like this... I have a build that runs as root, and sudos
out of it to do cvs work... I think the problem crops up that cvs can't find
your home directory so you need to give it working home environement vareable
too (I presume this is on a unix system from your dirs). Here is a snippet I use

    <apply executable="sudo"
           dir="${dir.working}"
           parallel="false"
           failonerror="true">
      <env key="HOME" value="/home/${user.cvs.commit}"/>
      <arg value="-u"/>
      <arg value="${user.cvs.commit}"/>
      <arg value="cvs"/>
      <arg value="commit"/>
      <arg value="-m"/>
      <arg value="auto-commit of symlink files"/>
      <srcfile/>
      <fileset dir="${dir.working}"
               followSymlinks="false">
        <patternset refid="files.all.symlink"/>
      </fileset>
    </apply>

I supsect this is 100% cvs magic problems, so it probably shouldn't be in the
Ant bugzilla. Invalidate if you concur...

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message