summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-07-03 07:21:31 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-07-03 07:21:31 +0000
commit7b1780d5cc2a64268192551df38d48463ac01451 (patch)
tree23baba953d5afd0c87138d80305b304e9230d660 /src
parentb6be15eaca87ad6ed01f601d40e66c3083c0f599 (diff)
downloadcoreutils-7b1780d5cc2a64268192551df38d48463ac01451.tar.xz
Include stdlib--.h rather than unistd-safer.h.
(copy_to_temp): Don't call fd_safer; no longer needed now that we include stdlib--.h.
Diffstat (limited to 'src')
-rw-r--r--src/tac.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tac.c b/src/tac.c
index f7066745b..961ccdf61 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -48,7 +48,7 @@ tac -r -s '.\|
#include "quote.h"
#include "quotearg.h"
#include "safe-read.h"
-#include "unistd-safer.h"
+#include "stdlib--.h"
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "tac"
@@ -455,7 +455,8 @@ copy_to_temp (FILE **g_tmp, char **g_tempfile, int input_fd, char const *file)
return false;
}
- if ((fd = fd_safer (fd)) < 0 || ! (tmp = fdopen (fd, "w+")))
+ tmp = fdopen (fd, "w+");
+ if (! tmp)
{
error (0, errno, _("cannot open %s for writing"), quote (tempfile));
close (fd);