Rephrase lockinging dir warning and move it to debug level.

System should later provide safe transition to tempdir configuration.
This commit is contained in:
Milan Broz
2021-02-03 19:37:33 +01:00
parent e123263975
commit ec657332c6

View File

@@ -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)