mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Include stdio--.h, not stdio-safer.h.
(tee): Don't call fopen_safer; no longer needed now that we include stdio--.h.
This commit is contained in:
1 parent
4decb49032
commit
9509ae9a8c
1 file changed
+2
-2
@@ -25,7 +25,7 @@
|
||||
|
||||
#include "system.h"
|
||||
#include "error.h"
|
||||
#include "stdio-safer.h"
|
||||
#include "stdio--.h"
|
||||
|
||||
/* The official name of this program (e.g., no `g' prefix). */
|
||||
#define PROGRAM_NAME "tee"
|
||||
@@ -162,7 +162,7 @@ tee (int nfiles, const char **files)
|
||||
{
|
||||
descriptors[i] = (STREQ (files[i], "-")
|
||||
? stdout
|
||||
: fopen_safer (files[i], mode_string));
|
||||
: fopen (files[i], mode_string));
|
||||
if (descriptors[i] == NULL)
|
||||
{
|
||||
error (0, errno, "%s", files[i]);
|
||||
|
||||
Reference in new issue
Block a user