1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-06-05 17:26:28 +02:00

(copy_internal): Fix force and interactive tests.

This commit is contained in:
Jim Meyering
2000-05-12 20:40:39 +00:00
parent a5c02a198b
commit fc64ba37d4
+2 -2
View File
@@ -489,9 +489,9 @@ copy_internal (const char *src_path, const char *dst_path,
return 0;
}
if (!S_ISDIR (src_type) && !x->force && x->interactive)
if (!S_ISDIR (src_type) && x->interactive)
{
if (euidaccess (dst_path, W_OK) != 0)
if (euidaccess (dst_path, W_OK) != 0 && x->force)
{
fprintf (stderr,
_("%s: overwrite `%s', overriding mode %04lo? "),