artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af50a89
)
Set umask to be read only by owner until we set real file permissions.
author
millert
<millert@openbsd.org>
Mon, 16 Sep 1996 02:32:34 +0000
(
02:32
+0000)
committer
millert
<millert@openbsd.org>
Mon, 16 Sep 1996 02:32:34 +0000
(
02:32
+0000)
sbin/restore/main.c
patch
|
blob
|
history
diff --git
a/sbin/restore/main.c
b/sbin/restore/main.c
index
f886a4c
..
153411f
100644
(file)
--- a/
sbin/restore/main.c
+++ b/
sbin/restore/main.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: main.c,v 1.
4 1996/09/01 15:27:29 deraad
t Exp $ */
+/* $OpenBSD: main.c,v 1.
5 1996/09/16 02:32:34 miller
t Exp $ */
/* $NetBSD: main.c,v 1.11 1996/03/15 22:39:39 scottr Exp $ */
/*
@@
-93,6
+93,9
@@
main(argc, argv)
char *symtbl = "./restoresymtable";
char *p, name[MAXPATHLEN];
+ /* Temp files should *not* be readable. We set permissions later. */
+ (void) umask(077);
+
if (argc < 2)
usage();