mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
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.
This commit is contained in:
1 parent
b6be15eaca
commit
7b1780d5cc
1 file changed
+3
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user