summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2000-06-27 23:08:36 +0000
committeralfred <alfred@FreeBSD.org>2000-06-27 23:08:36 +0000
commit1e48e18a710b517238a0acb9033bc02eb52b9b99 (patch)
tree261f68240dcf6c590599b40890c259649ec73e66 /sys/kern
parent6a77970fb2e764369c86dbdb113b99c02a18dde5 (diff)
downloadFreeBSD-src-1e48e18a710b517238a0acb9033bc02eb52b9b99.zip
FreeBSD-src-1e48e18a710b517238a0acb9033bc02eb52b9b99.tar.gz
don't panic the system when fpathconv is called on an unsupported filetype.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_descrip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index f0095c97..89121ac 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -642,7 +642,7 @@ fpathconf(p, uap)
return (VOP_PATHCONF(vp, uap->name, p->p_retval));
default:
- panic("fpathconf");
+ return (EOPNOTSUPP);
}
/*NOTREACHED*/
}
OpenPOWER on IntegriCloud