diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-05-17 19:44:22 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-05-18 06:35:24 +0200 |
commit | 8c23de9f2abc2ec21d4b74785fd175050909176e (patch) | |
tree | 0b9dc494dd84dbedc5162fa7ec541834c4ae735c /src | |
parent | 40e52dc710ae1d693fa09bab1c6e47ae2c2933cf (diff) |
Opening plug-in directory made more robust
If plugin directory doesn't exist, is a file or
user has no permissions to access it, the plugins
are not loaded.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/ctx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ctx.cpp b/src/ctx.cpp index 063f96c..abe3bb4 100644 --- a/src/ctx.cpp +++ b/src/ctx.cpp @@ -136,7 +136,7 @@ next: path += "/lib/xs/plugins"; DIR *dp = opendir (path.c_str ()); - if (!dp && errno == ENOENT) + if (!dp && (errno == ENOENT || errno == EACCES || errno == ENOTDIR)) return; errno_assert (dp); |