Subject: [PATCH] fix typo in 320_nxagent_configurable-keystrokes.full.patch

From: Horst Schirmeier <[email-masked]>
Date: Mon, 12 Jan 2015 23:32:52 +0100

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