5

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?

Ulrik
  • 1,131
  • 4
  • 19
  • 37

1 Answers1

3

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

Also is tftp your only solution here?

joeg1ff
  • 161
  • 2
  • Yes, tftp is used for network boot. Pulling file.bin directly works wthout any problems. – Ulrik Jun 04 '14 at 20:37
  • You might want to take a look at this link then. https://bbs.archlinux.org/viewtopic.php?id=148149 – joeg1ff Jun 04 '14 at 20:40
  • 4
    Yep, it works now. It turns out you have to use relative instead of absolute path to target, and keep it within the tftp directory scope. – Ulrik Jun 05 '14 at 07:02