commit | 1bdd4828bd0a13d6fb81c903078ad99ff2429b5d | [log] [download] |
---|---|---|
author | nicm <nicm> | Mon Dec 16 16:39:03 2019 +0000 |
committer | nicm <nicm> | Mon Dec 16 16:39:03 2019 +0000 |
tree | 8b7a92b596096fff6dc031ebab92ce55490a494b | |
parent | b4520aaf2cb56cd14519e2df9d99ea6efc8ddd03 [diff] |
If /dev/fd/X is a symlink and realpath() expands symlinks, /dev/fd/X ends up pointing to the wrong place before it is passed to the client. The path is only used internally so there is no real need for realpath(), remove it and move the get_path function to file.c where all the callers are.