mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
o set umask and make tempfiles a bit nicer to deal with
This commit is contained in:
parent
931fc37bc9
commit
30202196f0
@ -100,13 +100,15 @@ function validate_args
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
umask 0077
|
||||||
|
|
||||||
parse_args "$@"
|
parse_args "$@"
|
||||||
|
|
||||||
validate_args
|
validate_args
|
||||||
|
|
||||||
|
|
||||||
SCRIPTFILE=`mktemp /etc/lvm/lvmscript.XXXXXXXXXX`
|
SCRIPTFILE=/etc/lvm/.lvmconf-script.tmp
|
||||||
TMPFILE=`mktemp /etc/lvm/lvmtmp.XXXXXXXXXX`
|
TMPFILE=/etc/lvm/.lvmconf-tmp.tmp
|
||||||
|
|
||||||
|
|
||||||
# Flags so we know which parts of the file we can replace and which need
|
# Flags so we know which parts of the file we can replace and which need
|
||||||
|
Loading…
x
Reference in New Issue
Block a user