summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorChristoph Berg <cb@df7cb.de>2007-03-29 15:23:58 -0700
committerChristoph Berg <cb@df7cb.de>2007-03-29 15:23:58 -0700
commit63eb03282311673fcc00194172fddcc61af25156 (patch)
tree7c80f73d4a12623133a77eba07c80bfc3b4c925b /init.c
parent61e8e17e275e86fec57ed1b5f2d07b8375688db4 (diff)
Use ~/.muttrc as the default alias_file if no user muttrc exists.
Makes the code agree with the documentation. Document that default is actually the used muttrc. (Closes Debian #226500.)
Diffstat (limited to 'init.c')
-rw-r--r--init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.c b/init.c
index 0008ab7f..701303a4 100644
--- a/init.c
+++ b/init.c
@@ -2967,7 +2967,9 @@ void mutt_init (int skip_sys_rc, LIST *commands)
snprintf (buffer, sizeof (buffer), "%s/.mutt/muttrc-%s", NONULL(Homedir), MUTT_VERSION);
if (access(buffer, F_OK) == -1)
snprintf (buffer, sizeof (buffer), "%s/.mutt/muttrc", NONULL(Homedir));
-
+ if (access(buffer, F_OK) == -1) /* default to .muttrc for alias_file */
+ snprintf (buffer, sizeof(buffer), "%s/.muttrc", NONULL(Homedir));
+
default_rc = 1;
Muttrc = safe_strdup (buffer);
}