GNU bug report logs -
#15588
[PATCH] cp: correct error message for invalid arguments of '--no-preserve'
Previous Next
Reported by: ovasik <at> redhat.com
Date: Fri, 11 Oct 2013 13:08:01 UTC
Severity: normal
Tags: patch
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15588 in the body.
You can then email your comments to 15588 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#15588
; Package
coreutils
.
(Fri, 11 Oct 2013 13:08:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
ovasik <at> redhat.com
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Fri, 11 Oct 2013 13:08:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* src/cp.c (decode_preserve_arg) :
Correct error message for invalid arguments of '--no-preserve'.
Reported by M.Vadkerti in rhbz #1018206.
---
src/cp.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/cp.c b/src/cp.c
index e235b32..7bc8630 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -854,7 +854,8 @@ decode_preserve_arg (char const *arg, struct
cp_options *x, bool on_off)
*comma++ = 0;
/* process S. */
- val = XARGMATCH ("--preserve", s, preserve_args, preserve_vals);
+ val = XARGMATCH (on_off ? "--preserve" : "--no-preserve",
+ s, preserve_args, preserve_vals);
switch (val)
{
case PRESERVE_MODE:
--
1.7.1
Reply sent
to
Pádraig Brady <P <at> draigBrady.com>
:
You have taken responsibility.
(Fri, 11 Oct 2013 16:13:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
ovasik <at> redhat.com
:
bug acknowledged by developer.
(Fri, 11 Oct 2013 16:13:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 15588-done <at> debbugs.gnu.org (full text, mbox):
On 10/11/2013 02:07 PM, Ondrej Vasik wrote:
> * src/cp.c (decode_preserve_arg) :
> Correct error message for invalid arguments of '--no-preserve'.
> Reported by M.Vadkerti in rhbz #1018206.
> ---
> src/cp.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/src/cp.c b/src/cp.c
> index e235b32..7bc8630 100644
> --- a/src/cp.c
> +++ b/src/cp.c
> @@ -854,7 +854,8 @@ decode_preserve_arg (char const *arg, struct
> cp_options *x, bool on_off)
> *comma++ = 0;
>
> /* process S. */
> - val = XARGMATCH ("--preserve", s, preserve_args, preserve_vals);
> + val = XARGMATCH (on_off ? "--preserve" : "--no-preserve",
> + s, preserve_args, preserve_vals);
> switch (val)
> {
> case PRESERVE_MODE:
>
Pushed.
thanks!
Pádraig.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 09 Nov 2013 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 187 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.