Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libperfuse Do not reject reads on directory, it raises a...



details:   https://anonhg.NetBSD.org/src/rev/5e393b5bd686
branches:  trunk
changeset: 767893:5e393b5bd686
user:      manu <manu%NetBSD.org@localhost>
date:      Tue Aug 02 16:57:16 2011 +0000

description:
Do not reject reads on directory, it raises a useless EBADFD while the
thing can just fail silently.

diffstat:

 lib/libperfuse/ops.c |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (19 lines):

diff -r 8c83b981181e -r 5e393b5bd686 lib/libperfuse/ops.c
--- a/lib/libperfuse/ops.c      Tue Aug 02 16:46:45 2011 +0000
+++ b/lib/libperfuse/ops.c      Tue Aug 02 16:57:16 2011 +0000
@@ -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;
 



Home | Main Index | Thread Index | Old Index