Module Name: src Committed By: manu Date: Tue Aug 2 16:57:17 UTC 2011
Modified Files: src/lib/libperfuse: ops.c Log Message: Do not reject reads on directory, it raises a useless EBADFD while the thing can just fail silently. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/lib/libperfuse/ops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libperfuse/ops.c diff -u src/lib/libperfuse/ops.c:1.36 src/lib/libperfuse/ops.c:1.37 --- src/lib/libperfuse/ops.c:1.36 Tue Aug 2 14:53:38 2011 +++ src/lib/libperfuse/ops.c Tue Aug 2 16:57:16 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.36 2011/08/02 14:53:38 manu Exp $ */ +/* $NetBSD: ops.c,v 1.37 2011/08/02 16:57:16 manu Exp $ */ /*- * Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved. @@ -2791,9 +2791,6 @@ pnd = PERFUSE_NODE_DATA(opc); pm = NULL; - if (puffs_pn_getvap((struct puffs_node *)opc)->va_type == VDIR) - return EBADF; - do { size_t max_read;