diff options
Diffstat (limited to 'tools/obex-server-tool.c')
-rw-r--r-- | tools/obex-server-tool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/obex-server-tool.c b/tools/obex-server-tool.c index e37c56fd7..86c22713c 100644 --- a/tools/obex-server-tool.c +++ b/tools/obex-server-tool.c @@ -427,7 +427,7 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - if (option_root && chdir(option_root) > 0) { + if (option_root && chdir(option_root) < 0) { perror("chdir:"); exit(EXIT_FAILURE); } |