$NetBSD: patch-bj,v 1.1 2006/10/19 11:51:27 markd Exp $ --- source/daemons/common/err_trace.c.orig 2005-11-24 00:03:58.000000000 +1300 +++ source/daemons/common/err_trace.c @@ -962,7 +962,7 @@ static bool nfs_mounted(const char *path { bool ret=true; -#if defined(LINUX) || defined(DARWIN) || defined(FREEBSD) || defined(NETBSD) +#if defined(LINUX) || defined(DARWIN) || defined(FREEBSD) || (defined(NETBSD) && !defined(ST_RDONLY)) struct statfs buf; statfs(path, &buf); #elif defined(INTERIX)