]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
* pathchk.c (dir_ok): Use SAFE_STAT.
authorJim Meyering <jim@meyering.net>
Fri, 22 Jul 1994 17:17:25 +0000 (17:17 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 22 Jul 1994 17:17:25 +0000 (17:17 +0000)
src/pathchk.c

index 76a3401a4083af19edcf4d0dd1672e58321df6d8..7d75a35c7689ea1d35219f2ccd2894154415bd1d 100644 (file)
@@ -55,6 +55,7 @@
 
 #include "version.h"
 #include "system.h"
+#include "safe-stat.h"
 
 #ifdef _POSIX_VERSION
 #include <limits.h>
@@ -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))