1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-31 14:50:37 +03:00

o set umask and make tempfiles a bit nicer to deal with

This commit is contained in:
AJ Lewis 2005-06-10 19:10:45 +00:00
parent 33934db629
commit 97344f18e2

View File

@ -100,13 +100,15 @@ function validate_args
fi
}
umask 0077
parse_args "$@"
validate_args
SCRIPTFILE=`mktemp /etc/lvm/lvmscript.XXXXXXXXXX`
TMPFILE=`mktemp /etc/lvm/lvmtmp.XXXXXXXXXX`
SCRIPTFILE=/etc/lvm/.lvmconf-script.tmp
TMPFILE=/etc/lvm/.lvmconf-tmp.tmp
# Flags so we know which parts of the file we can replace and which need