summaryrefslogtreecommitdiff
path: root/src/cp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-10-30 17:53:48 +0000
committerJim Meyering <jim@meyering.net>1995-10-30 17:53:48 +0000
commitf05befc26c046bb3ba37a8de003a3c38c7711a58 (patch)
treee3187a3d3b01d60347ff577a9dca3a7218756b47 /src/cp.c
parent96e22ecc78dfa35710ae055b9fb913787c52c4d3 (diff)
downloadcoreutils-f05befc26c046bb3ba37a8de003a3c38c7711a58.tar.xz
(copy): Update one of the calls to eaccess_stat to use 3 arguments. Ugh!
Diffstat (limited to 'src/cp.c')
-rw-r--r--src/cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cp.c b/src/cp.c
index 2e34f7eca..718d059a8 100644
--- 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))
{