You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-mail/mpack/files/mpack-1.6-gentoo.patch

70 lines
2.0 KiB

diff -bur mpack-1.6-orig/unixos.c mpack-1.6/unixos.c
--- mpack-1.6-orig/unixos.c 2007-03-11 02:02:02.000000000 +0100
+++ mpack-1.6/unixos.c 2007-03-11 02:04:48.000000000 +0100
@@ -39,7 +39,7 @@
#endif
extern int errno;
-extern char *malloc();
+extern void *malloc();
extern char *getenv();
int overwrite_files = 0;
@@ -90,7 +90,7 @@
strcpy(buf, getenv("TMPDIR"));
}
else {
- strcpy(buf, "/usr/tmp");
+ strcpy(buf, "/var/tmp");
}
strcat(buf, "/m-prts-");
p = getenv("USER");
diff -bur mpack-1.6-orig/unixpk.c mpack-1.6/unixpk.c
--- mpack-1.6-orig/unixpk.c 2007-03-11 02:02:02.000000000 +0100
+++ mpack-1.6/unixpk.c 2007-03-11 02:14:02.000000000 +0100
@@ -167,7 +167,7 @@
strcpy(fnamebuf, "/usr/tmp");
}
strcat(fnamebuf, "/mpackXXXXXX");
- mktemp(fnamebuf);
+ mkstemp(fnamebuf);
outfname = strsave(fnamebuf);
}
diff -bur mpack-1.6-orig/unixpk.man mpack-1.6/unixpk.man
--- mpack-1.6-orig/unixpk.man 2007-03-11 02:02:02.000000000 +0100
+++ mpack-1.6/unixpk.man 2007-03-11 02:14:13.000000000 +0100
@@ -136,7 +136,7 @@
.SH ENVIRONMENT
.TP
.B TMPDIR
-Directory to store temporary files. Default is /usr/tmp.
+Directory to store temporary files. Default is /var/tmp.
.TP
.B SPLITSIZE
Default value of the -m switch.
diff -bur mpack-1.6-orig/unixunpk.man mpack-1.6/unixunpk.man
--- mpack-1.6-orig/unixunpk.man 2007-03-11 02:02:02.000000000 +0100
+++ mpack-1.6/unixunpk.man 2007-03-11 02:03:14.000000000 +0100
@@ -107,7 +107,7 @@
.SH ENVIRONMENT
.TP
.B TMPDIR
-Directory to store temporary files. Default is /usr/tmp.
+Directory to store temporary files. Default is /var/tmp.
.SH FILES
.TP
.B $TMPDIR/m-prts-$USER/
diff -bur mpack-1.6-orig/xmalloc.c mpack-1.6/xmalloc.c
--- mpack-1.6-orig/xmalloc.c 2007-03-11 02:02:02.000000000 +0100
+++ mpack-1.6/xmalloc.c 2007-03-11 02:04:29.000000000 +0100
@@ -24,7 +24,7 @@
*/
#include <stdio.h>
#include <string.h>
-extern char *malloc(), *realloc();
+extern void *malloc(), *realloc();
char *xmalloc (int size)
{