mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Include stdio--.h, not stdio-safer.h.
(compare_files): Use fopen, not fopen_safer.
This commit is contained in:
1 parent
ffa06e1d94
commit
5a62048846
1 file changed
+2
-4
+2
-4
@@ -27,7 +27,7 @@
|
||||
#include "error.h"
|
||||
#include "hard-locale.h"
|
||||
#include "quote.h"
|
||||
#include "stdio-safer.h"
|
||||
#include "stdio--.h"
|
||||
#include "xmemcoll.h"
|
||||
|
||||
/* The official name of this program (e.g., no `g' prefix). */
|
||||
@@ -160,9 +160,7 @@ compare_files (char **infiles)
|
||||
{
|
||||
initbuffer (&lb1[i]);
|
||||
thisline[i] = &lb1[i];
|
||||
streams[i] = (STREQ (infiles[i], "-")
|
||||
? stdin
|
||||
: fopen_safer (infiles[i], "r"));
|
||||
streams[i] = (STREQ (infiles[i], "-") ? stdin : fopen (infiles[i], "r"));
|
||||
if (!streams[i])
|
||||
error (EXIT_FAILURE, errno, "%s", infiles[i]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user