]> arthur.barton.de Git - netatalk.git/commitdiff
linux broken sendfile: set source fd to offset if sendfile fails so we can continue...
authorbfernhomberg <bfernhomberg>
Fri, 17 Oct 2003 00:48:56 +0000 (00:48 +0000)
committerbfernhomberg <bfernhomberg>
Fri, 17 Oct 2003 00:48:56 +0000 (00:48 +0000)
etc/afpd/file.c

index 385a6725839cdf51dc032033aa1150695e5ca919..55d77df54c180fd9009c580f55d25c72eec21513 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: file.c,v 1.92.2.2.2.4 2003-10-17 00:01:11 didg Exp $
+ * $Id: file.c,v 1.92.2.2.2.5 2003-10-17 00:48:56 bfernhomberg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -1294,6 +1294,7 @@ static int copy_fd(int dfd, int sfd)
         }
     }
     no_sendfile:
+    lseek(sfd, offset, SEEK_SET);
 #endif 
 
     while (1) {