Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 66774 | Differences between
and this patch

Collapse All | Expand All

(-)src/message.c.orig (-2 / +6 lines)
Lines 455-460 Link Here
455
	int flags;
455
	int flags;
456
	char *msgbuf;
456
	char *msgbuf;
457
{
457
{
458
	int fd;
459
458
	if (IS_ON(flags, MT_DEBUG))
460
	if (IS_ON(flags, MT_DEBUG))
459
		return;
461
		return;
460
462
Lines 475-484 Link Here
475
		(void) sprintf(tempfile, "%s/%s", cp, _RDIST_TMP);
477
		(void) sprintf(tempfile, "%s/%s", cp, _RDIST_TMP);
476
478
477
		msgfac->mf_filename = tempfile;
479
		msgfac->mf_filename = tempfile;
478
		(void) mktemp(msgfac->mf_filename);
480
		if ((fd = mkstemp(msgfac->mf_filename)) == -1)
479
		if ((msgfac->mf_fptr = fopen(msgfac->mf_filename, "w"))==NULL)
480
			fatalerr("Cannot open notify file for writing: %s: %s.",
481
			fatalerr("Cannot open notify file for writing: %s: %s.",
481
			      msgfac->mf_filename, SYSERR);
482
			      msgfac->mf_filename, SYSERR);
483
		if ((msgfac->mf_fptr = fdopen(fd, "w")) == NULL)
484
			fatalerr("Cannot associate stream with file %s: %s.",
485
			      msgfac->mf_filename, SYSERR);
482
		debugmsg(DM_MISC, "Created notify temp file '%s'",
486
		debugmsg(DM_MISC, "Created notify temp file '%s'",
483
			 msgfac->mf_filename);
487
			 msgfac->mf_filename);
484
	}
488
	}

Return to bug 66774