Bug 2141

Summary: find -ls and ls -l report different block counts
Product: [Retired] Red Hat Linux Reporter: Richard Troxel <rick>
Component: findutilsAssignee: Preston Brown <pbrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: rick
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-08-27 16:55:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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.