From f05befc26c046bb3ba37a8de003a3c38c7711a58 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 30 Oct 1995 17:53:48 +0000 Subject: (copy): Update one of the calls to eaccess_stat to use 3 arguments. Ugh! --- src/cp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cp.c') 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)) { -- cgit v1.2.3-70-g09d2