]> granicus.if.org Git - mutt/commit
Looking at the code, the problem is pretty obvious. A recent patch
authorDavid Yitzchak Cohen <lists+mutt_devs@bigfatdave.com>
Sat, 7 Feb 2004 21:36:41 +0000 (21:36 +0000)
committerDavid Yitzchak Cohen <lists+mutt_devs@bigfatdave.com>
Sat, 7 Feb 2004 21:36:41 +0000 (21:36 +0000)
commit8680ffd233fe28632f90e91e60883a4903d00827
tree57ec4dabe4187c63265625e114f1c112636fc79d
parentbab3795a029fad999459e9ccc62a2e07e57568c1
Looking at the code, the problem is pretty obvious.  A recent patch
to init.c (the one that was supposed to prevent Mutt from silently
failing to read nonexistant RC files, IIRC) changed source_rc() to
stat(2) the RC "file" before trying to mutt_open_read() it.  There's
only one problem here: source_rc() has no way of knowing whether or
not its "file" is a file or a command.  I'm attaching a patch that
fixes the problem in what I believe is the right way.
init.c
muttlib.c