]> arthur.barton.de Git - netatalk.git/commitdiff
Don't use sendfile for file to file copy, it doesn't work with linux 2.6, from
authordidg <didg>
Fri, 19 Mar 2004 13:47:16 +0000 (13:47 +0000)
committerdidg <didg>
Fri, 19 Mar 2004 13:47:16 +0000 (13:47 +0000)
Alistair Riddell.

etc/afpd/file.c

index 137fb659e9f50ce9165dfdd0486648ec264d6b4c..0b49be1aea4d6b6af921749cef9ff8eda991d242 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: file.c,v 1.92.2.2.2.22 2004-03-12 13:03:18 didg Exp $
+ * $Id: file.c,v 1.92.2.2.2.23 2004-03-19 13:47:16 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -1260,7 +1260,8 @@ static int copy_fd(int dfd, int sfd)
     int     err = 0;
     char    filebuf[8192];
     
-#ifdef SENDFILE_FLAVOR_LINUX
+#if 0 /* ifdef SENDFILE_FLAVOR_LINUX */
+    /* doesn't work With 2.6 FIXME, only check for EBADFD ? */
     off_t   offset = 0;
     size_t  size;
     struct stat         st;