]> arthur.barton.de Git - netatalk.git/commitdiff
AFP3 change
authordidg <didg>
Sun, 13 Oct 2002 21:30:55 +0000 (21:30 +0000)
committerdidg <didg>
Sun, 13 Oct 2002 21:30:55 +0000 (21:30 +0000)
etc/afpd/file.c

index 6eca054eb8029b1b94713d331f83d8a9828f658e..7168a1a8572a96417213e9dae2fcae701ec5f133 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: file.c,v 1.66 2002-10-13 16:12:31 didg Exp $
+ * $Id: file.c,v 1.67 2002-10-13 21:30:55 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * All Rights Reserved.  See COPYRIGHT.
@@ -980,7 +980,7 @@ size_t      plen = 0;
 u_int16_t   len16;
 u_int32_t   hint;
 
-    if ( type != 2 || (afp_version >= 30 && type != 3) ) {
+    if ( type != 2 && !(afp_version >= 30 && type == 3) ) {
         return -1;
     }
     ibuf++;