diff options
-rw-r--r-- | lib/rename.c | 4 | ||||
-rw-r--r-- | lib/rmdir.c | 2 |
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)) |