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

 
 

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

Submitted by:  Andreas Metzler <ametzler>
Submitted on:  Tue 07 Nov 2006 06:26:51 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Open/Closed: Closed
Release: 4.1.7Fixed Release: 4.5.11

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jay (Posted a comment)
  • -unavailable- added by ametzler
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 02 Feb 2013 02:54:34 PM UTCjayFixed ReleaseNone=>4.5.11
      Open/ClosedOpen=>Closed
    Sun 15 May 2011 09:41:00 PM UTCjayStatusNone=>Fixed
      Release4.1.20=>4.1.7
    Sun 15 May 2011 09:38:40 PM UTCjayRelease4.2.28=>4.1.20
    Wed 07 Apr 2010 11:12:46 PM UTCjayStatusNeed Info=>None
    Sun 05 Jul 2009 11:00:18 PM UTCjayStatusNone=>Need Info
      Assigned toNone=>jay
    Tue 07 Nov 2006 06:26:51 PM UTCametzlerCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup