bug-parted
[Top][All Lists]
Advanced

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

Re: [PATCH] Abort on unrecognized options.


From: Otavio Salvador
Subject: Re: [PATCH] Abort on unrecognized options.
Date: Thu, 05 Apr 2007 06:57:25 -0300
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

address@hidden writes:

> From: Benno Schulenberg <address@hidden>
>
> ---
>  parted/parted.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/parted/parted.c b/parted/parted.c
> index 4107ae0..3e1431a 100644
> --- a/parted/parted.c
> +++ b/parted/parted.c
> @@ -2274,6 +2274,7 @@ while (1)
>                  case 'm': opt_machine_mode = 1; break;
>                  case 's': opt_script_mode = 1; break;
>                  case 'v': _version (); break;
> +                case '?': return 0;
>          }
>  }

Please use 

default:
  ...

and give a try. If it does work, please provide another patch.

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: address@hidden      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."




reply via email to

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