1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2026-11-06 20:44:02 +03: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

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? "),