Fix misleading error messages in reencrypt.

This commit is contained in:
Milan Broz
2015-08-26 16:15:11 +02:00
parent def397d0c8
commit 57d16a7a55

View File

@@ -882,13 +882,13 @@ static int copy_data(struct reenc_ctx *rc)
fd_old = open(rc->crypt_path_org, O_RDONLY | (opt_directio ? O_DIRECT : 0));
if (fd_old == -1) {
log_err(_("Cannot open temporary LUKS header file.\n"));
log_err(_("Cannot open temporary LUKS device.\n"));
goto out;
}
fd_new = open(rc->crypt_path_new, O_WRONLY | (opt_directio ? O_DIRECT : 0));
if (fd_new == -1) {
log_err(_("Cannot open temporary LUKS header file.\n"));
log_err(_("Cannot open temporary LUKS device.\n"));
goto out;
}