diff options
author | Jani Nikula <jani@nikula.org> | 2013-04-07 20:15:03 +0300 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2013-04-14 18:38:07 -0300 |
commit | 58ed67992d0ec1fa505026105218fa449f7980b0 (patch) | |
tree | 91cbf5686c6260b6718f04b9ddeb08cde2747249 /test | |
parent | 7defbcdcec8bd89723dcd3548d2bfc7d58f0275d (diff) |
cli: config: do not overwrite symlinks when saving config file
Use realpath to canonicalize the config path before writing.
Previously 'notmuch setup' and 'notmuch config set' overwrote the
config file even if it was a symbolic link.
Diffstat (limited to 'test')
-rwxr-xr-x | test/config | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/config b/test/config index 344eced3..ca4cf330 100755 --- a/test/config +++ b/test/config @@ -78,7 +78,6 @@ test_expect_equal "$(notmuch --config=alt-config-link config get user.name)" \ "Link Name" test_begin_subtest "Writing config file through symlink follows symlink" -test_subtest_known_broken test_expect_equal "$(readlink alt-config-link)" "alt-config" test_done |