URL:
  <http://savannah.gnu.org/bugs/?23885>

                 Summary: find does not treat duplicate group names
consistently
                 Project: findutils
            Submitted by: None
            Submitted on: Friday 18/07/08 at 21:55 UTC
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.27
           Fixed Release: None

    _______________________________________________________

Details:

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




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?23885>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



Reply via email to