bugfindutils - Bugs: bug #63949, find -inum (without argument)...

 
 

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

Submitter:  Thorsten Otto <thotto>
Submitted:  Tue 21 Mar 2023 10:51:37 AM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  berny
Originator Name:  Open/Closed:  Closed
Release:  4.9.0 Fixed Release:  4.10.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 21 Mar 2023 09:08:16 PM UTC, comment #1: 

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>

James Youngman <jay>
Group administrator
Tue 21 Mar 2023 10:51:37 AM UTC, original submission:  

$ find --version
find (GNU findutils) 4.9.0
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)


When running "find -inum" without further arguments, i get
find: invalid argument `-inum' to `-inum'

I would expect "missing argument" or similar.


Thorsten Otto <thotto>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by berny (Updated the item)
  • -email is unavailable- added by jay (Posted a comment)
  • -email is unavailable- added by thotto (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-06-01 berny Open/ClosedOpen Closed
        Fixed ReleaseNone 4.10.0
    2023-03-21 jay Item GroupNone Wrong result
        StatusNone Fixed
        Assigned toNone berny

    Back to the top

    Powered by Savane 3.14-8eb0.
    Corresponding source code