diff options
author | 2013-09-27 23:48:06 -0700 | |
---|---|---|
committer | 2013-10-26 23:50:59 +0100 | |
commit | cf56925cbc33900d9d62072aa279d00d54e7efda (patch) | |
tree | 82d6036f05ca78c6e2515d988b4e9d41863b5f9e | |
parent | 1be9677a8be2e34f0942dd0bb3424965ad093528 (diff) | |
download | paludis-cf56925cbc33900d9d62072aa279d00d54e7efda.tar.gz paludis-cf56925cbc33900d9d62072aa279d00d54e7efda.tar.xz |
Fix build without HAVE_CANONICALIZE_FILE_NAME
-rw-r--r-- | paludis/util/fs_path.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/util/fs_path.cc b/paludis/util/fs_path.cc index b3857eab0..1440f45d8 100644 --- a/paludis/util/fs_path.cc +++ b/paludis/util/fs_path.cc @@ -232,12 +232,12 @@ FSPath::realpath() const #else char r[PATH_MAX + 1]; std::memset(r, 0, PATH_MAX + 1); - if (! exists()) + if (! stat().exists()) throw FSError("Could not resolve path '" + _imp->path + "'"); if (! ::realpath(_imp->path.c_str(), r)) throw FSError("Could not resolve path '" + _imp->path + "'"); FSPath result(r); - if (! result.exists()) + if (! result.stat().exists()) throw FSError("Could not resolve path '" + _imp->path + "'"); return result; #endif @@ -258,12 +258,12 @@ FSPath::realpath_if_exists() const #else char r[PATH_MAX + 1]; std::memset(r, 0, PATH_MAX + 1); - if (! exists()) + if (! stat().exists()) return *this; if (! ::realpath(_imp->path.c_str(), r)) return *this; FSPath result(r); - if (! result.exists()) + if (! result.stat().exists()) return *this; return result; #endif |