From horst@schirmeier.com  Mon Jan 12 23:39:34 2015
Received: (at 741) by bugs.x2go.org; 12 Jan 2015 22:39:34 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: **
X-Spam-Status: No, score=2.5 required=5.0 tests=BAYES_50,SUBJ_OBFU_PUNCT_MANY
	autolearn=no version=3.3.2
X-Greylist: delayed 401 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Mon, 12 Jan 2015 23:39:33 CET
Received: from quickstop.soohrt.org (quickstop.soohrt.org [85.131.246.152])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id EDB3B5DEAB
	for <741@bugs.x2go.org>; Mon, 12 Jan 2015 23:39:33 +0100 (CET)
Received: (qmail 15707 invoked by uid 1014); 12 Jan 2015 22:32:52 -0000
Date: Mon, 12 Jan 2015 23:32:52 +0100
From: Horst Schirmeier <horst@schirmeier.com>
To: 741@bugs.x2go.org
Subject: [PATCH] fix typo in 320_nxagent_configurable-keystrokes.full.patch
Message-ID: <20150112223252.GG22378@quickstop.soohrt.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)

This suble parenthesis typo made the R_OK check for
/etc/nxagent/keystrokes.cfg always fail.  As a consequence, only
~/.nx/config/keystrokes.cfg could be used for custom keystrokes.

This should fix bug #741.
---
 debian/patches/320_nxagent_configurable-keystrokes.full.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/patches/320_nxagent_configurable-keystrokes.full.patch b/debian/patches/320_nxagent_configurable-keystrokes.full.patch
index ae1897d..bcb8ef2 100644
--- a/debian/patches/320_nxagent_configurable-keystrokes.full.patch
+++ b/debian/patches/320_nxagent_configurable-keystrokes.full.patch
@@ -481,7 +481,7 @@ Description: Make nxagent-specific keyboard bindings configurable
 +    {
 +      /* empty */
 +    }
-+    else if (access(etcfile, R_OK == 0))
++    else if (access(etcfile, R_OK) == 0)
 +    {
 +      if (filename)
 +        free(filename);

-- 
PGP-Key 0xD40E0E7A

