summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2018-08-15 09:00:48 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commitad31ae9ed41c3d3b42f78958aa7bc9b58e877b28 (patch)
tree43969449f810ee72ad6ad51f6ae7bddfb47af10c /src/basic
parent5417e11715dfb4b3d8e7351e7446173fa54819ec (diff)
Prep v239: fs-util: Mask new chase_symlinks_and_*() functions.
They are nowhere needed.
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/fs-util.c2
-rw-r--r--src/basic/fs-util.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c
index 5a9b1c950..a82d3a14e 100644
--- a/src/basic/fs-util.c
+++ b/src/basic/fs-util.c
@@ -958,6 +958,7 @@ chased_one:
return 0;
}
+#if 0 /// UNNEEDED by elogind
int chase_symlinks_and_open(
const char *path,
const char *root,
@@ -1077,6 +1078,7 @@ int chase_symlinks_and_stat(
return 1;
}
+#endif // 0
int access_fd(int fd, int mode) {
char p[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(fd) + 1];
diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h
index e7ca03968..98be9ba07 100644
--- a/src/basic/fs-util.h
+++ b/src/basic/fs-util.h
@@ -95,9 +95,11 @@ enum {
int chase_symlinks(const char *path_with_prefix, const char *root, unsigned flags, char **ret);
+#if 0 /// UNNEEDED by elogind
int chase_symlinks_and_open(const char *path, const char *root, unsigned chase_flags, int open_flags, char **ret_path);
int chase_symlinks_and_opendir(const char *path, const char *root, unsigned chase_flags, char **ret_path, DIR **ret_dir);
int chase_symlinks_and_stat(const char *path, const char *root, unsigned chase_flags, char **ret_path, struct stat *ret_stat);
+#endif // 0
/* Useful for usage with _cleanup_(), removes a directory and frees the pointer */
static inline void rmdir_and_free(char *p) {