summaryrefslogtreecommitdiffstats
path: root/src/tools/qdir_unix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/qdir_unix.cpp')
-rw-r--r--src/tools/qdir_unix.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/qdir_unix.cpp b/src/tools/qdir_unix.cpp
index 0b297ca..5c0c393 100644
--- a/src/tools/qdir_unix.cpp
+++ b/src/tools/qdir_unix.cpp
@@ -98,7 +98,10 @@ QString QDir::canonicalPath() const
slashify( r );
// always make sure we go back to the current dir
- ::chdir( cur );
+ if (::chdir( cur ) < 0) {
+ // Error!
+ // FIXME
+ }
}
#endif /* __GLIBC__ && !PATH_MAX */
return r;