X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-config.c;h=4886d366f7e787af9d6ffbc6dc8a92efb73c2628;hp=8d286538c086180ef9c88ef6a00315c95fc67fea;hb=8ea4eef298bf45ddce629ff6e221bd84daa0fa24;hpb=28d7544ae2adfe6467c6b64a3284f5ed13f81e1a diff --git a/notmuch-config.c b/notmuch-config.c index 8d286538..4886d366 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -454,7 +454,7 @@ notmuch_config_save (notmuch_config_t *config) } /* Try not to overwrite symlinks. */ - filename = realpath (config->filename, NULL); + filename = canonicalize_file_name (config->filename); if (! filename) { if (errno == ENOENT) { filename = strdup (config->filename);