Package: atftp
Version: atftp-0.7.dfsg
Severity: normal
Tags: patch

If there was timeout happened when upload file to tftp server,
it should return *tftp_result* not OK.

here comes the patch:
--- tftp.c.old  2010-03-30 00:28:53.557429785 +0800
+++ tftp.c      2010-03-30 00:14:30.150487818 +0800
@@ -625,7 +625,7 @@
      fsync(data.sockfd);
      close(data.sockfd);

-     return OK;
+     return tftp_result;
 }

reproduce:

atftp -p -l <some_exists_file> <non_exist_IP>
echo $?

It should return non zero value.

Warm Regards,

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to