Signed-off-by: Karel Zak <kzak@redhat.com>
extern char *canonicalize_dm_name(const char *ptname);
extern char *__canonicalize_dm_name(const char *prefix, const char *ptname);
-extern char *absolute_path(const char *path);
+extern char *ul_absolute_path(const char *path);
static inline int is_relative_path(const char *path)
{
* relative path. If the path is no relative than returns NULL. The path does
* not have to exist.
*/
-char *absolute_path(const char *path)
+char *ul_absolute_path(const char *path)
{
char cwd[PATH_MAX], *res, *p;
size_t psz, csz;
}
/* try absolute path */
- if (is_relative_path(path) && (cn = absolute_path(path))) {
+ if (is_relative_path(path) && (cn = ul_absolute_path(path))) {
DBG(TAB, ul_debugobj(tb, "lookup absolute TARGET: '%s'", cn));
mnt_reset_iter(&itr, direction);
while (mnt_table_next_fs(tb, &itr, &fs) == 0) {