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:
@@ -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;
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user