Files
cryptsetup/lib/luks2
Milan Broz 0eaaa4553e Fix handling of too long label and subsystem fields
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
2025-10-01 21:41:55 +02:00
..
2025-01-15 23:09:36 +01:00
2025-01-15 23:09:36 +01:00
2025-01-15 23:09:36 +01:00
2025-01-15 23:09:36 +01:00
2025-01-15 23:09:36 +01:00
2025-05-20 15:21:44 +02:00