Debian Bug report logs - #400936
find(1): typo in description of %b printf specifier

version graph

Package: findutils; Maintainer for findutils is Andreas Metzler <ametzler@debian.org>; Source for findutils is src:findutils (PTS, buildd, popcon).

Reported by: mike castleman <m@mlcastle.net>

Date: Wed, 29 Nov 2006 18:34:04 UTC

Severity: minor

Tags: patch

Found in version findutils/4.2.28-1

Fixed in versions findutils/4.3.5-1, findutils/4.3.8-1, findutils/4.2.32-1

Done: Andreas Metzler <ametzler@debian.org>

Bug is archived. No further changes may be made.

Forwarded to http://savannah.gnu.org/bugs/?19596

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Andreas Metzler <ametzler@debian.org>:
Bug#400936; Package findutils. (full text, mbox, link).


Acknowledgement sent to mike castleman <m@mlcastle.net>:
New Bug report received and forwarded. Copy sent to Andreas Metzler <ametzler@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: mike castleman <m@mlcastle.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: find(1): typo in description of %b printf specifier
Date: Wed, 29 Nov 2006 13:12:46 -0500
[Message part 1 (text/plain, inline)]
Package: findutils
Version: 4.2.28-1
Severity: minor
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In the find(1) manpage, the description of the %b format specifier in 
the -printf command currently reads:

              %b     The amount of disk space used for this file  in  512-byte
                     blocks. Since disk space is allocated in multiples of the
                     filesystem  block  size  this  is  usually  greater  than
                     %s/1024,  but  it  can  also  be smaller if the file is a
                     sparse file.

While it is technically true that %b is usually greater than %s/1024, it 
is probably more useful to say here that it is usually greater than 
%s/512.

A patch making this change is attached.

- -- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages findutils depends on:
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries

findutils recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFbc2erbXc6n5AevkRAqtwAKCRGhZx4V/KFgN0S84hPlWjKPBslACff07/
1wCZGZRXHfd/R/lF942vhWo=
=pnMl
-----END PGP SIGNATURE-----
[find.1.patch (text/plain, attachment)]

Noted your statement that Bug has been forwarded to http://savannah.gnu.org/bugs/?19596. Request was from Andreas Metzler <ametzler@debian.org> to control@bugs.debian.org. (Sun, 15 Apr 2007 16:45:06 GMT) (full text, mbox, link).


Message sent on to mike castleman <m@mlcastle.net>:
Bug#400936. (full text, mbox, link).


Message #10 received at 400936-submitter@bugs.debian.org (full text, mbox, reply):

From: Andreas Metzler <INVALID.NOREPLY@gnu.org>
To: Andreas Metzler <gnu@downhill.at.eu.org>, 400936-submitter@bugs.debian.org, bug-findutils@gnu.org
Subject: [bug #19596] Typo in docs: %b greater than %s/512
Date: Sun, 15 Apr 2007 16:42:06 +0000
URL:
  <http://savannah.gnu.org/bugs/?19596>

                 Summary: Typo in docs: %b greater than %s/512
                 Project: findutils
            Submitted by: ametzler
            Submitted on: Sonntag 15.04.2007 um 18:42
                Category: documentation
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Mike Castleman
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.30
           Fixed Release: None

    _______________________________________________________

Details:

This is http://bugs.debian.org/400936 reported by Mike Castleman:
-----------------
In the find(1) manpage, the description of the %b format specifier in the
-printf command currently reads:

              %b     The amount of disk space used for this file in 
512-byte
                     blocks. Since disk space is allocated in multiples of
the
                     filesystem  block  size  this  is  usually greater 
than
                     %s/1024,  but  it  can  also  be smaller if the file is
a
                     sparse file.

While it is technically true that %b is usually greater than %s/1024, it is
probably more useful to say here that it is usually greater than %s/512.
[...]
------------------------------------

This applies to both 4.2.30 and CVS head. Trivial patch against manpage and
texi attached.
cu andreas



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sonntag 15.04.2007 um 18:42  Name: bug400936.diff  Size: 1kB   By:
ametzler
bugfix.
<http://savannah.gnu.org/bugs/download.php?file_id=12486>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19596>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




Message sent on to mike castleman <m@mlcastle.net>:
Bug#400936. (full text, mbox, link).


Message #13 received at 400936-submitter@bugs.debian.org (full text, mbox, reply):

From: James Youngman <INVALID.NOREPLY@gnu.org>
To: 400936-submitter@bugs.debian.org, James Youngman <jay@gnu.org>, bug-findutils@gnu.org
Subject: [bug #19596] Typo in docs: %b greater than %s/512
Date: Sun, 15 Apr 2007 19:05:07 +0000
Update of bug #19596 (project findutils):

                  Status:                    None => Fixed                  

    _______________________________________________________

Follow-up Comment #1:

Fixed in 4.3.x and 4.2.x.  Thanks.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19596>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




Message sent on to mike castleman <m@mlcastle.net>:
Bug#400936. (full text, mbox, link).


Message #16 received at 400936-submitter@bugs.debian.org (full text, mbox, reply):

From: James Youngman <INVALID.NOREPLY@gnu.org>
To: James Youngman <jay@gnu.org>, 400936-submitter@bugs.debian.org, bug-findutils@gnu.org
Subject: [bug #19596] Typo in docs: %b greater than %s/512
Date: Sun, 15 Apr 2007 19:40:32 +0000
Update of bug #19596 (project findutils):

             Assigned to:                    None => jay                    
             Open/Closed:                    Open => Closed                 
           Fixed Release:                    None => 4.3.3                  


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19596>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




Reply sent to Andreas Metzler <ametzler@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to mike castleman <m@mlcastle.net>:
Bug acknowledged by developer. (full text, mbox, link).


Message #21 received at 400936-close@bugs.debian.org (full text, mbox, reply):

From: Andreas Metzler <ametzler@debian.org>
To: 400936-close@bugs.debian.org
Subject: Bug#400936: fixed in findutils 4.3.5-1
Date: Sun, 13 May 2007 17:47:03 +0000
Source: findutils
Source-Version: 4.3.5-1

We believe that the bug you reported is fixed in the latest version of
findutils, which is due to be installed in the Debian FTP archive:

findutils_4.3.5-1.diff.gz
  to pool/main/f/findutils/findutils_4.3.5-1.diff.gz
findutils_4.3.5-1.dsc
  to pool/main/f/findutils/findutils_4.3.5-1.dsc
findutils_4.3.5-1_i386.deb
  to pool/main/f/findutils/findutils_4.3.5-1_i386.deb
findutils_4.3.5.orig.tar.gz
  to pool/main/f/findutils/findutils_4.3.5.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 400936@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Metzler <ametzler@debian.org> (supplier of updated findutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 13 May 2007 14:40:44 +0200
Source: findutils
Binary: findutils
Architecture: source i386
Version: 4.3.5-1
Distribution: experimental
Urgency: low
Maintainer: Andreas Metzler <ametzler@debian.org>
Changed-By: Andreas Metzler <ametzler@debian.org>
Description: 
 findutils  - utilities for finding files--find, xargs, and locate
Closes: 21084 291419 354384 370057 400936 403823 412459 420190
Changes: 
 findutils (4.3.5-1) experimental; urgency=low
 .
   * New upstream version.
     - Better error message if the second operand of a binary operator is
       missing. (Closes: #403823)
     - If locatedb is old show actual age in warning mesage instead of just
       saying "more than 8 days old". (Closes: #354384)
     - Do not show warnings about argument ordering if -nowarn is specified.
       (Closes: #370057)
     - Correct docs for %b printf specifier. (Closes: #400936)
     - [-version] instead of [--version] in locate --help. (Closes: #412459)
     - make clean does not delete regexprops.texi if cross-building.
       (Closes: #420190)
     - Different error message on 'find ""'. (Closes: #21084)
     - Support for *BSDs -newerXY tests allows to find files with a date in the
       future without generating a temporary file. "find -newermt 2007-07-07"
       (Closes: #291419)
   * Undo workaround for savannah #19550, since it is a glibc bug.
Files: 
 3888ad33fac7e8618724af7181a7ae21 660 utils required findutils_4.3.5-1.dsc
 52138c6834208506a5dd70c9701f90e8 1726358 utils required findutils_4.3.5.orig.tar.gz
 6c91c88107b6fd172b449ad79b05c4c8 14695 utils required findutils_4.3.5-1.diff.gz
 7b081f5a02d3dccd3e5e6dc5a54cb94b 577666 utils required findutils_4.3.5-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGR0p6HTOcZYuNdmMRAmCAAJ4zvTdwLFI+V1iR8jIiEWCGSGqaewCeLPYa
QCRgyNfyRSdMshIVZE2FFd0=
=ItfQ
-----END PGP SIGNATURE-----




Message sent on to mike castleman <m@mlcastle.net>:
Bug#400936. (full text, mbox, link).


Message #24 received at 400936-submitter@bugs.debian.org (full text, mbox, reply):

From: Andreas Metzler <INVALID.NOREPLY@gnu.org>
To: James Youngman <jay@gnu.org>, Andreas Metzler <gnu@downhill.at.eu.org>, 400936-submitter@bugs.debian.org, bug-findutils@gnu.org
Subject: [bug #19596] Typo in docs: %b greater than %s/512
Date: Sat, 02 Jun 2007 08:14:36 +0000
Follow-up Comment #2, bug #19596 (project findutils):

The applied bugfix in both 4.2.31 and 4.3.6 is incomplete, find.1 has been
fixed but info manual has not.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19596>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




Message sent on to mike castleman <m@mlcastle.net>:
Bug#400936. (full text, mbox, link).


Message #27 received at 400936-submitter@bugs.debian.org (full text, mbox, reply):

From: James Youngman <INVALID.NOREPLY@gnu.org>
To: James Youngman <jay@gnu.org>, Andreas Metzler <gnu@downhill.at.eu.org>, 400936-submitter@bugs.debian.org, bug-findutils@gnu.org
Subject: [bug #19596] Typo in docs: %b greater than %s/512
Date: Sat, 02 Jun 2007 08:41:12 +0000
Update of bug #19596 (project findutils):

                  Status:                   Fixed => None                   
             Open/Closed:                  Closed => Open                   

    _______________________________________________________

Follow-up Comment #3:

Reopened - find.1 still needs to be fixed.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19596>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




Message sent on to mike castleman <m@mlcastle.net>:
Bug#400936. (full text, mbox, link).


Message #30 received at 400936-submitter@bugs.debian.org (full text, mbox, reply):

From: James Youngman <INVALID.NOREPLY@gnu.org>
To: James Youngman <jay@gnu.org>, Andreas Metzler <gnu@downhill.at.eu.org>, 400936-submitter@bugs.debian.org, bug-findutils@gnu.org
Subject: [bug #19596] Typo in docs: %b greater than %s/512
Date: Sat, 09 Jun 2007 18:46:25 +0000
Update of bug #19596 (project findutils):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 
           Fixed Release:                   4.3.3 => 4.3.7                  


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19596>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




Reply sent to Andreas Metzler <ametzler@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to mike castleman <m@mlcastle.net>:
Bug acknowledged by developer. (full text, mbox, link).


Message #35 received at 400936-close@bugs.debian.org (full text, mbox, reply):

From: Andreas Metzler <ametzler@debian.org>
To: 400936-close@bugs.debian.org
Subject: Bug#400936: fixed in findutils 4.3.8-1
Date: Sat, 23 Jun 2007 09:02:03 +0000
Source: findutils
Source-Version: 4.3.8-1

We believe that the bug you reported is fixed in the latest version of
findutils, which is due to be installed in the Debian FTP archive:

findutils_4.3.8-1.diff.gz
  to pool/main/f/findutils/findutils_4.3.8-1.diff.gz
findutils_4.3.8-1.dsc
  to pool/main/f/findutils/findutils_4.3.8-1.dsc
findutils_4.3.8-1_i386.deb
  to pool/main/f/findutils/findutils_4.3.8-1_i386.deb
findutils_4.3.8.orig.tar.gz
  to pool/main/f/findutils/findutils_4.3.8.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 400936@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Metzler <ametzler@debian.org> (supplier of updated findutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 23 Jun 2007 09:05:25 +0200
Source: findutils
Binary: findutils
Architecture: source i386
Version: 4.3.8-1
Distribution: experimental
Urgency: low
Maintainer: Andreas Metzler <ametzler@debian.org>
Changed-By: Andreas Metzler <ametzler@debian.org>
Description: 
 findutils  - utilities for finding files--find, xargs, and locate
Closes: 400936 426505 426862
Changes: 
 findutils (4.3.8-1) experimental; urgency=low
 .
   * New upstream version 4.3.8.
     - Fixes locate heap buffer overflow when using databases in old format.
       (CVE-2007-2452) Closes: #426862
     - Fixes savannah bug #20005: Tests -mtime -n and -mtime +n incorrectly
       treated like -mtime n. Closes: #426505
     - Correct docs for %b printf specifier. (Closes: #400936)
   * Pulled from CVS: 01_sv-bug-20139.dpatch:
     find -[acm]time -N (wrongly) includes files from N days ago, as well as
     (correctly) from less than N days ago.
Files: 
 7418440bf585ca1a81608b5e02a9a96a 660 utils required findutils_4.3.8-1.dsc
 b5e4f88b7b5502460c62c04f94df613d 1808049 utils required findutils_4.3.8.orig.tar.gz
 c6f9eba8827ab672be030c54f2f87e97 15321 utils required findutils_4.3.8-1.diff.gz
 e4628ee6738ab0b8aa72f62357071fdb 607064 utils required findutils_4.3.8-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGfNK4HTOcZYuNdmMRAtIFAJ4sPgqEvYB7z0Y79v/dfSuhQflZogCgqWhK
IUiufQ5/Su4LPnbY12aYITc=
=rqRs
-----END PGP SIGNATURE-----




Reply sent to Andreas Metzler <ametzler@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to mike castleman <m@mlcastle.net>:
Bug acknowledged by developer. (full text, mbox, link).


Message #40 received at 400936-close@bugs.debian.org (full text, mbox, reply):

From: Andreas Metzler <ametzler@debian.org>
To: 400936-close@bugs.debian.org
Subject: Bug#400936: fixed in findutils 4.2.32-1
Date: Sun, 27 Jan 2008 12:17:02 +0000
Source: findutils
Source-Version: 4.2.32-1

We believe that the bug you reported is fixed in the latest version of
findutils, which is due to be installed in the Debian FTP archive:

findutils_4.2.32-1.diff.gz
  to pool/main/f/findutils/findutils_4.2.32-1.diff.gz
findutils_4.2.32-1.dsc
  to pool/main/f/findutils/findutils_4.2.32-1.dsc
findutils_4.2.32-1_i386.deb
  to pool/main/f/findutils/findutils_4.2.32-1_i386.deb
findutils_4.2.32.orig.tar.gz
  to pool/main/f/findutils/findutils_4.2.32.orig.tar.gz
locate_4.2.32-1_i386.deb
  to pool/main/f/findutils/locate_4.2.32-1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 400936@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Metzler <ametzler@debian.org> (supplier of updated findutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 27 Jan 2008 10:18:07 +0100
Source: findutils
Binary: findutils locate
Architecture: source i386
Version: 4.2.32-1
Distribution: unstable
Urgency: low
Maintainer: Andreas Metzler <ametzler@debian.org>
Changed-By: Andreas Metzler <ametzler@debian.org>
Description: 
 findutils  - utilities for finding files--find, xargs
 locate     - maintain and query an index of a directory tree
Closes: 400936 459570 462224
Changes: 
 findutils (4.2.32-1) unstable; urgency=low
 .
   * New upstream version.
     - Fixes memory-corruption caused by off-by-one error in lib/listfile.c.
       Closes: #462224
     - Correct docs for %b printf specifier in info manual, too.
       (Closes: #400936)
    * License now GPLv3+, update debian/copyright.
    * Try to preserve user changes of updatedb.conf on upgrading from findutils
      versions with included locate: If updatedb.conf is user modified and
      /etc/updatedb.findutils.cron.local does not yet exist, generate the
      latter from the former. Closes: #459570
    * Point watch file to ftp.gnu.org instead of alpha.
Files: 
 c0aebd9927cbe02f3fa6fcd688c238e6 671 utils required findutils_4.2.32-1.dsc
 aaa6beeb41a6f04963dff58f24a55b96 1431566 utils required findutils_4.2.32.orig.tar.gz
 1c084971113c92be7a1933b59ad97b2d 18336 utils required findutils_4.2.32-1.diff.gz
 7ed95a4314a35248b4a758911f7a83a1 343366 utils required findutils_4.2.32-1_i386.deb
 6ab500c4650400bff5ef64c86358011a 112490 utils optional locate_4.2.32-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHnHNbHTOcZYuNdmMRAuCCAJ48KNGPmPmO3S6WFkfVJI6j4JRd/ACfcV6l
zKV+yihlLDnwK92RCW/PaJY=
=QOY8
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 27 Apr 2009 07:30:56 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Dec 23 16:22:22 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.