info-mtools
[Top][All Lists]
Advanced

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

[Info-mtools] mattrib 4.0.10 - Bug - "usage" instead of resettting the h


From: Arwin Vosselman
Subject: [Info-mtools] mattrib 4.0.10 - Bug - "usage" instead of resettting the hidden attribute (-h).
Date: Sun, 16 Aug 2009 15:55:20 +0200

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).

-- 
Kind regards,
Arwin.




reply via email to

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