summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-12-20 04:03:28 +0000
committerJim Meyering <jim@meyering.net>1994-12-20 04:03:28 +0000
commitc5811b6a269bc6c10d4a6f160eb742fa5ceeacbd (patch)
tree9e0d927e42c97b3b9ecee76f05cabf13fc6cd646 /src
parent73d8d0a43fb21cafc27b2380016a2e534c93763a (diff)
downloadcoreutils-c5811b6a269bc6c10d4a6f160eb742fa5ceeacbd.tar.xz
(main): Use safe_stat, not SAFE_STAT.
Diffstat (limited to 'src')
-rw-r--r--src/sort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sort.c b/src/sort.c
index 97cc0840b..a94111349 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -1744,7 +1744,7 @@ main (argc, argv)
if (strcmp (outfile, "-"))
{
struct stat outstat;
- if (SAFE_STAT (outfile, &outstat) == 0)
+ if (safe_stat (outfile, &outstat) == 0)
{
/* The following code prevents a race condition when
people use the brain dead shell programming idiom:
@@ -1765,7 +1765,7 @@ main (argc, argv)
{
struct stat instat;
if ((strcmp (files[i], "-")
- ? SAFE_STAT (files[i], &instat)
+ ? safe_stat (files[i], &instat)
: fstat (fileno (stdin), &instat)) != 0)
{
error (0, errno, "%s", files[i]);