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

Fix pvchange -x segfault with lvm2-format orphan.

This commit is contained in:
Alasdair Kergon 2004-12-21 16:12:02 +00:00
parent 9ec484617a
commit 8c9a1d6a3d
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.00.32 -
====================================
Fix pvchange -x segfault with lvm2-format orphan.
Cope with empty msdos partition tables.
Version 2.00.31 - 12th December 2004

View File

@ -32,6 +32,8 @@ static int _pvchange_single(struct cmd_context *cmd, struct physical_volume *pv,
int allocatable = 0;
int tagarg = 0;
list_init(&mdas);
if (arg_count(cmd, addtag_ARG))
tagarg = addtag_ARG;
else if (arg_count(cmd, deltag_ARG))