From ec657332c679b030a9fd71e152e4a85234c55f12 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Wed, 3 Feb 2021 19:37:33 +0100 Subject: [PATCH] Rephrase lockinging dir warning and move it to debug level. System should later provide safe transition to tempdir configuration. --- lib/utils_device_locking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils_device_locking.c b/lib/utils_device_locking.c index ebc846f0..1940f508 100644 --- a/lib/utils_device_locking.c +++ b/lib/utils_device_locking.c @@ -106,7 +106,7 @@ static int open_lock_dir(struct crypt_device *cd, const char *dir, const char *b lockdfd = openat(dirfd, base, O_RDONLY | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); if (lockdfd < 0) { if (errno == ENOENT) { - log_std(cd, _("WARNING: Locking directory %s/%s is missing!\n"), dir, base); + log_dbg(cd, _("WARNING: Locking directory %s/%s will be created with default compiled-in permissions.\n"), dir, base); /* success or failure w/ errno == EEXIST either way just try to open the 'base' directory again */ if (mkdirat(dirfd, base, DEFAULT_LUKS2_LOCK_DIR_PERMS) && errno != EEXIST)