sysusers: emit a bit more info at debug level when locking fails

This is the first error message when running unprivileged, and the message is
unspecific, so let's at least add some logging at debug level to make this less
confusing.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-02-02 09:09:24 +01:00
parent 75aaade16b
commit d1e4b8fd96
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1841,7 +1841,7 @@ int main(int argc, char *argv[]) {
lock = take_etc_passwd_lock(arg_root);
if (lock < 0) {
log_error_errno(lock, "Failed to take lock: %m");
log_error_errno(lock, "Failed to take /etc/passwd lock: %m");
goto finish;
}