summaryrefslogtreecommitdiff
path: root/src/install.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/install.c
parent466ecc5db8326937b43a3c86d4554060d79d3c2c (diff)
downloadcoreutils-99ce9e9832afce3278226874af6a2a961d52fbbe.tar.xz
Use stat (lstat), not safe_stat (safe_lstat).
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/install.c b/src/install.c
index 6ced57f40..f2315020b 100644
--- a/src/install.c
+++ b/src/install.c
@@ -61,7 +61,6 @@
#include "system.h"
#include "version.h"
-#include "safe-stat.h"
#include "modechange.h"
#include "makepath.h"
#include "error.h"
@@ -321,7 +320,7 @@ copy_file (from, to, to_created)
struct stat from_stats, to_stats;
int target_created = 1;
- if (safe_stat (from, &from_stats))
+ if (stat (from, &from_stats))
{
error (0, errno, "%s", from);
return 1;
@@ -331,7 +330,7 @@ copy_file (from, to, to_created)
error (0, 0, "`%s' is not a regular file", from);
return 1;
}
- if (safe_stat (to, &to_stats) == 0)
+ if (stat (to, &to_stats) == 0)
{
if (!S_ISREG (to_stats.st_mode))
{