diff options
Diffstat (limited to 'toys')
-rw-r--r-- | toys/posix/cp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/cp.c b/toys/posix/cp.c index d5e92f20..5a55f40b 100644 --- a/toys/posix/cp.c +++ b/toys/posix/cp.c @@ -382,7 +382,7 @@ void cp_main(void) { fprintf(stderr, "%s: overwrite '%s'", toys.which->name, TT.destname); if (!yesno("", 1)) rc = 0; - else unlink(src); + else unlink(TT.destname); } } |