summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-05-09 07:38:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-05-11 21:31:36 +0200
commita602bebcf7e42eb8933f224c12cad1c9320e28a1 (patch)
treef0ea6b74bf9e9dcf7f103c4bb9173b5dab5ffabc /include
parent7f01c05e1e7e2cc1d9c389bd664b1b6eeaaa8ba6 (diff)
downloadbarebox-a602bebcf7e42eb8933f224c12cad1c9320e28a1.tar.gz
barebox-a602bebcf7e42eb8933f224c12cad1c9320e28a1.tar.xz
fs: Implement links to directories
So far links can only point to files. Implement links to directories. With this all kinds of links are supported: - relative links - absolute links - links including ".." - link loops (are detected, return -EMLINK) Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/fs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/fs.h b/include/fs.h
index 6a592893a9..71edb22f26 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -128,7 +128,8 @@ char *mkmodestr(unsigned long mode, char *str);
* of "..", "." and double slashes. The returned string must be freed wit free().
*/
char *normalise_path(const char *path);
-char *normalise_link(const char *pathname, const char* symlink);
+
+char *canonicalize_path(const char *pathname);
char *get_mounted_path(const char *path);