From a2efe2d2dec7a45cb8c82798fc5993506ffbacb7 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 25 Oct 2018 14:52:10 -0500 Subject: [PATCH] eap-pwd: Warn if deprecated setting is used --- src/eap-pwd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/eap-pwd.c b/src/eap-pwd.c index 8694800c..3b411aa8 100644 --- a/src/eap-pwd.c +++ b/src/eap-pwd.c @@ -728,8 +728,11 @@ static int eap_pwd_check_settings(struct l_settings *settings, "%sPWD-Password", prefix); password = l_settings_get_string(settings, "Security", password_key_old); - if (password) + if (password) { + l_warn("Setting '%s' is deprecated, use '%s' instead", + password_key_old, password_key); return 0; + } secret = l_queue_find(secrets, eap_secret_info_match, password_key);