From: Jim Meyering Date: Fri, 5 May 1995 05:03:50 +0000 (+0000) Subject: (main): Use stat, not safe_stat. The latter was unnecessary. X-Git-Tag: textutils-1_12_1~212 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a5da850f3f655e35ba65dd4e5c26bd1936bfdec8;p=thirdparty%2Fcoreutils.git (main): Use stat, not safe_stat. The latter was unnecessary. --- diff --git a/src/sort.c b/src/sort.c index 9379440b32..b1879443b6 100644 --- a/src/sort.c +++ b/src/sort.c @@ -30,7 +30,6 @@ #include "system.h" #include "version.h" #include "long-options.h" -#include "safe-stat.h" #include "error.h" #ifdef _POSIX_VERSION @@ -1752,7 +1751,7 @@ main (argc, argv) if (strcmp (outfile, "-")) { struct stat outstat; - if (safe_stat (outfile, &outstat) == 0) + if (stat (outfile, &outstat) == 0) { /* The following code prevents a race condition when people use the brain dead shell programming idiom: @@ -1773,7 +1772,7 @@ main (argc, argv) { struct stat instat; if ((strcmp (files[i], "-") - ? safe_stat (files[i], &instat) + ? stat (files[i], &instat) : fstat (fileno (stdin), &instat)) != 0) { error (0, errno, "%s", files[i]);