artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
214a955
)
kill /tmp race
author
deraadt
<deraadt@openbsd.org>
Mon, 16 Sep 1996 01:37:00 +0000
(
01:37
+0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 16 Sep 1996 01:37:00 +0000
(
01:37
+0000)
sbin/modload/modload.c
patch
|
blob
|
history
diff --git
a/sbin/modload/modload.c
b/sbin/modload/modload.c
index
5e7dee9
..
4aec3c6
100644
(file)
--- a/
sbin/modload/modload.c
+++ b/
sbin/modload/modload.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: modload.c,v 1.
8 1996/08/29 15:17:38
deraadt Exp $ */
+/* $OpenBSD: modload.c,v 1.
9 1996/09/16 01:37:00
deraadt Exp $ */
/* $NetBSD: modload.c,v 1.13 1995/05/28 05:21:58 jtc Exp $ */
/*
@@
-257,7
+257,7
@@
main(argc, argv)
entry[strlen(entry) - 2] = '\0'; /* chop off .o */
}
- if((modfd = open(out, O_RDWR | O_CREAT, 0666)) < 0)
+ if((modfd = open(out, O_RDWR | O_
EXCL | O_
CREAT, 0666)) < 0)
err(1, "creating %s", out);
close(modfd);