summaryrefslogtreecommitdiff
path: root/tools/obex-server-tool.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/obex-server-tool.c')
-rw-r--r--tools/obex-server-tool.c2
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);
}