Use m_temp instead of mutt_mktemp in compress code
authorJulien Danjou <julien@danjou.info>
Wed, 13 Dec 2006 17:01:45 +0000 (18:01 +0100)
committerPierre Habouzit <madcoder@debian.org>
Wed, 13 Dec 2006 18:58:06 +0000 (19:58 +0100)
commitfbb5e4651a646bb9556c43f26eca110a42274105
treec26992dd00a577837d96d41be782a1ba6767e9c8
parenta4e6d1eb7521b75921259ae370607074dde0e765
Use m_temp instead of mutt_mktemp in compress code

This patch remove the static set_path() function which was used only twice.
in:
- mutt_open_read_compressed()
  We just create a temporary file and open it, so this is more secure
  against symlink attacks and then just call decompression cmd normaly
- mutt_open_append_compressed()
  Instead of creating the file if (cond), unlink() it if (!cond).

Signed-off-by: Julien Danjou <julien@danjou.info>
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib-mx/compress.c