]> arthur.barton.de Git - netatalk.git/commitdiff
increase the maximum size of macbinary forks, as suggested by bug 829221
authorbfernhomberg <bfernhomberg>
Tue, 10 Aug 2004 13:37:18 +0000 (13:37 +0000)
committerbfernhomberg <bfernhomberg>
Tue, 10 Aug 2004 13:37:18 +0000 (13:37 +0000)
bin/megatron/macbin.c

index e6f52d507895765ff975b383152db8f73755f5d8..885ebb573aedd6b09d0cedd7468da0be430a0645 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: macbin.c,v 1.10 2002-02-16 17:12:53 srittau Exp $
+ * $Id: macbin.c,v 1.10.10.1 2004-08-10 13:37:18 bfernhomberg Exp $
  */
 
 #ifdef HAVE_CONFIG_H
@@ -595,13 +595,14 @@ int test_header(void)
         return -1;
 
     /* macbinary forks aren't larger than 0x7FFFFF */
+    /* we allow forks to be larger, breaking the specs */
     memcpy(&cc, head_buf + 83, sizeof(cc));
     cc = ntohl(cc);
-    if (cc > 0x7FFFFF)
+    if (cc > 0x7FFFFFFF)
         return -1;
     memcpy(&cc, head_buf + 87, sizeof(cc));
     cc = ntohl(cc);
-    if (cc > 0x7FFFFF)
+    if (cc > 0x7FFFFFFF)
         return -1;