After installation on fresh 2006.1 I merged twoftpd and ran twoftpd-conf. It created wrong run file -- prepending /var/tmp/portage/twoftpd-1.21/image/ to every executable path Reproducible: Always Steps to Reproduce: 1. emerge twoftpd 2. run twoftpd-conf with /var/services/twoftpd as dest dir 3. cat /var/services/twoftpd/run Actual Results: #!/bin/sh exec 2>&1 umask 022 exec \ tcpserver -DRHv -llocalhost ***IP_ADDRESS*** 21 \ envdir /var/services/twoftpd/env \ softlimit -m 2000000 \ /var/tmp/portage/twoftpd-1.21/image//usr/sbin/twoftpd-auth \ cvm-pwfile \ /var/tmp/portage/twoftpd-1.21/image//usr/sbin/twoftpd-xfer Expected Results: #!/bin/sh exec 2>&1 umask 022 exec \ tcpserver -DRHv -llocalhost ***IP_ADDRESS*** 21 \ envdir /var/services/twoftpd/env \ softlimit -m 2000000 \ /usr/sbin/twoftpd-auth \ cvm-pwfile \ /usr/sbin/twoftpd-xfer
Actually, much better run file would be something along: --- BEGIN --- #!/bin/sh IP=0.0.0.0 PORT=21 export TWOFTPD_BIND_PORT=$[$PORT - 1] exec 2>&1 umask 022 exec \ tcpserver -DRHv -llocalhost $IP $PORT \ envdir /var/services/twoftpd/env \ softlimit -m 4000000 \ /usr/sbin/twoftpd-auth \ cvm-pwfile \ /usr/sbin/twoftpd-bind-port \ /usr/sbin/twoftpd-xfer --- END --- Because w/o twoftpd-bind-port twoftpd can't bind on :20 ...
fixed the path issue (in cvs) the improved runfile stuff needs to be taken upstream... thank you for the bugreport! i value your time.