tftp client
LÉVAI Dániel
leva at ecentrum.hu
Tue Mar 24 08:24:21 UTC 2009
On Tuesday 24 March 2009 09.12.15 you wrote:
> >> What is your tftpd server and how do you run it?
> >
> > I'm using HPA's tftpd. It runs from inetd, and the command is this:
> > "/usr/sbin/tcpd /usr/sbin/in.tftpd -v -s /var/lib/tftpboot"
>
> I guess HPA's tftpd doesn't support for hierarchy. BB's one just
> chdir()s to its root and then serves files regardless of their names
> (except dots are not allowed in filenames). So yes, it is the feature
> (by security reasons, I guess) of HPA's tftpd.
>
> You can try to use BB's tftpd -- it also is started via inetd. If you
> will, please, mail the results.
I have the problem with client, not the server.
Unfortunately, I forgot to include the information that with other tftp
clients, I can fetch the file from the subdirectory using HPA's tftpd, eg.:
HPA's tftp client:
$ tftp -4 -v localhost -c get lib/fdisk_template
Connected to localhost (127.0.0.1), port 69
getting from localhost:lib/fdisk_template to fdisk_template [netascii]
Received 126 bytes in 0.1 seconds [17299 bit/s]
$ ls -l fdisk_template
-rw-r----- 1 daniell daniell 90 2009-03-24 09.18.57 fdisk_template
netkit-tftp client:
$ ./tftp localhost
tftp> get lib/fdisk_template
Received 126 bytes in 0.0 seconds
tftp> quit
$ ls -l fdisk_template
-rw-r----- 1 daniell daniell 90 2009-03-24 09.20.52 fdisk_template
BB tftp client:
$ busybox tftp -g -r lib/fdisk_template localhost
tftp: can't open 'lib/fdisk_template': No such file or directory
Daniel
--
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
More information about the busybox
mailing list