]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libfrog: fs_table_lookup_mount should realpath the argument
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 27 Mar 2018 02:27:28 +0000 (21:27 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 27 Mar 2018 02:27:28 +0000 (21:27 -0500)
commitbe66eb8ef581ae50ec9fe6ff8a95a58fe62c2b45
tree6a83047d1ff039cb2b85cac5e7eee6209e49cb24
parentf8cd7da8eec39dddbdeebac8617b64f2a1a2deb0
libfrog: fs_table_lookup_mount should realpath the argument

Call realpath on the dir argument so that we're comparing canonical
paths when looking for the mountpoint.  This fixes the problem where
'/home/' doesn't match '/home' even though they refer to the same thing.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libfrog/paths.c