aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Michael Forney <mforney@mforney.org> 2013-09-27 23:48:06 -0700
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-10-26 23:50:59 +0100
commitcf56925cbc33900d9d62072aa279d00d54e7efda (patch)
tree82d6036f05ca78c6e2515d988b4e9d41863b5f9e
parent1be9677a8be2e34f0942dd0bb3424965ad093528 (diff)
downloadpaludis-cf56925cbc33900d9d62072aa279d00d54e7efda.tar.gz
paludis-cf56925cbc33900d9d62072aa279d00d54e7efda.tar.xz
Fix build without HAVE_CANONICALIZE_FILE_NAME
-rw-r--r--paludis/util/fs_path.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/util/fs_path.cc b/paludis/util/fs_path.cc
index b3857ea..1440f45 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