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.63 retrieving revision 1.64 diff -u -p -r1.63 -r1.64 --- src/sys/miscfs/fdesc/fdesc_vnops.c 2001/06/14 20:32:48 1.63 +++ src/sys/miscfs/fdesc/fdesc_vnops.c 2001/06/16 08:28:39 1.64 @@ -1,4 +1,4 @@ -/* $NetBSD: fdesc_vnops.c,v 1.63 2001/06/14 20:32:48 thorpej Exp $ */ +/* $NetBSD: fdesc_vnops.c,v 1.64 2001/06/16 08:28:39 jdolecek Exp $ */ /* * Copyright (c) 1992, 1993 @@ -489,12 +489,16 @@ fdesc_attr(fd, vap, cred, p) break; case DTYPE_SOCKET: + case DTYPE_PIPE: FILE_USE(fp); error = (*fp->f_ops->fo_stat)(fp, &stb, p); FILE_UNUSE(fp, p); if (error == 0) { vattr_null(vap); - vap->va_type = VSOCK; + if (fp->f_type == DTYPE_SOCKET) + vap->va_type = VSOCK; + else + vap->va_type = VFIFO; vap->va_mode = stb.st_mode; vap->va_nlink = stb.st_nlink; vap->va_uid = stb.st_uid;