From: Fabian Keil Date: Sat, 26 Jan 2013 13:30:20 +0000 (+0000) Subject: Show FEATURE_STRPTIME_SANITY_CHECKS on the show-status page X-Git-Tag: v_3_0_21~77 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=ee95da23c1c8eb6dd19edf6f0474b750638db580;ds=sidebyside Show FEATURE_STRPTIME_SANITY_CHECKS on the show-status page --- diff --git a/cgisimple.c b/cgisimple.c index 07017022..79ec6216 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.118 2012/12/07 12:45:20 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.119 2013/01/25 21:52:02 david__schmidt Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/cgisimple.c,v $ @@ -1650,6 +1650,12 @@ static jb_err show_defines(struct map *exports) if (!err) err = map_conditional(exports, "FEATURE_STATISTICS", 0); #endif /* ndef FEATURE_STATISTICS */ +#ifdef FEATURE_STRPTIME_SANITY_CHECKS + if (!err) err = map_conditional(exports, "FEATURE_STRPTIME_SANITY_CHECKS", 1); +#else /* ifndef FEATURE_STRPTIME_SANITY_CHECKS */ + if (!err) err = map_conditional(exports, "FEATURE_STRPTIME_SANITY_CHECKS", 0); +#endif /* ndef FEATURE_STRPTIME_SANITY_CHECKS */ + #ifdef FEATURE_TOGGLE if (!err) err = map_conditional(exports, "FEATURE_TOGGLE", 1); #else /* ifndef FEATURE_TOGGLE */ diff --git a/templates/show-status b/templates/show-status index ece4d11c..e0ebd397 100644 --- a/templates/show-status +++ b/templates/show-status @@ -315,6 +315,11 @@ @if-FEATURE_STATISTICS-then@ Yes @else-not-FEATURE_STATISTICS@ No @endif-FEATURE_STATISTICS@ Enables the statistics function. + + FEATURE_STRPTIME_SANITY_CHECKS + @if-FEATURE_STRPTIME_SANITY_CHECKS-then@ Yes @else-not-FEATURE_STRPTIME_SANITY_CHECKS@ No @endif-FEATURE_STRPTIME_SANITY_CHECKS@ + Try to work around broken strptime() implementations. + FEATURE_TOGGLE @if-FEATURE_TOGGLE-then@ Yes @else-not-FEATURE_TOGGLE@ No @endif-FEATURE_TOGGLE@