chiark / gitweb /
util-lib: Fix chase_symlinks() with absolute symlinks (#5185)
author3chas3 <ciwillia@brocade.com>
Tue, 31 Jan 2017 13:21:15 +0000 (08:21 -0500)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000 (17:58 +0200)
commitc59c21d77cea613cc662901b421e4d3a0fcd854f
tree68686003d8ff953caa8655937ebffcd356c391e6
parenta5c28308446550e0966825472babdf123fc976ac
util-lib: Fix chase_symlinks() with absolute symlinks (#5185)

If chase_symlinks() encouters an absolute symlink, it resets the todo
buffer to just the newly discovered symlink and discards any of the
remaining previous symlink path.  Regardless of whether or not the
symlink is absolute or relative, we need to preserve the remainder of
the path that has not yet been resolved.
src/basic/fs-util.c