From: Jim Meyering Date: Tue, 20 Dec 1994 04:03:28 +0000 (+0000) Subject: (main): Use safe_stat, not SAFE_STAT. X-Git-Tag: textutils-1_12_1~384 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5811b6a269bc6c10d4a6f160eb742fa5ceeacbd;p=thirdparty%2Fcoreutils.git (main): Use safe_stat, not SAFE_STAT. --- diff --git a/src/sort.c b/src/sort.c index 97cc0840bb..a94111349d 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]);