From 1c7defb76e774a54509fd6d99f3b65eec088b4e9 Mon Sep 17 00:00:00 2001 From: pjd Date: Thu, 5 Sep 2013 11:58:12 +0000 Subject: Handle cases where capability rights are not provided. Reported by: kib --- sys/fs/fdescfs/fdesc_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs') diff --git a/sys/fs/fdescfs/fdesc_vnops.c b/sys/fs/fdescfs/fdesc_vnops.c index fe939b1..b976504 100644 --- a/sys/fs/fdescfs/fdesc_vnops.c +++ b/sys/fs/fdescfs/fdesc_vnops.c @@ -309,7 +309,7 @@ fdesc_lookup(ap) /* * No rights to check since 'fp' isn't actually used. */ - if ((error = fget(td, fd, 0, &fp)) != 0) + if ((error = fget(td, fd, NULL, &fp)) != 0) goto bad; /* Check if we're looking up ourselves. */ -- cgit v1.1