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.
Co-authored-by: Richard Russon <rich@flatcap.org>
if (mutt_rfc1524_expand_filename(entry->nametemplate, fname, tmpfile))
{
- if (!fp && (mutt_str_strcmp(mutt_b2s(tmpfile), a->filename) != 0))
+ if (!fp)
{
/* send case: the file is already there */
if (mutt_file_symlink(a->filename, mutt_b2s(tmpfile)) == -1)