Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve
config.toml
vs config
symlink check on Unix
The code attempts to suppress the warning if `config` is merely a symlink to `config.toml`. But it does this by calling readlink and comparing the result textually. That's not ideal because it depends on the precise spelling (`config.toml` vs `./config.toml` vs `/path/to/config.toml`) and also minds whether it's config.toml -> config, or v.v. On Unix, where we can get st_dev and st_ino, use that to suppress the check when the two names resolve to the same underlying file.
- Loading branch information