summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-01-27 17:05:11 +0000
committerJim Meyering <jim@meyering.net>1995-01-27 17:05:11 +0000
commite6e3d524da7cc81ef1f423f72da99b8d65de7b28 (patch)
tree86786bc5439a5c447b9d744e2b19e6810ae589fa /lib
parent69f39255bc7f02c65e5f7ff0e6c2788430c47e9c (diff)
downloadcoreutils-e6e3d524da7cc81ef1f423f72da99b8d65de7b28.tar.xz
Rename SAFE_STAT to safe_stat.
Diffstat (limited to 'lib')
-rw-r--r--lib/rename.c4
-rw-r--r--lib/rmdir.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rename.c b/lib/rename.c
index 3788e900e..4759508b3 100644
--- a/lib/rename.c
+++ b/lib/rename.c
@@ -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;
diff --git a/lib/rmdir.c b/lib/rmdir.c
index 477227ba9..23c2873c3 100644
--- a/lib/rmdir.c
+++ b/lib/rmdir.c
@@ -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))