Hi Peter, Peter Piwowarski wrote on Tue, Mar 19, 2019 at 10:03:20PM -0400:
> qsort(3) has in its EXAMPLE a C \n with its backslash unescaped; a quick > grep through manpages showed similar errors in CONF_modules_load_file.3. Ouch! Thanks for the report, committed. Ingo > Index: lib/libc/stdlib/qsort.3 > =================================================================== > RCS file: /cvs/src/lib/libc/stdlib/qsort.3,v > retrieving revision 1.24 > diff -u -p -r1.24 qsort.3 > --- lib/libc/stdlib/qsort.3 22 Jan 2019 06:49:17 -0000 1.24 > +++ lib/libc/stdlib/qsort.3 19 Mar 2019 16:49:59 -0000 > @@ -179,7 +179,7 @@ main() > > qsort(array, N, sizeof(array[0]), cmp); > for (i = 0; i < N; i++) > - printf("%s\n", array[i]); > + printf("%s\en", array[i]); > } > > > Index: lib/libcrypto/man/CONF_modules_load_file.3 > =================================================================== > RCS file: /cvs/src/lib/libcrypto/man/CONF_modules_load_file.3,v > retrieving revision 1.7 > diff -u -p -r1.7 CONF_modules_load_file.3 > --- lib/libcrypto/man/CONF_modules_load_file.3 22 Mar 2018 21:08:22 > -0000 1.7 > +++ lib/libcrypto/man/CONF_modules_load_file.3 19 Mar 2019 16:49:59 > -0000 > @@ -163,7 +163,7 @@ Load a configuration file and print out > file considered fatal): > .Bd -literal > if (CONF_modules_load_file(NULL, NULL, 0) <= 0) { > - fprintf(stderr, "FATAL: error loading configuration file\n"); > + fprintf(stderr, "FATAL: error loading configuration file\en"); > ERR_print_errors_fp(stderr); > exit(1); > } > @@ -174,7 +174,7 @@ by "myapp", tolerate missing files, but > .Bd -literal > if (CONF_modules_load_file(NULL, "myapp", > CONF_MFLAGS_IGNORE_MISSING_FILE) <= 0) { > - fprintf(stderr, "FATAL: error loading configuration file\n"); > + fprintf(stderr, "FATAL: error loading configuration file\en"); > ERR_print_errors_fp(stderr); > exit(1); > } > @@ -185,7 +185,7 @@ error, missing configuration file ignore > .Bd -literal > if (CONF_modules_load_file("/something/app.cnf", "myapp", > CONF_MFLAGS_IGNORE_MISSING_FILE) <= 0) { > - fprintf(stderr, "WARNING: error loading configuration file\n"); > + fprintf(stderr, "WARNING: error loading configuration file\en"); > ERR_print_errors_fp(stderr); > } > .Ed > @@ -198,17 +198,17 @@ long eline; > > fp = fopen("/somepath/app.cnf", "r"); > if (fp == NULL) { > - fprintf(stderr, "Error opening configuration file\n"); > + fprintf(stderr, "Error opening configuration file\en"); > /* Other missing configuration file behaviour */ > } else { > cnf = NCONF_new(NULL); > if (NCONF_load_fp(cnf, fp, &eline) == 0) { > - fprintf(stderr, "Error on line %ld of configuration file\n", > + fprintf(stderr, "Error on line %ld of configuration file\en", > eline); > ERR_print_errors_fp(stderr); > /* Other malformed configuration file behaviour */ > } else if (CONF_modules_load(cnf, "appname", 0) <= 0) { > - fprintf(stderr, "Error configuring application\n"); > + fprintf(stderr, "Error configuring application\en"); > ERR_print_errors_fp(stderr); > /* Other configuration error behaviour */ > }