OMNI_ENV_WORDEXP
MACRO

OMNI_ENV_WORDEXP - If defined, wordexp functionality is used in omni::environment::expand_vars

SYNOPSIS top

The wordexp library functionality is not implemented on some systems and thus cannot be used on all, so to enable use of the wordexp functions, this flag must be enabled.

DESCRIPTION top

Some platforms do not implement the GLIBC wordexp (like OpenBSD)
for many security reasons, but to implement a workaround to ensure cross-platform compatibility, a pipe is opened and the environment variables echo'd out. This as well can introduce security issues to your program and care must be taken to validate user input before using omni::environment::expand_vars functions (regardless if this macro is defined or not).

CONSIDERATIONS top

As this only applies to the omni::environment::expand_vars functions, it's advised to use these functions with caution as it can open your program up to certain attack vectors (similar to the idea of a SQL injection attack).

PLATFORM SPECIFIC top

This only applies to non-Windows systems.

NOTES top

None.