bugfindutils - Bugs: bug #25144, Misleading error message when...

 
 

bug #25144: Misleading error message when argument to -user is an unknown user or is missing

Submitter:  None
Submitted:  Sun 21 Dec 2008 04:23:48 PM UTC
 
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Tom Broadhurst Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.4.0
Fixed Release:  4.5.4
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Tue 23 Dec 2008 11:05:40 AM UTC, comment #5: 

I've checked the fix in, it will be included in the next 4.5.x release.

James Youngman <jay>
Project Administrator
Mon 22 Dec 2008 10:30:08 AM UTC, comment #4: 

I am unable to reproduce the other problem you mention, nonexistence of the "santaclaus" user.  Perhaps your user database is misconfigured - you should definitely fix that in the next couple of days.

James Youngman <jay>
Project Administrator
Sun 21 Dec 2008 11:58:51 PM UTC, comment #3: 

James,

Good job.

This definitely makes the command more "user" friendly.

Thanks for the amazingly quick response.

Tom

Anonymous
Sun 21 Dec 2008 09:16:19 PM UTC, comment #2: 

I believe the attached patch should fix your problem; please let me know if you agree.

(file #17109)

James Youngman <jay>
Project Administrator
Sun 21 Dec 2008 05:49:50 PM UTC, comment #1: 

To all interrested persons,

I finally found the reason for the error.

The "user" doesn't exist!

I'd like to change this bug report to a Feature Request.

The reply to 'find / -user santaclaus'

should be 'find: user unknown' or something similar.

Anonymous
Sun 21 Dec 2008 04:23:48 PM UTC, original submission:  

The find command doesn't like the users adm, news or gopher.
This is a Fedora 10 system w/kernel 2.6.27.7-134.fc10.i686

The command and it's return:

find / -user adm -print
find: invalid argument `-print' to `-user' 

it thinks -print is an argument to -user and doesn't even see adm.

and without the -print option:

find / -user adm
find: missing argument to `-user' 

it still doesn't see adm.

Using " or ' around the user name doesn't help.
The same find command works with all of the other "users" i've tried.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jay (Updated the item)
  • -email is unavailable- added by None (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-07-06 jay Open/ClosedOpen Closed
    2009-07-06 jay Fixed ReleaseNone 4.5.4
    2008-12-23 jay StatusReady For Test Fixed
    2008-12-21 jay Attached File- Added 0001-Fix-misleading-erorr-message-when-argument-to-find.patch, #17109
        StatusNone Ready For Test
        Assigned toNone jay
        Summaryinvalid argument Misleading error message when argument to -user is an unknown user or is missing

    Back to the top


    Powered by Savane 3.9