1
0

patch-ntpd_c 725 B

123456789101112131415161718192021222324252627
  1. --- openntpd-3.9p1.orig/ntpd.c 2006-05-14 07:29:23.000000000 +0200
  2. +++ openntpd-3.9p1/ntpd.c 2010-07-02 14:21:47.473356095 +0200
  3. @@ -73,7 +73,7 @@ usage(void)
  4. {
  5. extern char *__progname;
  6. - fprintf(stderr, "usage: %s [-dSs] [-f file]\n", __progname);
  7. + fprintf(stderr, "usage: %s [-diSs] [-f file]\n", __progname);
  8. exit(1);
  9. }
  10. @@ -100,11 +100,14 @@ main(int argc, char *argv[])
  11. log_init(1); /* log to stderr until daemonized */
  12. res_init(); /* XXX */
  13. - while ((ch = getopt(argc, argv, "df:sS")) != -1) {
  14. + while ((ch = getopt(argc, argv, "dif:sS")) != -1) {
  15. switch (ch) {
  16. case 'd':
  17. conf.debug = 1;
  18. break;
  19. + case 'i':
  20. + conf.ignore = 1;
  21. + break;
  22. case 'f':
  23. conffile = optarg;
  24. break;