]> arthur.barton.de Git - netatalk.git/commitdiff
Do not immediately return if an application requests data beyond the end
authorjmarcus <jmarcus>
Thu, 7 Mar 2002 16:06:01 +0000 (16:06 +0000)
committerjmarcus <jmarcus>
Thu, 7 Mar 2002 16:06:01 +0000 (16:06 +0000)
of file.  Photoshop has a tendancy to do this with the result being that
the server reports file corruption.

I have tested this locally on my 1.5.2 server.

Prompted by: many users
Suggested fix by: Netatalk <atalk@abarrach.franken.de>
MFH after: 3 days

etc/afpd/fork.c

index 041e9cc6961ff2bfd5ecb26348273476226b82a5..cfeccb1984543a979e1e65d07b1d09dd731126fc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: fork.c,v 1.23 2002-02-16 10:46:42 srittau Exp $
+ * $Id: fork.c,v 1.24 2002-03-07 16:06:01 jmarcus Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -876,7 +876,6 @@ int         ibuflen, *rbuflen;
         goto afp_read_done;
     if (saveerr < 0) {
        err = saveerr;
-       goto afp_read_done;
     }
     /* dsi can stream requests. we can only do this if we're not checking
      * for an end-of-line character. oh well. */