Bug 2141 - find -ls and ls -l report different block counts
Summary: find -ls and ls -l report different block counts
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: findutils
Version: 5.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Preston Brown
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-04-12 15:54 UTC by Richard Troxel
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 1999-08-27 16:55:13 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard Troxel 1999-04-12 15:54:58 UTC
% rpm -q fileutils findutils
fileutils-3.16-6
findutils-4.1-20
% ls -ils /usr/bin/suidperl
 252446  438 -rws--x--x   2 root     root       444460 Oct
20  1997 /usr/bin/suidperl
% find /usr/bin -name suidperl -ls
252446  435 -rws--x--x   2 root     root       444460 Oct
20  1997 /usr/bin/suidperl

Which block count is correct?  [Along with the inconsistent
spacing ahead of the inode #, this really complicates my
COPS maintenance.]

Comment 1 Jay Turner 1999-05-24 14:27:59 UTC
Get same discrepancies with fileutils-4.0-1 and findutils-4.1-31

Comment 2 Preston Brown 1999-08-27 16:54:59 UTC
the 'ls' block count is incorrect.  Examination of findutils has shown
that the algorithm it uses for determining block count is wrong.  This
will be fixed in our next release.


Note You need to log in before you can comment on or make changes to this bug.