From e929bee09ab8000e87b7e825ed3a78d73ecdd7f0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 26 Oct 2015 19:08:09 +0100 Subject: util-lib: move take_password_lock() to user-util.[ch] Also, rename it take_etc_passwd_lock(), in order to make it more expressive. --- src/firstboot/firstboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/firstboot') 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; -- cgit v1.2.3-54-g00ecf