summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-05-13 12:48:33 +0000
committerJim Meyering <jim@meyering.net>1995-05-13 12:48:33 +0000
commit99ce9e9832afce3278226874af6a2a961d52fbbe (patch)
treef46ec12c1a198bfd1e0e978611df93e928fa3c2e /src/ls.c
parent466ecc5db8326937b43a3c86d4554060d79d3c2c (diff)
downloadcoreutils-99ce9e9832afce3278226874af6a2a961d52fbbe.tar.xz
Use stat (lstat), not safe_stat (safe_lstat).
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ls.c b/src/ls.c
index 4dd6e6438..ed289c319 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -58,8 +58,6 @@
#include "obstack.h"
#include "ls.h"
#include "version.h"
-#include "safe-stat.h"
-#include "safe-lstat.h"
#include "error.h"
#define obstack_chunk_alloc xmalloc
@@ -1471,14 +1469,14 @@ gobble_file (name, explicit_arg, dirname)
if (trace_links)
{
- val = safe_stat (path, &files[files_index].stat);
+ val = stat (path, &files[files_index].stat);
if (val < 0)
/* Perhaps a symbolically-linked to file doesn't exist; stat
the link instead. */
- val = safe_lstat (path, &files[files_index].stat);
+ val = lstat (path, &files[files_index].stat);
}
else
- val = safe_lstat (path, &files[files_index].stat);
+ val = lstat (path, &files[files_index].stat);
if (val < 0)
{
error (0, errno, "%s", path);
@@ -1501,7 +1499,7 @@ gobble_file (name, explicit_arg, dirname)
if (linkpath
&& ((explicit_arg && format != long_format)
|| indicator_style != none || print_with_color)
- && safe_stat (linkpath, &linkstats) == 0)
+ && stat (linkpath, &linkstats) == 0)
{
/* Symbolic links to directories that are mentioned on the
command line are automatically traced if not being