mutt_rfc1524_expand_filename() runs the result through
mutt_adv_mktemp(), which will sanitize and relocate the filename under
$tmpdir. The strcmp() is unneeded and distracting to the program
logic; none of the other routines perform or need this check.
if (mutt_rfc1524_expand_filename (entry->nametemplate, fname,
tempfile))
{
- if (fp == NULL && mutt_strcmp(mutt_b2s (tempfile), a->filename))
+ if (fp == NULL)
{
/* send case: the file is already there */
if (safe_symlink (a->filename, mutt_b2s (tempfile)) == -1)