mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Don't use !# in randomly-generated uuids.
This commit is contained in:
parent
89716a336b
commit
6a5b803539
@ -73,8 +73,12 @@ int id_create(struct id *id)
|
||||
}
|
||||
close(randomfile);
|
||||
|
||||
/*
|
||||
* Skip out the last 2 chars in randomized creation for LVM1
|
||||
* backwards compatibility.
|
||||
*/
|
||||
for (i = 0; i < len; i++)
|
||||
id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 1)];
|
||||
id->uuid[i] = _c[id->uuid[i] % (sizeof(_c) - 3)];
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user