From: Michal Schmidt Date: Thu, 5 Nov 2015 12:44:08 +0000 (+0100) Subject: firstboot: fix errno sign X-Git-Tag: v228~79^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4546c34193064a1536d551facdcb398c0b765175;p=thirdparty%2Fsystemd.git firstboot: fix errno sign --- diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index 46cfe9f8510..96be4ebcc6f 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;