diff options
author | Christoph Berg <cb@df7cb.de> | 2007-03-29 15:23:58 -0700 |
---|---|---|
committer | Christoph Berg <cb@df7cb.de> | 2007-03-29 15:23:58 -0700 |
commit | 63eb03282311673fcc00194172fddcc61af25156 (patch) | |
tree | 7c80f73d4a12623133a77eba07c80bfc3b4c925b /init.c | |
parent | 61e8e17e275e86fec57ed1b5f2d07b8375688db4 (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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |