diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-15 03:07:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-03-15 03:07:53 +0000 |
commit | 38e4143c006af251d03ecba3338faf534221fa51 (patch) | |
tree | 9df87235ce5014b4510721c22b3f0402b43e851a /sbin/modload | |
parent | d5c31b60ad54d60fb12d4089fdbc760a221ab9fd (diff) |
override file creation, do not assume umask is enough. of course, ld may
generate temp files which have umask mode.. so this is not really a sane
change to even bother with.
Diffstat (limited to 'sbin/modload')
-rw-r--r-- | sbin/modload/modload.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c index 1f9c60520be..95d04ae3182 100644 --- a/sbin/modload/modload.c +++ b/sbin/modload/modload.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modload.c,v 1.21 2001/02/10 20:42:09 millert Exp $ */ +/* $OpenBSD: modload.c,v 1.22 2001/03/15 03:07:52 deraadt Exp $ */ /* $NetBSD: modload.c,v 1.13 1995/05/28 05:21:58 jtc Exp $ */ /* @@ -281,7 +281,7 @@ main(argc, argv) entry[strlen(entry) - 2] = '\0'; /* chop off .o */ } - if((modfd = open(out, O_RDWR | O_EXCL | O_CREAT, 0666)) < 0) + if((modfd = open(out, O_RDWR | O_EXCL | O_CREAT, 0600)) < 0) err(1, "creating %s", out); close(modfd); |