Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 180830

Summary: sys-apps/findutils - find segfaults with invalid number as -uid/-gid parameter
Product: Gentoo Linux Reporter: Dick Marinus <dick>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: findutils-4.3.6-uid-gid-fix.patch

Description Dick Marinus 2007-06-04 09:41:22 UTC
Steps to reproduce:
1. emerge system
2. find -uid hello

(-uid only takes numeric value's)

Result:
Segmentation fault

Expected result:
-uid must take an numeric value (or something like that)

-gid has the same problem.
Comment 1 Togge 2007-06-04 10:53:41 UTC
Created attachment 121125 [details, diff]
findutils-4.3.6-uid-gid-fix.patch

Adds a check to parse_[gu]id() to see if the call to insert_num() returns true or false.

Applies to >=sys-apps/findutils-4.3.4
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2007-06-04 20:55:11 UTC

*** This bug has been marked as a duplicate of bug 166233 ***