From 7314448bef2a1bcc42b24db371931488571df57d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 22 Jul 1994 17:17:25 +0000 Subject: [PATCH] * pathchk.c (dir_ok): Use SAFE_STAT. --- src/pathchk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pathchk.c b/src/pathchk.c index 76a3401a40..7d75a35c76 100644 --- a/src/pathchk.c +++ b/src/pathchk.c @@ -55,6 +55,7 @@ #include "version.h" #include "system.h" +#include "safe-stat.h" #ifdef _POSIX_VERSION #include @@ -218,7 +219,7 @@ dir_ok (path) { struct stat stats; - if (stat (path, &stats)) + if (SAFE_STAT (path, &stats)) return 2; if (!S_ISDIR (stats.st_mode)) -- 2.47.3