return -ENOSYS;
}
- r = LUKS_read_phdr(cd->device, &hdr, 0, cd);
+ r = LUKS_read_phdr(cd->device, &hdr, 1, cd);
if (!r) {
memcpy(&cd->hdr, &hdr, sizeof(hdr));
if(memcmp(hdr->magic, luksMagic, LUKS_MAGIC_L)) { /* Check magic */
log_dbg("LUKS header not detected.");
if (require_luks_device)
- log_err(ctx, _("%s is not a LUKS device.\n"), device);
+ log_err(ctx, _("%s is not LUKS device.\n"), device);
else
- set_error(_("%s is not a LUKS device."), device);
+ set_error(_("%s is not LUKS device."), device);
r = -EINVAL;
} else if((hdr->version = ntohs(hdr->version)) != 1) { /* Convert every uint16/32_t item from network byte order */
log_err(ctx, _("Unsupported LUKS version %d.\n"), hdr->version);