]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Sat, 30 Jul 1994 16:12:44 +0000 (16:12 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 30 Jul 1994 16:12:44 +0000 (16:12 +0000)
src/cp-hash.c

index a0afcfcf3571f1e391d2741bac60f1b71a667ab7..5204d1368235ffa76d066379763311bd8b95c760 100644 (file)
 
    Written by Torbjorn Granlund, Sweden (tege@sics.se). */
 
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+   using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+   (which it would do because it found this file in $srcdir).  */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
 #include <stdio.h>
 #include "cp.h"
+#include "safe-stat.h"
 
 char *hash_insert ();
 char *hash_insert2 ();
@@ -35,7 +47,7 @@ remember_created (path)
 {
   struct stat sb;
 
-  if (stat (path, &sb) < 0)
+  if (SAFE_STAT (path, &sb) < 0)
     {
       error (0, errno, "%s", path);
       return 1;