diff options
author | Jim Meyering <jim@meyering.net> | 1995-05-13 12:48:33 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-05-13 12:48:33 +0000 |
commit | 99ce9e9832afce3278226874af6a2a961d52fbbe (patch) | |
tree | f46ec12c1a198bfd1e0e978611df93e928fa3c2e /src/touch.c | |
parent | 466ecc5db8326937b43a3c86d4554060d79d3c2c (diff) | |
download | coreutils-99ce9e9832afce3278226874af6a2a961d52fbbe.tar.xz |
Use stat (lstat), not safe_stat (safe_lstat).
Diffstat (limited to 'src/touch.c')
-rw-r--r-- | src/touch.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/touch.c b/src/touch.c index e990f730a..06d69a9c1 100644 --- a/src/touch.c +++ b/src/touch.c @@ -39,7 +39,6 @@ #include "system.h" #include "version.h" -#include "safe-stat.h" #include "error.h" #ifndef STDC_HEADERS @@ -218,7 +217,7 @@ main (argc, argv) if (use_ref) { - if (safe_stat (ref_file, &ref_stats)) + if (stat (ref_file, &ref_stats)) error (1, errno, "%s", ref_file); date_set++; } @@ -263,7 +262,7 @@ touch (file) struct stat sbuf; int fd; - if (safe_stat (file, &sbuf)) + if (stat (file, &sbuf)) { if (errno != ENOENT) { |