Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.sbin/dhcp/omapip Pull up revision 1.2 (requested by...
details: https://anonhg.NetBSD.org/src/rev/e2db3011da44
branches: netbsd-1-5
changeset: 491279:e2db3011da44
user: he <he%NetBSD.org@localhost>
date: Sat Apr 21 19:51:19 2001 +0000
description:
Pull up revision 1.2 (requested by mellon):
Prevent existing trace files from being partially overwritten.
diffstat:
usr.sbin/dhcp/omapip/trace.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r dd726b0eef9f -r e2db3011da44 usr.sbin/dhcp/omapip/trace.c
--- a/usr.sbin/dhcp/omapip/trace.c Sat Apr 21 19:50:32 2001 +0000
+++ b/usr.sbin/dhcp/omapip/trace.c Sat Apr 21 19:51:19 2001 +0000
@@ -109,7 +109,7 @@
return ISC_R_INVALIDARG;
}
- traceoutfile = open (filename, O_CREAT | O_WRONLY, 0644);
+ traceoutfile = open (filename, O_CREAT | O_WRONLY | O_EXCL, 0644);
if (traceoutfile < 0) {
log_error ("%s(%d): trace_begin: %s: %m",
file, line, filename);
Home |
Main Index |
Thread Index |
Old Index