From 32bd426778e4d37e233fe06ce66eb72b4a84c883 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 30 Jul 1994 16:34:17 +0000 Subject: . --- src/install.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/install.c') 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 #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)) { -- cgit v1.2.3-70-g09d2