mirror of
https://github.com/jarun/advcpmv.git
synced 2026-02-01 13:17:41 +01:00
Fix broken overwrite prompt
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
diff -aur coreutils-8.32/src/copy.c coreutils-8.32-patched/src/copy.c
|
||||
--- coreutils-8.32/src/copy.c 2020-01-01 19:43:12.000000000 +0530
|
||||
+++ coreutils-8.32-patched/src/copy.c 2020-12-06 22:25:53.076852462 +0530
|
||||
+++ coreutils-8.32-patched/src/copy.c 2021-05-19 20:00:26.470386351 +0530
|
||||
@@ -129,6 +129,72 @@
|
||||
dev_t dev;
|
||||
};
|
||||
@@ -336,9 +336,28 @@ diff -aur coreutils-8.32/src/copy.c coreutils-8.32-patched/src/copy.c
|
||||
}
|
||||
|
||||
preserve_metadata:
|
||||
@@ -1716,15 +1954,15 @@
|
||||
fprintf (stderr,
|
||||
(x->move_mode || x->unlink_dest_before_opening
|
||||
|| x->unlink_dest_after_failed_open)
|
||||
- ? _("%s: replace %s, overriding mode %04lo (%s)? ")
|
||||
- : _("%s: unwritable %s (mode %04lo, %s); try anyway? "),
|
||||
+ ? _("\n\n%s: replace %s, overriding mode %04lo (%s)? ")
|
||||
+ : _("\n\n%s: unwritable %s (mode %04lo, %s); try anyway? "),
|
||||
program_name, quoteaf (dst_name),
|
||||
(unsigned long int) (dst_sb->st_mode & CHMOD_MODE_BITS),
|
||||
&perms[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
- fprintf (stderr, _("%s: overwrite %s? "),
|
||||
+ fprintf (stderr, _("\n\n%s: overwrite %s? "),
|
||||
program_name, quoteaf (dst_name));
|
||||
}
|
||||
|
||||
diff -aur coreutils-8.32/src/copy.h coreutils-8.32-patched/src/copy.h
|
||||
--- coreutils-8.32/src/copy.h 2020-01-01 19:43:12.000000000 +0530
|
||||
+++ coreutils-8.32-patched/src/copy.h 2020-12-06 22:24:03.488405684 +0530
|
||||
+++ coreutils-8.32-patched/src/copy.h 2021-05-19 20:01:58.434794473 +0530
|
||||
@@ -234,6 +234,9 @@
|
||||
Create destination directories as usual. */
|
||||
bool symbolic_link;
|
||||
@@ -367,7 +386,7 @@ diff -aur coreutils-8.32/src/copy.h coreutils-8.32-patched/src/copy.h
|
||||
#endif
|
||||
diff -aur coreutils-8.32/src/cp.c coreutils-8.32-patched/src/cp.c
|
||||
--- coreutils-8.32/src/cp.c 2020-01-01 19:43:12.000000000 +0530
|
||||
+++ coreutils-8.32-patched/src/cp.c 2020-12-06 22:24:03.488405684 +0530
|
||||
+++ coreutils-8.32-patched/src/cp.c 2021-05-19 20:01:58.434794473 +0530
|
||||
@@ -131,6 +131,7 @@
|
||||
{"symbolic-link", no_argument, NULL, 's'},
|
||||
{"target-directory", required_argument, NULL, 't'},
|
||||
@@ -532,7 +551,7 @@ diff -aur coreutils-8.32/src/cp.c coreutils-8.32-patched/src/cp.c
|
||||
break;
|
||||
diff -aur coreutils-8.32/src/mv.c coreutils-8.32-patched/src/mv.c
|
||||
--- coreutils-8.32/src/mv.c 2020-01-01 19:43:12.000000000 +0530
|
||||
+++ coreutils-8.32-patched/src/mv.c 2020-12-06 22:24:03.488405684 +0530
|
||||
+++ coreutils-8.32-patched/src/mv.c 2021-05-19 20:01:58.434794473 +0530
|
||||
@@ -66,6 +66,7 @@
|
||||
{"target-directory", required_argument, NULL, 't'},
|
||||
{"update", no_argument, NULL, 'u'},
|
||||
|
||||
Reference in New Issue
Block a user