1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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 931fc37bc9
commit 30202196f0

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