Rename SAFE_STAT to safe_stat.
authorJim Meyering <jim@meyering.net>
Fri, 27 Jan 1995 17:05:11 +0000 (17:05 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 27 Jan 1995 17:05:11 +0000 (17:05 +0000)
lib/isdir.c
lib/mkdir.c
lib/rename.c
lib/rmdir.c

index dbc9bd0..c9549bd 100644 (file)
@@ -41,5 +41,5 @@ isdir (path)
 {
   struct stat stats;
 
-  return SAFE_STAT (path, &stats) == 0 && S_ISDIR (stats.st_mode);
+  return safe_stat (path, &stats) == 0 && S_ISDIR (stats.st_mode);
 }
index 1a5ba2d..07bd83d 100644 (file)
@@ -57,7 +57,7 @@ mkdir (dpath, dmode)
   int cpid, status;
   struct stat statbuf;
 
-  if (SAFE_STAT (dpath, &statbuf) == 0)
+  if (safe_stat (dpath, &statbuf) == 0)
     {
       errno = EEXIST;          /* stat worked, so it already exists.  */
       return -1;
index 3788e90..4759508 100644 (file)
@@ -47,13 +47,13 @@ rename (from, to)
   struct stat from_stats, to_stats;
   int pid, status;
 
-  if (SAFE_STAT (from, &from_stats))
+  if (safe_stat (from, &from_stats))
     return -1;
 
   /* Be careful not to unlink `from' if it happens to be equal to `to' or
      (on filesystems that silently truncate filenames after 14 characters)
      if `from' and `to' share the significant characters. */
-  if (SAFE_STAT (to, &to_stats))
+  if (safe_stat (to, &to_stats))
     {
       if (errno != ENOENT)
         return -1;
index 477227b..23c2873 100644 (file)
@@ -49,7 +49,7 @@ rmdir (dpath)
   int cpid, status;
   struct stat statbuf;
 
-  if (SAFE_STAT (dpath, &statbuf) != 0)
+  if (safe_stat (dpath, &statbuf) != 0)
     return -1;                 /* errno already set */
 
   if (!S_ISDIR (statbuf.st_mode))