Reported by: <stephan@srlabs.de>
Change-Id: I356faeebfade1eed9b40d6700b13621c357ec5ac
Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1343
Message-Id: <
20251103150002.23187-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34156.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
const WCHAR *config_file = NULL;
WCHAR config_dir[MAX_PATH];
+ /* fname = stdin is special: do not treat it as a relative path */
+ if (wcscmp(fname, L"stdin") == 0)
+ {
+ return FALSE;
+ }
/* convert fname to full path */
if (PathIsRelativeW(fname))
{