summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {