]> git.ipfire.org Git - thirdparty/systemd.git/commit
fd-util: make path_is_root_at() not fail even when /proc is mounted
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 21 Jul 2023 16:23:17 +0000 (01:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 21 Jul 2023 17:20:27 +0000 (02:20 +0900)
commitbd96111d5fa8d3c05aad6aed21243d6b0534055d
treec4fb8dbbeb6334cd401654f3776f41d3ea7e3cd4
parent748711576662dbf697d5b4251d3fdbce6a666e7a
fd-util: make path_is_root_at() not fail even when /proc is mounted

path_get_mnt_id_at() -> fd_fdinfo_mnt_id() may return -EOPNOTSUPP when
/proc is mounted, and -ENOSYS otherwise, when an old kernel is used.
src/basic/fd-util.c