From 36a504f60530d1464dd03e12b8a37bd520b6e0aa Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 10 Dec 1994 05:41:52 +0000 Subject: (copy, make_path_private): Use strr?chr instead of r?index. --- 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 a1962f722..462ead205 100644 --- a/src/cp.c +++ b/src/cp.c @@ -690,8 +690,8 @@ copy (src_path, dst_path, new_dst, device, ancestors) else if (flag_symbolic_link) { if (*src_path == '/' - || (!strncmp (dst_path, "./", 2) && index (dst_path + 2, '/') == 0) - || index (dst_path, '/') == 0) + || (!strncmp (dst_path, "./", 2) && strchr (dst_path + 2, '/') == 0) + || strchr (dst_path, '/') == 0) { if (symlink (src_path, dst_path)) { @@ -895,7 +895,7 @@ make_path_private (const_dirpath, src_offset, mode, verbose_fmt_string, slash = src; while (*slash == '/') slash++; - while ((slash = index (slash, '/'))) + while ((slash = strchr (slash, '/'))) { /* Add this directory to the list of directories whose modes need fixing later. */ -- cgit v1.2.3-70-g09d2