summaryrefslogtreecommitdiff
path: root/src/cp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-01-27 17:03:21 +0000
committerJim Meyering <jim@meyering.net>1995-01-27 17:03:21 +0000
commit69f39255bc7f02c65e5f7ff0e6c2788430c47e9c (patch)
treeee636591236912ecd163f75a7fc906f78bbceb87 /src/cp.c
parentb4cde80810566bdfe0663dbef2a5b671fe58240f (diff)
downloadcoreutils-69f39255bc7f02c65e5f7ff0e6c2788430c47e9c.tar.xz
Rename SAFE_STAT and SAFE_LSTAT to lower case names.
Diffstat (limited to 'src/cp.c')
-rw-r--r--src/cp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cp.c b/src/cp.c
index 462ead205..177a2d38b 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -320,7 +320,7 @@ do_copy (argc, argv)
dest = argv[argc - 1];
- if (SAFE_LSTAT (dest, &sb))
+ if (safe_lstat (dest, &sb))
{
if (errno != ENOENT)
{
@@ -337,7 +337,7 @@ do_copy (argc, argv)
/* If `dest' is not a symlink to a nonexistent file, use
the results of stat instead of lstat, so we can copy files
into symlinks to directories. */
- if (SAFE_STAT (dest, &sbx) == 0)
+ if (safe_stat (dest, &sbx) == 0)
sb = sbx;
}
@@ -429,7 +429,7 @@ do_copy (argc, argv)
`cp source dest/' to `cp source dest/basename(source)'. */
if (dest[strlen (dest) - 1] == '/'
- && SAFE_LSTAT (source, &source_stats) == 0
+ && safe_lstat (source, &source_stats) == 0
&& !S_ISDIR (source_stats.st_mode))
{
char *source_base;