Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/miscfs/fdesc/fdesc_vnops.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/miscfs/fdesc/fdesc_vnops.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.90.4.1 retrieving revision 1.90.4.2 diff -u -p -r1.90.4.1 -r1.90.4.2 --- src/sys/miscfs/fdesc/fdesc_vnops.c 2006/03/08 01:34:34 1.90.4.1 +++ src/sys/miscfs/fdesc/fdesc_vnops.c 2006/04/19 04:52:46 1.90.4.2 @@ -1,4 +1,4 @@ -/* $NetBSD: fdesc_vnops.c,v 1.90.4.1 2006/03/08 01:34:34 elad Exp $ */ +/* $NetBSD: fdesc_vnops.c,v 1.90.4.2 2006/04/19 04:52:46 elad Exp $ */ /* * Copyright (c) 1992, 1993 @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: fdesc_vnops.c,v 1.90.4.1 2006/03/08 01:34:34 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fdesc_vnops.c,v 1.90.4.2 2006/04/19 04:52:46 elad Exp $"); #include #include @@ -786,7 +786,7 @@ fdesc_readdir(v) default: KASSERT(fdp != NULL); j = (int)i - 2; - if (fdp->fd_ofiles[j] == NULL || + if (fdp == NULL || fdp->fd_ofiles[j] == NULL || FILE_IS_USABLE(fdp->fd_ofiles[j]) == 0) continue; d.d_fileno = j + FD_STDIN;