]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(copy): Update one of the calls to eaccess_stat to use 3 arguments. Ugh!
authorJim Meyering <jim@meyering.net>
Mon, 30 Oct 1995 17:53:48 +0000 (17:53 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 30 Oct 1995 17:53:48 +0000 (17:53 +0000)
src/cp.c

index 2e34f7eca5e4cf1b49df3f2f69fa7410d208602e..718d059a89b39723834f470f66084627e9500321 100644 (file)
--- a/src/cp.c
+++ b/src/cp.c
@@ -594,7 +594,7 @@ copy (src_path, dst_path, new_dst, device, ancestors)
              if (S_ISDIR (dst_sb.st_mode))
                {
                  /* Temporarily change mode to allow overwriting. */
-                 if (eaccess_stat (&dst_sb, W_OK | X_OK) != 0)
+                 if (eaccess_stat (&dst_sb, W_OK | X_OK, dst_path) != 0)
                    {
                      if (chmod (dst_path, 0700))
                        {