From c8e5702127e507e82e6f68a4b8c546803accea9d Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 30 Jun 2005 08:19:37 +0000 Subject: import clean BK tree at cset 1.3670 --- .../netkit-tftp-0.17/tftpd_add_debug.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'packages/netkit-tftp/netkit-tftp-0.17/tftpd_add_debug.patch') diff --git a/packages/netkit-tftp/netkit-tftp-0.17/tftpd_add_debug.patch b/packages/netkit-tftp/netkit-tftp-0.17/tftpd_add_debug.patch index e69de29bb2..f7dfd58ed4 100644 --- a/packages/netkit-tftp/netkit-tftp-0.17/tftpd_add_debug.patch +++ b/packages/netkit-tftp/netkit-tftp-0.17/tftpd_add_debug.patch @@ -0,0 +1,28 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- netkit-tftp-0.17/tftpd/tftpd.c~tftpd_add_debug ++++ netkit-tftp-0.17/tftpd/tftpd.c +@@ -252,6 +252,8 @@ + char *filename, *mode = NULL; + + filename = cp = tp->th_stuff; ++ syslog(LOG_NOTICE, "tp->th_opcode=%x, tp = %p, &(tp->th_stuff)=%p, filename=%s", tp->th_opcode,tp, &(tp->th_stuff),filename); ++ + again: + while (cp < buf + size) { + if (*cp == '\0') +@@ -340,8 +342,10 @@ + return(EACCESS); + } + } +- if (stat(filename, &stbuf) < 0) ++ if (stat(filename, &stbuf) < 0) { ++ syslog(LOG_NOTICE, "file %s not found", filename); + return (errno == ENOENT ? ENOTFOUND : EACCESS); ++ } + #if 0 + /* + * The idea is that symlinks are dangerous. However, a symlink -- cgit v1.2.3