1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-19 02:10:57 +02:00

Rename SAFE_STAT to safe_stat.

This commit is contained in:
Jim Meyering
1995-01-27 17:05:11 +00:00
parent 69f39255bc
commit e6e3d524da
2 changed files with 3 additions and 3 deletions

View 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;

View 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))