bug-findutils
[Top][All Lists]
Advanced

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

[bug #63949] find -inum (without argument) print worng error message


From: James Youngman
Subject: [bug #63949] find -inum (without argument) print worng error message
Date: Tue, 21 Mar 2023 17:08:16 -0400 (EDT)

Follow-up Comment #1, bug #63949 (project findutils):

This is already fixed in git, but the change post-dates findutils 4.9.0.

commit 4a7280927285dbcf0ac815aa3aecc65b144e3fa4
Author: Bernhard Voelker <mail@bernhard-voelker.de>
Date:   Wed Jan 4 20:14:01 2023 +0100

    find: fix error diagnostics of options with mandatory, numeric arguments
    
    The error diagnostic for wrong invocations with option that require
    numeric arguments (-inum, -links, -gid, -uid) was wrong and not helpful:
      $ find -gid
      find: invalid argument `-gid' to `-gid'
    
    * find/parser.c (parse_gid): Remove changing back of the ARG_PTR in
    the error case; thus simplify.
    (parse_inum,parse_links,parse_uid): Likewise.
    (get_num): While at it, mention -gid and -uid in the comment as well.
    (insert_num): Also improve the error diagnostic in the case the user
    has provided a non-numeric argument.  Previously, it was just "invalid
    argument".
    * tests/find/opt-numeric-arg.sh: Add test.
    * tests/local.mk: Reference it.
    * NEWS (Bug Fixes): Mention the fix.
    
    Reported by Andreas Schwab <schwab@linux-m68k.org> in
    <https://lists.gnu.org/r/bug-findutils/2023-01/msg00001.html>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63949>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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