projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Bug #15213, #18635: The use of the insecure m_scratch() and
[mmh]
/
uip
/
send.c
diff --git
a/uip/send.c
b/uip/send.c
index
43f4c02
..
8409654
100644
(file)
--- a/
uip/send.c
+++ b/
uip/send.c
@@
-423,7
+423,7
@@
go_to_it:
&& (distsw = atoi (cp))
&& altmsg) {
vec[vecp++] = "-dist";
&& (distsw = atoi (cp))
&& altmsg) {
vec[vecp++] = "-dist";
- distfile = getcpy (m_scratch (altmsg, invo_name));
+ distfile = getcpy (m_mktemp2 (altmsg, invo_name, NULL, NULL));
if (link (altmsg, distfile) == NOTOK) {
if (errno != EXDEV
#ifdef EISREMOTE
if (link (altmsg, distfile) == NOTOK) {
if (errno != EXDEV
#ifdef EISREMOTE
@@
-432,7
+432,7
@@
go_to_it:
)
adios (distfile, "unable to link %s to", altmsg);
free (distfile);
)
adios (distfile, "unable to link %s to", altmsg);
free (distfile);
- distfile = getcpy (m_tmpfil (invo_name));
+ distfile = getcpy (m_mktemp2(NULL, invo_name, NULL, NULL));
{
int in, out;
struct stat st;
{
int in, out;
struct stat st;