From 7b3f7da0ec70e7be0e3db9524d092d9e138ed448 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 27 Jul 2015 19:54:23 +0200 Subject: fixed fallback implementation of get_absolute_path() on misc platforms * the old implementation was totally broken, which was to be expected * we can at least provide a version that always returns an absolute path, even though it does not canonicalizes * fixes e.g. Haiku builds for the time being. Haiku however is mostly POSIX compliant and could be handled like UNIX. * simplified the UNIX implementation of get_absolute_path() --- src/ioview.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/ioview.h') diff --git a/src/ioview.h b/src/ioview.h index e0f23f4..dddbb9b 100644 --- a/src/ioview.h +++ b/src/ioview.h @@ -38,8 +38,13 @@ gchar *expand_path(const gchar *path); /** * Get absolute/full version of a possibly relative path. + * The path is tried to be canonicalized so it does + * not contain relative components. * Works with existing and non-existing paths (in the latter case, - * heuristics may be applied.) + * heuristics may be applied). + * Depending on platform and existence of the path, + * canonicalization might fail, but the path returned is + * always absolute. * * @param path Possibly relative path name. * @return Newly-allocated absolute path name. -- cgit v1.2.3