[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Info-mtools] mattrib 4.0.10 - Bug - "usage" instead of resettting t
From: |
Alain Knaff |
Subject: |
Re: [Info-mtools] mattrib 4.0.10 - Bug - "usage" instead of resettting the hidden attribute (-h). |
Date: |
Sat, 29 Aug 2009 19:47:37 +0200 |
User-agent: |
Thunderbird 2.0.0.22 (X11/20090608) |
Arwin Vosselman wrote:
> If '-h' is used with mattrib, the attribute "hidden" is not reset, as it
> should be, but the usage message is shown instead.
>
> The cause seems to be in the lines 199 and 200 in mattrib.c:
>
> (199) case 'h':
> (200) usage(0);
>
> Taking these two lines out solves the problem:
> =======================================================================
> diff -urN mtools-4.0.10.orig/mattrib.c mtools-4.0.10/mattrib.c
> --- mtools-4.0.10.orig/mattrib.c 2009-03-03 07:10:13.000000000 +0100
> +++ mtools-4.0.10/mattrib.c 2009-08-16 13:02:09.291620348 +0200
> @@ -196,8 +196,8 @@
> case 'X':
> concise = 1;
> break;
> - case 'h':
> - usage(0);
> +/* case 'h':
> + usage(0);*/
> case '?':
> usage(1);
> }
> =========================
> Apparently -h is used for two different things (help and reset hidden
> attribute).
>
This is now fixed in 4.0.11
If -h is given without anything else, usage is printed.
If -h is given along with filenames, the hidden flag is removed
Regards,
Alain