X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Fmount-util.c;h=051b14b179596f35b213c3f6685151e9f7409863;hb=084937b3d7c4da3e3c48d05779f8cfbdc39a2ce6;hp=16b6a586761e3753c326d2c1d48b8bdb2eeb8856;hpb=bfacd4c25cf46bc958180c0af8ac8ab289389cb2;p=elogind.git diff --git a/src/basic/mount-util.c b/src/basic/mount-util.c index 16b6a5867..051b14b17 100644 --- a/src/basic/mount-util.c +++ b/src/basic/mount-util.c @@ -161,7 +161,7 @@ int fd_is_mount_point(int fd, const char *filename, int flags) { fallback_fdinfo: r = fd_fdinfo_mnt_id(fd, filename, flags, &mount_id); - if (IN_SET(r, -EOPNOTSUPP, -EACCES)) + if (r == -EOPNOTSUPP) goto fallback_fstat; if (r < 0) return r; @@ -583,6 +583,7 @@ const char* mode_to_inaccessible_node(mode_t mode) { return NULL; } +#if 0 /// UNNEEDED by elogind #define FLAG(name) (flags & name ? STRINGIFY(name) "|" : "") static char* mount_flags_to_string(long unsigned flags) { char *x; @@ -642,7 +643,7 @@ static char* mount_flags_to_string(long unsigned flags) { FLAG(MS_I_VERSION), FLAG(MS_STRICTATIME), FLAG(MS_LAZYTIME), - y, NULL); + y); if (!x) return NULL; if (!y) @@ -687,3 +688,4 @@ int umount_verbose(const char *what) { return log_error_errno(errno, "Failed to unmount %s: %m", what); return 0; } +#endif // 0