Ignacio Goyret a �crit :

> TFTP has no such limitation. I dare anybody to point anywhere in RFC 783
> where *any* file size limitation is set forth.
>
>
> A while back, I submitted a patch for netkit-tftp to remove that limitation.
> I thought it had been included in the latest release. You may want to check
> the latest patch level.
>

The patch (a RedHat patch ?) has been applied in Mandrake 8.0
tftp-0.17-4mdk.i586.rpm
but lost in Mandrake 8.1 and Mandrake 8.2
because the RedHat patch included 2 patches:
- the syslog option (-l)
- the 32Mb bug
and the new features added in tftp-0_17-6mdk_src.rpm
- the Verbose option (-v)
- the regexep
may be not compatible with syslog option.

But the 32Mb bug is coming back ...

--- tftp-hpa-0.20/tftpd/tftpd.c.orig    Fri Aug  3 03:17:57 2001
+++ tftp-hpa-0.20/tftpd/tftpd.c Fri Mar  8 15:34:02 2002
@@ -782,7 +782,7 @@ sendfile(struct formats *pf, struct tftp
 {
   struct tftphdr *dp;
   struct tftphdr *ap;          /* ack packet */
-  static int block = 1;                /* Static to avoid longjmp funnies */
+  static u_short block = 1;            /* Static to avoid longjmp funnies */
   int size, n;
   
   ap = (struct tftphdr *)ackbuf;
@@ -892,7 +892,8 @@ recvfile(struct formats *pf, struct tftp
   int n, size;
   /* These are "static" to avoid longjmp funnies */
   static struct tftphdr *ap;    /* ack buffer */
-  static int block = 0, acksize;
+  static u_short block = 0;
+  int acksize;
   
   dp = w_init();
   do {

Reply via email to