Changing the xchdir to xchroot in tftpd.c has an ugly sideeffect on my uclib - based ARM - Board: After xchroot the Option -u <user> (e.g. -u root) is not useable, I get "tftpd: unknown user root". I thing, with getpwnam - call uclib looks for /etc/passwd in the chrooted directory. Reverting the patch solves the problem.
Fixed in git: commit dbed6c4b46f3c8dc74d50e4cf35b1cb8b8c4ff2d Author: Denys Vlasenko <vda.linux@googlemail.com> Date: Wed Jul 18 17:32:32 2012 +0200 tftpd: fix -u USER to work with chroot