Commit a4be1b89 authored by Mike Gabriel's avatar Mike Gabriel

nxcomp/Loop.cpp: Ignore, options= nx/nx parameter, if file options path starts…

nxcomp/Loop.cpp: Ignore, options= nx/nx parameter, if file options path starts with /dev/, /proc/, or /sys/. Partially resolved ArcticaProject/nx-libs#51.
parent 554a6fa7
...@@ -9138,7 +9138,7 @@ int ParseEnvironmentOptions(const char *env, int force) ...@@ -9138,7 +9138,7 @@ int ParseEnvironmentOptions(const char *env, int force)
<< env << "'.\n" << logofs_flush; << env << "'.\n" << logofs_flush;
#endif #endif
if (*fileOptions != '\0') if ((*fileOptions != '\0') && (strncmp(fileOptions, "/dev/", 5) != 0) && (strncmp(fileOptions, "/proc/", 6) != 0) && (strncmp(fileOptions, "/sys/", 5) != 0))
{ {
if (strcmp(fileOptions, optionsFileName) != 0) if (strcmp(fileOptions, optionsFileName) != 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment