summaryrefslogtreecommitdiff
path: root/src/install.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-07-30 16:34:17 +0000
committerJim Meyering <jim@meyering.net>1994-07-30 16:34:17 +0000
commit32bd426778e4d37e233fe06ce66eb72b4a84c883 (patch)
tree81eae5822f0dba853b9116c074fb3a2a55ba8faa /src/install.c
parenta272d8b0c6e62937ef7b69e3ca750e34fd3e3152 (diff)
downloadcoreutils-32bd426778e4d37e233fe06ce66eb72b4a84c883.tar.xz
.
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/install.c b/src/install.c
index 77617b02a..ad5aef395 100644
--- a/src/install.c
+++ b/src/install.c
@@ -71,6 +71,7 @@
#include <grp.h>
#include "system.h"
#include "version.h"
+#include "safe-stat.h"
#include "modechange.h"
#if !defined (isascii) || defined (STDC_HEADERS)
@@ -332,7 +333,7 @@ copy_file (from, to, to_created)
struct stat from_stats, to_stats;
int target_created = 1;
- if (stat (from, &from_stats))
+ if (SAFE_STAT (from, &from_stats))
{
error (0, errno, "%s", from);
return 1;
@@ -342,7 +343,7 @@ copy_file (from, to, to_created)
error (0, 0, "`%s' is not a regular file", from);
return 1;
}
- if (stat (to, &to_stats) == 0)
+ if (SAFE_STAT (to, &to_stats) == 0)
{
if (!S_ISREG (to_stats.st_mode))
{