bugfindutils - Bugs: bug #18227, find -ls does not display device...

 
 

bug #18227: find -ls does not display device numbers for device nodes.

Submitter:  Andreas Metzler <ametzler>
Submitted:  Tue 07 Nov 2006 06:26:51 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Open/Closed:  Closed
Release:  4.1.7 Fixed Release:  4.5.11
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 15 May 2011 09:38:41 PM UTC, comment #4: 

It turns out that this difference is caused by the fact that listfile.c checks HAVE_ST_RDEV in order to figure out if it can print the major and minor numbers.   However, the configure script actually defines the preprocessor macro HAVE_STRUCT_STAT_ST_RDEV to indicate this instead (by calling AC_CHECK_MEMBERS([struct stat.st_rdev])).

I've updated the check in listfile.c.

HAVE_ST_RDEV was defined by the obsolete Autoconf macro AC_STRUCT_ST_RDEV.   In other words, this bug was introduced by an Autoconf upgrade which should have been preceded by a change to use

I think this bug was introduced in change 5ad489925af16440017573e20f6f53c7d2cd5358:-

commit 5ad489925af16440017573e20f6f53c7d2cd5358
Author: Kevin Dalley <kevin@seti.org>
Date:   Wed Apr 5 07:26:43 2000 +0000

    * configure.in: add Galition and Estonian languages.
    Miscellaneous other fixes.

It turns out that this difference is caused by the fact that listfile.c checks HAVE_ST_RDEV in order to figure out if it can print the major and minor numbers.   However, the configure script actually defines the preprocessor macro HAVE_STRUCT_STAT_ST_RDEV to indicate this instead (by calling AC_CHECK_MEMBERS([struct stat.st_rdev])).

I've updated the check in listfile.c.

HAVE_ST_RDEV was defined by the obsolete Autoconf macro AC_STRUCT_ST_RDEV.   In other words, this bug was introduced by an Autoconf upgrade which should have been preceded by a change to use

I think this bug was introduced in change 5ad489925af16440017573e20f6f53c7d2cd5358:-

commit 5ad489925af16440017573e20f6f53c7d2cd5358
Author: Kevin Dalley <kevin@seti.org>
Date:   Wed Apr 5 07:26:43 2000 +0000

    * configure.in: add Galition and Estonian languages.
    Miscellaneous other fixes.


Hence this bug probably first affects findutils-4.1.7.





James Youngman <jay>
Group administrator
Wed 07 Apr 2010 11:12:46 PM UTC, comment #3: 

Looks like nobody has a strong contrary opinion.   I'll update the documentation.

James Youngman <jay>
Group administrator
Sun 05 Jul 2009 11:00:18 PM UTC, comment #2: 

If there's no clear mandate from the user base generally, I would say it's better not to change the functionality, but instead change the documentation to describe more accurately what the program does.   Thoughts?

James Youngman <jay>
Group administrator
Sat 09 Jun 2007 05:54:39 PM UTC, comment #1: 

I am (as yet) undecided on whether it's better to fix the documentation here, or enhance the software.

James Youngman <jay>
Group administrator
Tue 07 Nov 2006 06:26:51 PM UTC, original submission:  

This is <http://bugs.debian.org/397435>, it also applies to 4.3.x:

Marc Haber writes:
The docs say that find -ls behaves as ls -dils. This is not true:

$ find /dev/hda -ls
  1629    0 brw-rw----   1 root     disk              Nov  7 12:23 /dev/hda
$ ls -dils /dev/hda
1629 0 brw-rw---- 1 root disk 3, 0 Nov  7 12:23 /dev/hda
$

Find should print the device numbers for device nodes.

Greetings
Marc

Andreas Metzler <ametzler>

 

(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)
  • -email is unavailable- added by ametzler
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2013-02-02 jay Fixed ReleaseNone 4.5.11
        Open/ClosedOpen Closed
    2011-05-15 jay StatusNone Fixed
        Release4.1.20 4.1.7
    2011-05-15 jay Release4.2.28 4.1.20
    2010-04-07 jay StatusNeed Info None
    2009-07-05 jay StatusNone Need Info
        Assigned toNone jay
    2006-11-07 ametzler Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code