emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#15588: closed ([PATCH] cp: correct error message f


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#15588: closed ([PATCH] cp: correct error message for invalid arguments of '--no-preserve')
Date: Fri, 11 Oct 2013 16:13:02 +0000

Your message dated Fri, 11 Oct 2013 17:12:09 +0100
with message-id <address@hidden>
and subject line Re: bug#15588: [PATCH] cp: correct error message for invalid 
arguments of '--no-preserve'
has caused the debbugs.gnu.org bug report #15588,
regarding [PATCH] cp: correct error message for invalid arguments of 
'--no-preserve'
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
15588: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15588
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] cp: correct error message for invalid arguments of '--no-preserve' Date: Fri, 11 Oct 2013 15:07:04 +0200
* 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




--- End Message ---
--- Begin Message --- Subject: Re: bug#15588: [PATCH] cp: correct error message for invalid arguments of '--no-preserve' Date: Fri, 11 Oct 2013 17:12:09 +0100 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2
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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]