]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Use safe_stat, not SAFE_STAT.
authorJim Meyering <jim@meyering.net>
Tue, 20 Dec 1994 04:03:28 +0000 (04:03 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 20 Dec 1994 04:03:28 +0000 (04:03 +0000)
src/sort.c

index 97cc0840bb209298f40c3031da3c90418b196b53..a94111349d4ab3394f1711d2a0c4f63cfab1b93b 100644 (file)
@@ -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]);