deraadt neutered these options in november 2019, I'd say it's time to
remove them so the next release won't have it.

Feedback? Objections? OK?

diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c
index 134073117cb..1349234f66a 100644
--- a/usr.sbin/ntpd/ntpd.c
+++ b/usr.sbin/ntpd/ntpd.c
@@ -140,7 +140,6 @@ main(int argc, char *argv[])
        char                    **argv0 = argv;
        char                    *pname = NULL;
        time_t                   settime_deadline;
-       int                      sopt = 0;
 
        if (strcmp(__progname, "ntpctl") == 0) {
                ctl_main(argc, argv);
@@ -151,7 +150,7 @@ main(int argc, char *argv[])
 
        memset(&lconf, 0, sizeof(lconf));
 
-       while ((ch = getopt(argc, argv, "df:nP:sSv")) != -1) {
+       while ((ch = getopt(argc, argv, "df:nP:v")) != -1) {
                switch (ch) {
                case 'd':
                        lconf.debug = 1;
@@ -166,10 +165,6 @@ main(int argc, char *argv[])
                case 'P':
                        pname = optarg;
                        break;
-               case 's':
-               case 'S':
-                       sopt = ch;
-                       break;
                case 'v':
                        lconf.verbose++;
                        break;
@@ -186,12 +181,6 @@ main(int argc, char *argv[])
 
        log_init(logdest, lconf.verbose, LOG_DAEMON);
 
-       if (sopt) {
-               log_warnx("-%c option no longer works and will be removed 
soon.",
-                   sopt);
-               log_warnx("Please reconfigure to use constraints or trusted 
servers.");
-       }
-
        argc -= optind;
        argv += optind;
        if (argc > 0)

Reply via email to