projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bb8746
)
firstboot: fix errno sign
author
Michal Schmidt
<mschmidt@redhat.com>
Thu, 5 Nov 2015 12:44:08 +0000
(13:44 +0100)
committer
Michal Schmidt
<mschmidt@redhat.com>
Thu, 5 Nov 2015 12:44:08 +0000
(13:44 +0100)
src/firstboot/firstboot.c
patch
|
blob
|
history
diff --git
a/src/firstboot/firstboot.c
b/src/firstboot/firstboot.c
index
46cfe9f
..
96be4eb
100644
(file)
--- 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;