atftpd doesn't handle substitutions with pcre correctly. The last character in $1 replacement strings is replaced by \0. The patch fixes this. The patch also adds code to prevent a possible buffer overflow. Please send upstream and review. I changed the ebuild to install some doc files, because README.PCRE is mentioned in a man page. The dependancy on libpcre is only handled by ./configure, consider adding a USE flag and a DEPEND
Created attachment 70882 [details, diff] pcre.patch
Created attachment 70883 [details] atftp-0.7-r1.ebuild
see for pcre patch http://bugs.gentoo.org/show_bug.cgi?id=109638
Created attachment 72038 [details] atftp-0.7-r1.ebuild update ebuild whit debian and password patchs and new USE (readline and pcre) see for password patch: http://bugs.gentoo.org/show_bug.cgi?id=104218
fixed in cvs, thanks.