version 1.44, 2007/09/04 17:57:41 |
version 1.45, 2007/09/25 10:04:47 |
|
|
#include <fcntl.h> |
#include <fcntl.h> |
#include <paths.h> |
#include <paths.h> |
#include <signal.h> |
#include <signal.h> |
|
#include <stdlib.h> |
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
|
|
|
|
(void)xasprintf(&fpath, "%s/cvsXXXXXXXXXX", cvs_tmpdir); |
(void)xasprintf(&fpath, "%s/cvsXXXXXXXXXX", cvs_tmpdir); |
|
|
if ((fd = mkstemp(fpath)) == NULL) |
if ((fd = mkstemp(fpath)) == -1) |
fatal("cvs_logmsg_create: mkstemp %s", strerror(errno)); |
fatal("cvs_logmsg_create: mkstemp %s", strerror(errno)); |
|
|
cvs_worklist_add(fpath, &temp_files); |
cvs_worklist_add(fpath, &temp_files); |