aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/Loop.cpp
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-02-05 12:41:28 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-03-02 11:19:58 +0100
commita4be1b89ff0929b6b801efa9afd996010d7dd075 (patch)
treebf65c05afb0a64299dd233368562b40c2f9cc229 /nxcomp/Loop.cpp
parent554a6fa760de47c497abcc91bb5f1f9b2756a407 (diff)
downloadnx-libs-a4be1b89ff0929b6b801efa9afd996010d7dd075.tar.gz
nx-libs-a4be1b89ff0929b6b801efa9afd996010d7dd075.tar.bz2
nx-libs-a4be1b89ff0929b6b801efa9afd996010d7dd075.zip
nxcomp/Loop.cpp: Ignore, options= nx/nx parameter, if file options path starts with /dev/, /proc/, or /sys/.
Partially resolved ArcticaProject/nx-libs#51.
Diffstat (limited to 'nxcomp/Loop.cpp')
-rw-r--r--nxcomp/Loop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp
index 86c951a06..b795c62af 100644
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -9138,7 +9138,7 @@ int ParseEnvironmentOptions(const char *env, int force)
<< env << "'.\n" << logofs_flush;
#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)
{