Package: findutils
Version: 4.4.2-9+b1
Severity: important

Dear Maintainer,

The -size option to find behaves wrongly for the 'M' units. Not sure what is
going on there:

simon@mezzanine:/tmp/test$ dd if=/dev/zero of=fump.bin bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00309158 s, 339 MB/s

simon@mezzanine:/tmp/test$ dd if=/dev/zero of=bla.bin bs=512k count=1
1+0 records in
1+0 records out
524288 bytes (524 kB) copied, 0.00147233 s, 356 MB/s

simon@mezzanine:/tmp/test$ find . -size 1024k
./fump.bin

simon@mezzanine:/tmp/test$ find . -size 1M
.
./fump.bin
./bla.bin

I expect that both find invocations are equivalent and should give the
exact same results. The manpage specifies that 'M' are units
of 1048576 = 1024 * 1024 = 1024k bytes. It is totally unexpeced to me
that this also returns the (smaller) bla.bin file.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages findutils depends on:
ii  libc6  2.19-18

findutils recommends no packages.

Versions of packages findutils suggests:
ii  mlocate  0.26-1

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to