From ad31ae9ed41c3d3b42f78958aa7bc9b58e877b28 Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Wed, 15 Aug 2018 09:00:48 +0200 Subject: [PATCH] Prep v239: fs-util: Mask new chase_symlinks_and_*() functions. They are nowhere needed. --- src/basic/fs-util.c | 2 ++ src/basic/fs-util.h | 2 ++ 2 files changed, 4 insertions(+) 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) { -- 2.30.2