Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/net/lib/libshmif truncate pcap output file
details: https://anonhg.NetBSD.org/src/rev/b8bcfeddf6b8
branches: trunk
changeset: 757070:b8bcfeddf6b8
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Aug 13 11:45:47 2010 +0000
description:
truncate pcap output file
diffstat:
sys/rump/net/lib/libshmif/dumpbus.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r b040bdf64e2a -r b8bcfeddf6b8 sys/rump/net/lib/libshmif/dumpbus.c
--- a/sys/rump/net/lib/libshmif/dumpbus.c Fri Aug 13 10:13:44 2010 +0000
+++ b/sys/rump/net/lib/libshmif/dumpbus.c Fri Aug 13 11:45:47 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dumpbus.c,v 1.7 2010/08/13 10:13:44 pooka Exp $ */
+/* $NetBSD: dumpbus.c,v 1.8 2010/08/13 11:45:47 pooka Exp $ */
/*
* Little utility to convert shmif bus traffic to a pcap file
@@ -91,7 +91,7 @@
if (strcmp(pcapfile, "-") == 0) {
pfd = STDOUT_FILENO;
} else {
- pfd = open(pcapfile, O_RDWR | O_CREAT, 0777);
+ pfd = open(pcapfile, O_RDWR | O_CREAT | O_TRUNC, 0777);
if (pfd == -1)
err(1, "create pcap dump");
}
Home |
Main Index |
Thread Index |
Old Index