From: Jim Meyering Date: Fri, 22 Jul 1994 17:17:25 +0000 (+0000) Subject: * pathchk.c (dir_ok): Use SAFE_STAT. X-Git-Tag: textutils-1_12_1~655 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7314448bef2a1bcc42b24db371931488571df57d;p=thirdparty%2Fcoreutils.git * pathchk.c (dir_ok): Use SAFE_STAT. --- 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))