Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern don't clear the error before we use it to determine...
details: https://anonhg.NetBSD.org/src/rev/96df33e960d8
branches: trunk
changeset: 984298:96df33e960d8
user: christos <christos%NetBSD.org@localhost>
date: Thu Jul 01 04:25:51 2021 +0000
description:
don't clear the error before we use it to determine if we are moving or duping.
diffstat:
sys/kern/vfs_vnops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 3597e16a89b2 -r 96df33e960d8 sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c Wed Jun 30 22:13:27 2021 +0000
+++ b/sys/kern/vfs_vnops.c Thu Jul 01 04:25:51 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_vnops.c,v 1.218 2021/06/30 17:51:49 dholland Exp $ */
+/* $NetBSD: vfs_vnops.c,v 1.219 2021/07/01 04:25:51 christos Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.218 2021/06/30 17:51:49 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.219 2021/07/01 04:25:51 christos Exp $");
#include "veriexec.h"
@@ -339,10 +339,10 @@
error = EOPNOTSUPP;
break;
}
- error = 0;
*ret_vp = NULL;
*ret_domove = error == EMOVEFD;
*ret_fd = l->l_dupfd;
+ error = 0;
break;
case 0:
*ret_vp = vp;
Home |
Main Index |
Thread Index |
Old Index