From: Pavel Filipenský Date: Mon, 16 Dec 2024 12:57:17 +0000 (+0100) Subject: nsswitch:wbinfo: Remove implementation of deprecated '--sequence' X-Git-Tag: tdb-1.4.13~286 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e8009b4ca54003c72da52c76e1f2f1b175f2314;p=thirdparty%2Fsamba.git nsswitch:wbinfo: Remove implementation of deprecated '--sequence' Signed-off-by: Pavel Filipenský Reviewed-by: Volker Lendecke Reviewed-by: Andreas Schneider --- diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c index 87053fac9a7..4d0179edde9 100644 --- a/nsswitch/wbinfo.c +++ b/nsswitch/wbinfo.c @@ -605,14 +605,6 @@ static bool wbinfo_list_own_domain(void) return true; } -/* show sequence numbers */ -static bool wbinfo_show_sequence(const char *domain) -{ - d_printf("This command has been deprecated. Please use the " - "--online-status option instead.\n"); - return false; -} - /* show sequence numbers */ static bool wbinfo_show_onlinestatus(const char *domain) { @@ -2295,7 +2287,6 @@ enum { OPT_SET_AUTH_USER = 1000, OPT_GET_AUTH_USER, OPT_DOMAIN_NAME, - OPT_SEQUENCE, OPT_GETDCNAME, OPT_DSGETDCNAME, OPT_DC_INFO, @@ -2581,12 +2572,6 @@ int main(int argc, const char **argv, char **envp) .val = OPT_LIST_OWN_DOMAIN, .descrip = "List own domain", }, - { - .longName = "sequence", - .argInfo = POPT_ARG_NONE, - .val = OPT_SEQUENCE, - .descrip = "Deprecated command, see --online-status", - }, { .longName = "online-status", .argInfo = POPT_ARG_NONE, @@ -3099,13 +3084,6 @@ int main(int argc, const char **argv, char **envp) goto done; } break; - case OPT_SEQUENCE: - if (!wbinfo_show_sequence(opt_domain_name)) { - d_fprintf(stderr, - "Could not show sequence numbers\n"); - goto done; - } - break; case OPT_ONLINESTATUS: if (!wbinfo_show_onlinestatus(opt_domain_name)) { d_fprintf(stderr,