--- src/jk_lsh.c.orig 2011-04-28 10:30:44.000000000 +0200 +++ src/jk_lsh.c 2013-01-09 15:33:25.651834770 +0100 @@ -122,7 +122,7 @@ static char *expand_executable_w_path(const char *executable, char **allowed_paths) { DEBUG_LOG("expand_executable_w_path, executable=%s",executable); - if (file_exists(executable)) { + if ((executable[0] == '/' || executable[0] == '.') && file_exists(executable)) { return strdup(executable); } if (!allowed_paths) {