Ticket #44870

secfile_lookup_str_default() to report errors

Eröffnet am: 2022-06-20 01:42 Letztes Update: 2023-01-07 02:53

Auswertung:
Verantwortlicher:
(Keine)
Typ:
Status:
Offen
Komponente:
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Keine
Datei:
Keine

Details

My comment in https://www.hostedredmine.com/issues/720559 :

--

in principle illegal (though not causing load-time error) "obsolete_by = FALSE" definition plays a role here. 'obsolete_by' is not an boolean option.

--

The reason there's no error catched, is that obsolete_by is read with secfile_lookup_str_default(), that never returns any indication of errors - it just returns the 'default' value in these cases too.

I'd like to change it to return NULL on error (and 'default' only when there's no value given in the file being read), but that might break too many places currently relying on the return value to always be an usable string.

Ticket-Verlauf (2/2 Historien)

2022-06-20 01:42 Aktualisiert von: cazfi
  • New Ticket "secfile_lookup_str_default() to report errors" created
2023-01-07 02:53 Aktualisiert von: cazfi
Kommentar

Interim improvement -> #46466

Dateianhangliste

Keine Anhänge

Bearbeiten

Please login to add comment to this ticket » Anmelden