From 6203399200f8ccff6841d7eaa997f00d053294f6 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 28 Jan 2016 10:52:21 -0500 Subject: the first protocol list requested takes precedence --- src/firejail/protocol.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/firejail/protocol.c b/src/firejail/protocol.c index e6a8f61ab..407f8c62d 100644 --- a/src/firejail/protocol.c +++ b/src/firejail/protocol.c @@ -119,6 +119,11 @@ void protocol_list(void) { void protocol_store(const char *prlist) { assert(prlist); + if (cfg.protocol) { + fprintf(stderr, "Warning: a protocol list is present, the new list \"%s\" will not be installed\n", prlist); + return; + } + // temporary list char *tmplist = strdup(prlist); if (!tmplist) -- cgit v1.2.3-54-g00ecf