summaryrefslogtreecommitdiff
path: root/src/firstboot/firstboot.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-26 19:08:09 +0100
committerLennart Poettering <lennart@poettering.net>2015-10-27 13:25:55 +0100
commite929bee09ab8000e87b7e825ed3a78d73ecdd7f0 (patch)
tree5e1fc6e11dec6ab46fb9497fb9915b65ad37d8af /src/firstboot/firstboot.c
parentbb15fafe9cd815fe5bf9eae84c08aead2eb98fd7 (diff)
util-lib: move take_password_lock() to user-util.[ch]
Also, rename it take_etc_passwd_lock(), in order to make it more expressive.
Diffstat (limited to 'src/firstboot/firstboot.c')
-rw-r--r--src/firstboot/firstboot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index abb5e77966..564bd50f9b 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -38,6 +38,7 @@
#include "strv.h"
#include "terminal-util.h"
#include "time-util.h"
+#include "user-util.h"
static char *arg_root = NULL;
static char *arg_locale = NULL; /* $LANG */
@@ -536,7 +537,7 @@ static int process_root_password(void) {
mkdir_parents(etc_shadow, 0755);
- lock = take_password_lock(arg_root);
+ lock = take_etc_passwd_lock(arg_root);
if (lock < 0)
return lock;