From 69f39255bc7f02c65e5f7ff0e6c2788430c47e9c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 27 Jan 1995 17:03:21 +0000 Subject: Rename SAFE_STAT and SAFE_LSTAT to lower case names. --- src/cp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cp.c') 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; -- cgit v1.2.3-70-g09d2