X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/73c09bc56e79605cf421a31c7e36958422055a20..badf2dc0fb0b78dee463521a879c85d76ffd87f3:/debian/patches/features/compressed-folders?ds=inline diff --git a/debian/patches/features/compressed-folders b/debian/patches/features/compressed-folders index a9de103..5a16ce8 100644 --- a/debian/patches/features/compressed-folders +++ b/debian/patches/features/compressed-folders @@ -22,7 +22,7 @@ The home page for this patch is: == END PATCH --- /dev/null +++ b/compress.c -@@ -0,0 +1,496 @@ +@@ -0,0 +1,499 @@ +/* + * Copyright (C) 1997 Alain Penders + * @@ -175,7 +175,7 @@ The home page for this patch is: + ctx->realpath = ctx->path; + + /* Uncompress to /tmp */ -+ mutt_mktemp (tmppath); ++ mutt_mktemp (tmppath, sizeof(tmppath)); + ctx->path = safe_malloc (strlen (tmppath) + 1); + strcpy (ctx->path, tmppath); +} @@ -303,6 +303,9 @@ The home page for this patch is: + ctx->magic = 0; + FREE (&ctx->compressinfo); + mutt_error (_("Error executing: %s : unable to open the mailbox!\n"), cmd); ++ // remove the partial uncompressed file ++ remove_file (ctx); ++ restore_path (ctx); + } + FREE (&cmd); + if (rc)