summaryrefslogtreecommitdiff
path: root/src/shared/util.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-12-18 18:10:46 -0500
committerAnthony G. Basile <blueness@gentoo.org>2014-12-20 10:28:13 -0500
commit39e51a34881c4b02aecf2d98f2e9bdd350dec234 (patch)
treeeed2562e2c5e8ee90b8474ed07d7bb2b6a4cafd4 /src/shared/util.c
parentb5a7205f6edc5525dd2ee0a91bb051dabcd331d9 (diff)
path-util: fix breakage in path_is_mount_point
This fixes 2 problems introduced by 6feeeab0bc: 1) If name_to_handle_at returns ENOSYS for the child, we'll wrongly return -ENOSYS when it returns the same for the parent. Immediately jump to the fallback logic when we get ENOSYS. 2) If name_to_handle_at returns EOPNOTSUPP for the child but suceeds for the parent, we'll be comparing an uninitialized value (mount_id) to an initialized value (mount_id_parent). Initialize the mount_id variables to invalid mount_ids to avoid this. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/util.c')
0 files changed, 0 insertions, 0 deletions