# This is CGIlite.
# A collection of posix shell functions for writing CGI scripts.
-# Copyright 2017 - 2023, 2025 Paul Hänsch
+# Copyright 2017 - 2023, 2025 - 2026 Paul Hänsch
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
_EXEC="${_EXEC%/}" _DATA="${_DATA%/}" _BASE="${_BASE%/}"
# Do not set DEBUG here, because it will increase log level
+# discard stderr when running via inetd (relies on undocumented env var?)
+if [ -z "$DEBUG" -a -n "$inetd_dummy" ]; then
+ exec 2>/dev/null
+fi
+
export _EXEC _DATA _BASE
# Carriage Return and Line Break characters for convenience