diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2013-12-03 18:04:54 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-12-09 11:36:46 +0200 |
commit | 9bf453f9f1d5fcc425670d2d989d198688d9ec54 (patch) | |
tree | 160d8e4c7a6f9dac589c9975eace66a7d55756e5 /tools/obex-server-tool.c | |
parent | 17c9c2073a4e07ad26f1c62868805bc8bca494cb (diff) | |
download | bluez-9bf453f9f1d5fcc425670d2d989d198688d9ec54.tar.gz |
tools/obex-server-tool: Fix checking incorrect error code
chdir return -1 if error and 0 in success.
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); } |