From ced999fff9dff49d94d70676c2457f3fd973ae06 Mon Sep 17 00:00:00 2001 From: drepper Date: Mon, 20 Sep 2004 23:15:42 +0000 Subject: [PATCH] (options): Mark S option as hidden. (parse_opt): When S option is used, print warning message. --- nscd/nscd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nscd/nscd.c b/nscd/nscd.c index 51aed02c54..4586cf04c9 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -98,7 +98,8 @@ static const struct argp_option options[] = { "statistic", 'g', NULL, 0, N_("Print current configuration statistic") }, { "invalidate", 'i', N_("TABLE"), 0, N_("Invalidate the specified cache") }, - { "secure", 'S', N_("TABLE,yes"), 0, N_("Use separate cache for each user")}, + { "secure", 'S', N_("TABLE,yes"), OPTION_HIDDEN, + N_("Use separate cache for each user")}, { NULL, 0, NULL, 0, NULL } }; @@ -356,12 +357,16 @@ parse_opt (int key, char *arg, struct argp_state *state) break; case 'S': +#if 0 if (strcmp (arg, "passwd,yes") == 0) secure_in_use = dbs[pwddb].secure = 1; else if (strcmp (arg, "group,yes") == 0) secure_in_use = dbs[grpdb].secure = 1; else if (strcmp (arg, "hosts,yes") == 0) secure_in_use = dbs[hstdb].secure = 1; +#else + error (0, 0, _("secure services not implemented anymore")); +#endif break; default: -- 2.11.0