Mon Dec 11 12:42:18 2023 UTC (174d)
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.


(mlelstv)
diff -r1.49 -r1.50 src/lib/libpuffs/dispatcher.c

cvs diff -r1.49 -r1.50 src/lib/libpuffs/dispatcher.c (expand / switch to context diff)
--- src/lib/libpuffs/dispatcher.c 2021/03/08 17:34:10 1.49
+++ src/lib/libpuffs/dispatcher.c 2023/12/11 12:42:18 1.50
@@ -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 @@
 		{
 			struct puffs_vnmsg_pathconf *auxt = auxbuf;
 			if (pops->puffs_node_pathconf == NULL) {
-				error = 0;
+				error = EINVAL;
 				break;
 			}