firstboot: fix errno sign
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 5 Nov 2015 12:44:08 +0000 (13:44 +0100)
committerMichal Schmidt <mschmidt@redhat.com>
Thu, 5 Nov 2015 12:44:08 +0000 (13:44 +0100)
src/firstboot/firstboot.c

index 46cfe9f..96be4eb 100644 (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;