bugfindutils - Bugs: bug #23885, find does not treat duplicate...

 
 

bug #23885: find does not treat duplicate group names consistently

Submitter:  None
Submitted:  Fri 18 Jul 2008 09:55:00 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Wont Fix
Privacy:  Public Assigned to:  jay
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.2.27
Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 17 Jan 2009 07:25:29 PM UTC, comment #3: 

Nobody has responded on four months.   Therefore I'm going ahead and closing the bug.

James Youngman <jay>
Group administrator
Sun 31 Aug 2008 12:56:59 AM UTC, comment #2: 

Now is the time to disagree, because if nobody objects I propose to close this bug (probably as "Won't fix") without changing the code...

James Youngman <jay>
Group administrator
Sat 19 Jul 2008 03:14:13 PM UTC, comment #1: 

It's not clear to me that the convenience of supporting such arguably misconfigured systems could at all justify the performance impact of calling getgrgid() for every visited file with a previously-unseen gid.

These systems will in any case have other usability problems.   One example would be inconsistency between the output of "groups" and the actual ability to access files which would at first and second glance appear to be group-readable.


James Youngman <jay>
Group administrator
Fri 18 Jul 2008 09:55:00 PM UTC, original submission:  

Suppose there exists a local group (in /etc/group) "users" with gid 100 and an NIS group of the same name but gid 200. Suppose that /etc/nsswitch.conf has

group: files nis

Then command #1 below will show files with either gid 100 or gid 200 as having group "users", but command #2 will show only those files with gid 100 (e.g. none, if they all have gid 200):

#1  find . -ls
#2  find . -group users

The problem may be more general; it may affect duplicate names wherever they occur and affect usernames as well as groups. There may be a similar problem for duplicate ids with different names.

The problem could be addressed by building a complete map of ids vs. names, or at least flagged by doing reverse-lookups (e.g. both getgrnam() and getgrgid()).

Anonymous

 

(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 jay (Posted a comment)
  •  

    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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-01-17 jay StatusNeed Info Wont Fix
        Assigned toNone jay
        Open/ClosedOpen Closed
    2008-08-31 jay StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code