version 1.28, 2016/03/30 20:51:59 |
version 1.29, 2019/06/28 05:35:35 |
|
|
(void) snprintf(tempfile, len, "%s/%s", cp, _RDIST_TMP); |
(void) snprintf(tempfile, len, "%s/%s", cp, _RDIST_TMP); |
|
|
msgfac->mf_filename = tempfile; |
msgfac->mf_filename = tempfile; |
if ((fd = mkstemp(msgfac->mf_filename)) < 0 || |
if ((fd = mkstemp(msgfac->mf_filename)) == -1 || |
(msgfac->mf_fptr = fdopen(fd, "w")) == NULL) |
(msgfac->mf_fptr = fdopen(fd, "w")) == NULL) |
fatalerr("Cannot open notify file for writing: %s: %s.", |
fatalerr("Cannot open notify file for writing: %s: %s.", |
msgfac->mf_filename, SYSERR); |
msgfac->mf_filename, SYSERR); |