Include stdlib--.h. Do not include unistd-safer.h.
(create_temp_file): Don't call fd_safer; no longer needed
now that we include *--.h files.
(xfopen): Don't call fopen_safer, for similar reasons.
#include "physmem.h"
#include "posixver.h"
#include "quote.h"
-#include "stdio-safer.h"
+#include "stdlib--.h"
+#include "stdio--.h"
#include "strnumcmp.h"
-#include "unistd-safer.h"
#include "xmemcoll.h"
#include "xstrtol.h"
sigprocmask (SIG_SETMASK, &oldset, NULL);
errno = saved_errno;
- fd = fd_safer (fd);
if (fd < 0 || (*pfp = fdopen (fd, "w")) == NULL)
die (_("cannot create temporary file"), file);
}
else
{
- if ((fp = fopen_safer (file, how)) == NULL)
+ fp = fopen (file, how);
+ if (! fp)
die (_("open failed"), file);
}