diff options
| author | Karel Zak <kzak@redhat.com> | 2025-07-01 11:01:40 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2025-08-26 13:56:08 +0200 |
| commit | b9f21dbd37cf149bff7ded948c69eca86ce5aa88 (patch) | |
| tree | 5244c69049dc6c62844e169532708373386f5c99 | |
| parent | c42f264120d9c12bdf4df0b31481b49b33540f68 (diff) | |
| download | util-linux-b9f21dbd37cf149bff7ded948c69eca86ce5aa88.tar.gz | |
lib/canonicalize: rename to ul_absolute_path()
Signed-off-by: Karel Zak <kzak@redhat.com>
| -rw-r--r-- | include/canonicalize.h | 2 | ||||
| -rw-r--r-- | lib/canonicalize.c | 2 | ||||
| -rw-r--r-- | libmount/src/tab.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/canonicalize.h b/include/canonicalize.h index ff6ef0dd6e..81a30ed123 100644 --- a/include/canonicalize.h +++ b/include/canonicalize.h @@ -20,7 +20,7 @@ extern char *canonicalize_path_restricted(const char *path); 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) { diff --git a/lib/canonicalize.c b/lib/canonicalize.c index 6e70afe18a..b36115f192 100644 --- a/lib/canonicalize.c +++ b/lib/canonicalize.c @@ -83,7 +83,7 @@ static int is_dm_devname(char *canonical, char **name) * 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; diff --git a/libmount/src/tab.c b/libmount/src/tab.c index 4209d697a5..9535dd7515 100644 --- a/libmount/src/tab.c +++ b/libmount/src/tab.c @@ -1161,7 +1161,7 @@ struct libmnt_fs *mnt_table_find_target(struct libmnt_table *tb, const char *pat } /* 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) { |
