summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2015-11-05 13:44:08 +0100
committerMichal Schmidt <mschmidt@redhat.com>2015-11-05 13:44:08 +0100
commit4546c34193064a1536d551facdcb398c0b765175 (patch)
tree5d5ebe2c5ac9342ac09dfcb643f8036c8eff8506 /src
parent7bb87460e691d30c1a7fd23a1a8240776957e05f (diff)
firstboot: fix errno sign
Diffstat (limited to 'src')
-rw-r--r--src/firstboot/firstboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index 46cfe9f851..96be4ebcc6 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -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;