summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2017-07-03 14:17:29 +0100
committerLucas Stach <l.stach@pengutronix.de>2017-07-06 14:42:45 +0200
commita6f379599227835114e4e2d8bf53f1a1c65d7fec (patch)
tree23ed3f3343729c5669b78c2d50166fe8052459a9 /arch
parentf4563213084baa6c5271a9967b4c3b2bd6b2d49d (diff)
downloadbarebox-a6f379599227835114e4e2d8bf53f1a1c65d7fec.tar.gz
barebox-a6f379599227835114e4e2d8bf53f1a1c65d7fec.tar.xz
readlink: Improve -f handling
For `readlink -f FILE VARIABLE`, set VARIABLE to the absolute, canonical file name of FILE by following symbolic links. All but the final component of FILE must exist. Prior to commit a602bebcf7e4 ("fs: Implement links to directories") the above worked in the limited case where FILE was an absolute path, the final component was a symbolic link, and all preceding components were directories. If FILE was a relative path with the final component being a symbolic link, and all preceding paths being directories, the command sort of worked, but produced a relative path as the result. Both of these cases were broken by the above commit. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions