Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168982 - net-ftp/twoftpd - twoftpd-conf generates wrong "run" file
Summary: net-ftp/twoftpd - twoftpd-conf generates wrong "run" file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Thilo Bangert (RETIRED) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-02 10:52 UTC by Wejn
Modified: 2007-03-02 19:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wejn 2007-03-02 10:52:13 UTC
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
Comment 1 Wejn 2007-03-02 12:33:08 UTC
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 ...
Comment 2 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2007-03-02 19:37:28 UTC
fixed the path issue (in cvs)
the improved runfile stuff needs to be taken upstream...

thank you for the bugreport! i value your time.