[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #23885] find does not treat duplicate group names consistently
From: |
anonymous |
Subject: |
[bug #23885] find does not treat duplicate group names consistently |
Date: |
Fri, 18 Jul 2008 21:55:01 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.8.1.16) Gecko/20080702 Firefox/2.0.0.16 |
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/
- [bug #23885] find does not treat duplicate group names consistently,
anonymous <=