mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
These LUKS2 labels are stored in the binary header area that has limited size. While we have been silently truncating strings here, it is something that is not expected, as the final label is then different than expected. Let's fix the code to explicitly print and return error here. Also remove the comment about duplicate check. It is incorrect optimization, as some users will expect a real write on disk, we should no skip it. Fixes: #958