Accessing a symlink over tftp

Ulrik picture Ulrik · Jun 4, 2014 · Viewed 8.3k times · Source

I am using GNU inetd and tftpd (under cygwin, but that shouldn't matter), and I need to have many symbolic links pointing to only a few different files, which should be accessible via tftp.

tftp directory looks like this:

lrwxrwxrwx 1 12 Jun  4 21:29 link.bin -> file.bin
-rw-r--r-- 1  6 Jun  2 01:38 file.bin

and tftp says this:

tftp> get link.bin
Error code 1: File not found

I used ln -s file.bin link.bin

Can tftpd handle symlinks? What am I doing wrong?

Answer

joeg1ff picture joeg1ff · Jun 4, 2014

Will tftp pull the file when you try to tftp file.bin directly?

Also is tftp your only solution here?