From: Daan De Meyer Date: Tue, 6 Jun 2023 14:55:14 +0000 (+0200) Subject: tmpfiles: Fix BSD lock logging messages X-Git-Tag: v254-rc1~155^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b572e8da4142fe23c67e28f1d6a232e14effba6e;p=thirdparty%2Fsystemd.git tmpfiles: Fix BSD lock logging messages --- diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 43e12856495..9469bbb4a3b 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -720,7 +720,7 @@ static int dir_cleanup( } if (flock(dirfd(sub_dir), LOCK_EX|LOCK_NB) < 0) { - log_debug_errno(errno, "Couldn't acquire shared BSD lock on directory \"%s\", skipping: %m", p); + log_debug_errno(errno, "Couldn't acquire shared BSD lock on directory \"%s\", skipping: %m", sub_path); continue; } @@ -808,7 +808,7 @@ static int dir_cleanup( if (fd < 0 && fd != -ENOENT) log_warning_errno(fd, "Opening file \"%s\" failed, ignoring: %m", sub_path); if (fd >= 0 && flock(fd, LOCK_EX|LOCK_NB) < 0 && errno == EAGAIN) { - log_debug_errno(errno, "Couldn't acquire shared BSD lock on file \"%s\", skipping: %m", p); + log_debug_errno(errno, "Couldn't acquire shared BSD lock on file \"%s\", skipping: %m", sub_path); continue; }