pathconf needs to return EINVAL when the variable is invalid
or cannot be associated with a file. This also needs to be true when the node doesn't implement the pathconf function at all.
This commit is contained in:
parent
d233f49979
commit
2d9177bfbe
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dispatcher.c,v 1.49 2021/03/08 17:34:10 christos Exp $ */
|
||||
/* $NetBSD: dispatcher.c,v 1.50 2023/12/11 12:42:18 mlelstv Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, 2007, 2008 Antti Kantee. All Rights Reserved.
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if !defined(lint)
|
||||
__RCSID("$NetBSD: dispatcher.c,v 1.49 2021/03/08 17:34:10 christos Exp $");
|
||||
__RCSID("$NetBSD: dispatcher.c,v 1.50 2023/12/11 12:42:18 mlelstv Exp $");
|
||||
#endif /* !lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -893,7 +893,7 @@ dispatch(struct puffs_cc *pcc)
|
|||
{
|
||||
struct puffs_vnmsg_pathconf *auxt = auxbuf;
|
||||
if (pops->puffs_node_pathconf == NULL) {
|
||||
error = 0;
|
||||
error = EINVAL;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue