firstboot: fix errno sign

This commit is contained in:
Michal Schmidt 2015-11-05 13:44:08 +01:00
parent 7bb87460e6
commit 4546c34193
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ static int process_root_password(void) {
item.sp_pwdp = crypt(arg_root_password, salt);
if (!item.sp_pwdp) {
if (!errno)
errno = -EINVAL;
errno = EINVAL;
log_error_errno(errno, "Failed to encrypt password: %m");
return -errno;