diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-05-28 14:58:47 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-06-01 16:02:46 +0000 |
commit | 82d38f701cb523d83f6390dc5a5a84b0604b7948 (patch) | |
tree | e69f2df471774f38ea16ca892b802b942b5a4a42 /src/mm-context.c | |
parent | 6eca223705b0e5c5ce52fff77858c41c82a854d7 (diff) |
filter: rename 'default' to 'legacy'
The old 'default' policy is renamed to 'legacy', and is considered now
deprecated.
Diffstat (limited to 'src/mm-context.c')
-rw-r--r-- | src/mm-context.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mm-context.c b/src/mm-context.c index 406c744a..d0a76e00 100644 --- a/src/mm-context.c +++ b/src/mm-context.c @@ -38,7 +38,7 @@ static gboolean help_flag; static gboolean version_flag; static gboolean debug; -static MMFilterRule filter_policy = MM_FILTER_POLICY_DEFAULT; +static MMFilterRule filter_policy = MM_FILTER_POLICY_LEGACY; static gboolean no_auto_scan = NO_AUTO_SCAN_DEFAULT; static const gchar *initial_kernel_events; @@ -48,8 +48,8 @@ filter_policy_option_arg (const gchar *option_name, gpointer data, GError **error) { - if (!g_ascii_strcasecmp (value, "default")) { - filter_policy = MM_FILTER_POLICY_DEFAULT; + if (!g_ascii_strcasecmp (value, "legacy")) { + filter_policy = MM_FILTER_POLICY_LEGACY; return TRUE; } @@ -77,7 +77,7 @@ filter_policy_option_arg (const gchar *option_name, static const GOptionEntry entries[] = { { "filter-policy", 0, 0, G_OPTION_ARG_CALLBACK, filter_policy_option_arg, - "Filter policy: one of DEFAULT, WHITELIST-ONLY, STRICT, PARANOID", + "Filter policy: one of LEGACY, WHITELIST-ONLY, STRICT, PARANOID", "[POLICY]" }, { |