Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834528 - net-ftp/atftp-0.7.5 tftp root directory path inconsistent
Summary: net-ftp/atftp-0.7.5 tftp root directory path inconsistent
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Martin Dummer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-03 11:50 UTC by jospezial
Modified: 2022-04-12 07:32 UTC (History)
1 user (show)

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 jospezial 2022-03-03 11:50:54 UTC
/etc/conf.d/atftp:
TFTPD_ROOT="/tftproot"

I added -v to TFTPD_OPTS.
/tftproot is used when started as openrc init script:
Mar  3 12:21:52 jlgentoo atftpd[10631]:   directory: /tftproot/

latest entry for directory (21 Aug 2009) is /srv/tftp in
https://sourceforge.net/p/atftp/code/ci/master/tree/Changelog

man page:
path   This  is  the root directory used by the TFTP server. All requested files from a TFTP client must reside in this directory. If not specified, the directory defaults to /tftpboot. Since atftpd run as the nobody user, the permission of the directory must be set properly to
              allow file reading and writing.


atftpd --help
Usage: tftpd [options] [directory]
...
 [directory] must be a world readable/writable directories.
 By default /tftpboot is assumed.

atftpd -v --daemon
/var/log/messages:
Mar  3 11:55:26 jlgentoo atftpd[3735]: Advanced Trivial FTP server started (0.7.5)
Mar  3 11:55:26 jlgentoo atftpd[3737]:   running in daemon mode on port 69
Mar  3 11:55:26 jlgentoo atftpd[3737]:   logging level: 6
Mar  3 11:55:26 jlgentoo atftpd[3737]:   directory: /srv/tftp//
...

Sources:
jlgentoo ~ # grep -nr tftproot /var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/
jlgentoo ~ # grep -nr tftpboot /var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/Changelog:185:  * Choosed /var/lib/tftpboot as default tftp directory, and removed
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/FAQ:65:    tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/FAQ:67:You also need to have /tftpboot world readable.
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/debian/changelog:79:  * Choosed /var/lib/tftpboot as default tftp directory, and removed
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/INSTALL:56:    tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/INSTALL:77:        server_args = /tftpboot  # add other server argument as necessary
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/README.PCRE:22:./atftpd --daemon --pcre ./test/pcre_pattern.txt /tftpboot/
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/atftpd.8:214:specified, the directory defaults to /tftpboot. Since
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/test/test.sh:144:# make sure we have /tftpboot with some files
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/tftpd.c:1287:            " By default /tftpboot is assumed."
jlgentoo ~ # grep -nr srv /var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/Changelog:145:  * /srv/tftp is now the default tftp root data directory. Closes: #537642
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/debian/changelog:39:  * /srv/tftp is now the default tftp root data directory. Closes: #537642
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/debian/atftpd.postinst:6:BASEDIR=/srv/tftp
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/debian/atftpd.templates:95:Default: /srv/tftp
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/debian/atftpd.README.Debian:4:atftpd uses /srv/tftp by default as base directory. You can change
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/debian/atftpd.README.Debian:16:The /srv/tftp directory is not created by the package. You need to
/var/tmp/portage/net-ftp/atftp-0.7.5/work/atftp-0.7.5/tftpd.c:60:char directory[MAXLEN] = "/srv/tftp/";

=================================================================
                        Package Settings
=================================================================

net-ftp/atftp-0.7.5::gentoo was built with the following:
USE="pcre readline (-selinux) -tcpd" ABI_X86="(64)"
CFLAGS="-march=native -mtune=native -O2 -pipe -std=gnu89"