Diff between 17c9c2073a4e07ad26f1c62868805bc8bca494cb and 9bf453f9f1d5fcc425670d2d989d198688d9ec54
Changed Files
| File | Additions | Deletions | Status |
| tools/obex-server-tool.c | +1 | -1 | modified |
Full Patch
diff --git a/tools/obex-server-tool.c b/tools/obex-server-tool.c
index e37c56f..86c2271 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);
}