artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f06382
)
handle umask nicer
author
deraadt
<deraadt@openbsd.org>
Sun, 15 Sep 1996 20:47:15 +0000
(20:47 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sun, 15 Sep 1996 20:47:15 +0000
(20:47 +0000)
libexec/makewhatis/makewhatis.sh
patch
|
blob
|
history
diff --git
a/libexec/makewhatis/makewhatis.sh
b/libexec/makewhatis/makewhatis.sh
index
2baef2f
..
8c06ce9
100644
(file)
--- a/
libexec/makewhatis/makewhatis.sh
+++ b/
libexec/makewhatis/makewhatis.sh
@@
-7,12
+7,14
@@
TDIR=/tmp/whatis$$
FILE=$TDIR/whatis
-umask 077
+um=`umask`
+umask 022
if ! mkdir $TDIR ; then
printf "tmp directory %s already exists, looks like:\n" $TDIR
ls -alF $TDIR
exit 1
fi
+umask $um
trap "rm -rf $TDIR; exit 1" 1 2 15