Module Name: src
Committed By: martin
Date: Wed Sep 11 16:35:11 UTC 2024
Modified Files:
src/lib/libpuffs [netbsd-10]: dispatcher.c
Log Message:
Pull up following revision(s) (requested by rin in ticket #833):
lib/libpuffs/dispatcher.c: revision 1.50
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.
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.49.6.1 src/lib/libpuffs/dispatcher.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libpuffs/dispatcher.c
diff -u src/lib/libpuffs/dispatcher.c:1.49 src/lib/libpuffs/dispatcher.c:1.49.6.1
--- src/lib/libpuffs/dispatcher.c:1.49 Mon Mar 8 17:34:10 2021
+++ src/lib/libpuffs/dispatcher.c Wed Sep 11 16:35:11 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: dispatcher.c,v 1.49 2021/03/08 17:34:10 christos Exp $ */
+/* $NetBSD: dispatcher.c,v 1.49.6.1 2024/09/11 16:35:11 martin 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.49.6.1 2024/09/11 16:35:11 martin 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;
}