diff options
author | Jim Meyering <jim@meyering.net> | 1995-05-05 05:03:50 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-05-05 05:03:50 +0000 |
commit | a5da850f3f655e35ba65dd4e5c26bd1936bfdec8 (patch) | |
tree | ede5f92fea18462702bc42660d2bfec9e767f9b0 | |
parent | 21657d3c678dff48a33632bb52f5d11a7c8faa0b (diff) | |
download | coreutils-a5da850f3f655e35ba65dd4e5c26bd1936bfdec8.tar.xz |
(main): Use stat, not safe_stat. The latter was unnecessary.
-rw-r--r-- | src/sort.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sort.c b/src/sort.c index 9379440b3..b1879443b 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]); |