Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern PR/5458: Andrew Brown: acct(2) bug accounting to fi...
details: https://anonhg.NetBSD.org/src/rev/e58b1d7beec4
branches: trunk
changeset: 546075:e58b1d7beec4
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 20 03:20:18 2003 +0000
description:
PR/5458: Andrew Brown: acct(2) bug accounting to files marked sappnd
diffstat:
sys/kern/kern_acct.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 92e189bdea7c -r e58b1d7beec4 sys/kern/kern_acct.c
--- a/sys/kern/kern_acct.c Sun Apr 20 03:03:18 2003 +0000
+++ b/sys/kern/kern_acct.c Sun Apr 20 03:20:18 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_acct.c,v 1.51 2003/01/18 10:06:23 thorpej Exp $ */
+/* $NetBSD: kern_acct.c,v 1.52 2003/04/20 03:20:18 christos Exp $ */
/*-
* Copyright (c) 1994 Christopher G. Demetriou
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_acct.c,v 1.51 2003/01/18 10:06:23 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_acct.c,v 1.52 2003/04/20 03:20:18 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -209,7 +209,7 @@
if (SCARG(uap, path) != NULL) {
NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_USERSPACE, SCARG(uap, path),
p);
- if ((error = vn_open(&nd, FWRITE, 0)) != 0)
+ if ((error = vn_open(&nd, FWRITE|O_APPEND, 0)) != 0)
return (error);
VOP_UNLOCK(nd.ni_vp, 0);
if (nd.ni_vp->v_type != VREG) {
Home |
Main Index |
Thread Index |
Old Index