1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

fsadm: avoid access to unbound variable

This commit is contained in:
Zdenek Kabelac 2021-02-23 14:14:16 +01:00
parent 9e836c77a0
commit 646e3280dd

View File

@ -163,7 +163,7 @@ cleanup() {
_FSADM_EXTOFF=$EXTOFF _FSADM_EXTOFF=$EXTOFF
export _FSADM_YES _FSADM_EXTOFF export _FSADM_YES _FSADM_EXTOFF
unset FSADM_RUNNING unset FSADM_RUNNING
test -n "$LVM_BINARY" && PATH=$_SAVEPATH test -n "${LVM_BINARY-}" && PATH=$_SAVEPATH
dry exec "$LVM" lvresize $VERB $FORCE -r -L"${NEWSIZE_ORIG}b" "$VOLUME_ORIG" dry exec "$LVM" lvresize $VERB $FORCE -r -L"${NEWSIZE_ORIG}b" "$VOLUME_ORIG"
fi fi