Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 2141 - find -ls and ls -l report different block counts
Summary: find -ls and ls -l report different block counts
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: findutils
Version: 5.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Preston Brown
QA Contact:
Depends On:
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:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-08-27 16:55:13 UTC

Attachments (Terms of Use)

Description Richard Troxel 1999-04-12 15:54:58 UTC
% rpm -q fileutils findutils
% 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.