Your message dated Fri, 20 Dec 2024 08:35:05 +0000
with message-id <[email protected]>
and subject line Bug#857023: fixed in durep 0.9-4
has caused the Debian Bug report #857023,
regarding durep -hs 1G does not work due to bug in processSizeOption
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
857023: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857023
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: durep
Version: 0.9-3
Severity: normal
Tags: patch upstream
Dear Maintainer,
"durep -hs 1G" does not work as expected, though the documentation says
it should:
dev2.iserv.eu ~ # durep --help | grep hide-size
-hs, --hide-size=N[bkmg] do not display entries using N Bytes/Kb/Mb/Gb
For example in this folder, durep -hs 1G will list both bigfile (as expected)
but also smallfile:
dev2.iserv.eu ~/test # ll
total 1.1G
-rw-r--r-- 1 root root 1.0G Mar 7 10:46 bigfile
-rw-r--r-- 1 root root 1.0M Mar 7 10:46 smallfile
dev2.iserv.eu ~/test # durep -hs 1G .
[ /var/lib/iserv/remote-support/iserv-martin.von.wittich/test 1.0G (2
files, 0 dirs) ]
1.0G [############################# ] 99.90% bigfile
1.0M [ ] 0.10% smallfile
The cause is a bug in the processSizeOption function in the durep code. The
code to handle gigabyte sizes is there, but it is never reached:
if(defined $temp) {
if($temp =~ m/^[kK]/) {
return $size * 1024;
}
elsif ($temp =~ m/^[mM]/) {
return $size * 1048576;
}
elsif ($temp =~ m/^[mM]/) {
return $size * 1048576 * 1024;
}
return $size;
}
I've attached a patch that fixes this. The fixed durep behaves as expected:
dev2.iserv.eu ~/test # ~/durep.fixed -hs 1G .
[ /var/lib/iserv/remote-support/iserv-martin.von.wittich/test 1.0G (2
files, 0 dirs) ]
1.0G [############################# ] 99.90% bigfile
-- System Information:
Debian Release: 8.7
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages durep depends on:
ii debconf [debconf-2.0] 1.5.56
ii perl 5.20.2-3+deb8u6
Versions of packages durep recommends:
ii libmldbm-perl 2.05-1
durep suggests no packages.
-- debconf information:
durep/makereports: false
durep/filesystems: .
* durep/httpfileroot:
--- /usr/bin/durep 2014-08-02 11:19:05.000000000 +0200
+++ durep.fixed 2017-03-07 10:43:16.631568385 +0100
@@ -375,7 +375,7 @@
elsif ($temp =~ m/^[mM]/) {
return $size * 1048576;
}
- elsif ($temp =~ m/^[mM]/) {
+ elsif ($temp =~ m/^[gG]/) {
return $size * 1048576 * 1024;
}
return $size;
--- End Message ---
--- Begin Message ---
Source: durep
Source-Version: 0.9-4
Done: Andreas Tille <[email protected]>
We believe that the bug you reported is fixed in the latest version of
durep, which is due to be installed in the Debian FTP archive.
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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Tille <[email protected]> (supplier of updated durep 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 20 Dec 2024 08:47:48 +0100
Source: durep
Architecture: source
Version: 0.9-4
Distribution: unstable
Urgency: medium
Maintainer: Eduard Bloch <[email protected]>
Changed-By: Andreas Tille <[email protected]>
Closes: 857023 1089316
Changes:
durep (0.9-4) unstable; urgency=medium
.
* Team upload od Debian team.
.
[ Andreas Tille ]
* Point Homepage to Web archive
* Point Vcs fields to Salsa
* Drop unneeded references to quilt
* Fake watch file
* d/copyright: DEP5
* Standards-Version: 4.7.0 (routine-update)
* debhelper-compat 13 (routine-update)
* Remove trailing whitespace in debian/changelog (routine-update)
* Remove trailing whitespace in debian/control (routine-update)
* Rules-Requires-Root: no (routine-update)
* No tab in license text (routine-update)
* Trim trailing whitespace.
* Set group ownership for www-data in postinst instead of d/rules
Closes: #1089316
.
[ Martin von Wittich ]
* Make `durep -hs 1G` work as expected
Closes: #857023
.
[ Adriano Rafael Gomes ]
* Brazilian Portuguese debconf templates translation
Checksums-Sha1:
615a4023681cdf732b3c061499c273722feb58d3 1908 durep_0.9-4.dsc
3fc3b1b9fb0cb271a9a421364d424ed4d49ffef9 26532 durep_0.9-4.debian.tar.xz
d3322fa55806a3bb35c302c39ac265de8719cef1 5857 durep_0.9-4_amd64.buildinfo
Checksums-Sha256:
72bc8b5b5ebeacf782a60dee97228d4edb3a5e356311dac2c7eb76fa98cd9109 1908
durep_0.9-4.dsc
c488bdaaad56b5cee67cb251bb93ee919ef00e14289c522a8dca446cda8017e0 26532
durep_0.9-4.debian.tar.xz
b40b4fa6b76520e0bb2e249b1c9d0a1ebae24366ddba918ea9339aca3d9a332e 5857
durep_0.9-4_amd64.buildinfo
Files:
d401a33622fb3eea5c2cad0075c560d7 1908 utils optional durep_0.9-4.dsc
4ca0a3bc9006e89adceaa83431a4757d 26532 utils optional durep_0.9-4.debian.tar.xz
90207ee5d5e0ea322b0711b087396392 5857 utils optional
durep_0.9-4_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmdlJDkRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtE2Kg//SKHP0Ud8h+mVDIU+7kR9ewYdBDTsf3+b
6WYVDMHVM1v25Vg4o++agUvHrUnKdVBNB2s68CRsuvhA6lYx6Y/6k74/6RI8wqJ8
sWxOc/TmdGuRgoGHb+RVejGrw5iUh9syOduAZSk1GpqzW2z/t9G17h8IErUWdxNf
vacYIc9Bi8cOLuPgBgkCYY9JjniF0A8fYdsh8wB8s7xwHjqywcxTvB3GbxD88xBb
QpkXLzuNGZvcH+cifX0DVrAqJn9ODMMB6YhJpRbvZumbPvIpmhoKWFg/NSO7MsU6
dv3+qtBDZz4LJhVszaywtVhS6U5wQ0c6bd/wprwBhOPDnSs42UA9BAtuEhDtsbmT
g3gy8+7XYtt1c5+k/cf/TqjT1RAV7ts8fAFKve9auOdZk0XNoaXDUpL1CRO5tFDK
Vd9a1FQKINuG0FBn9jGiaY6nunWO+68Rju2h0FAu5lqZ2KdloirKDPo15qwDYxVw
cC5Zmv6Wvfh5iPaqAHZvWr0QN+1KLPs1mXQcBMv5n0QkZQwJoyCuXpaCt2d5syAa
SlGuB18TR6Y4z2/hKDRW3KmASisIEibY1cYeasCRyP+XbuIGuiL8PKD/OZ5sSBV/
vFIE4kmuGDYSwYpPuOlvzVy8SkHI+GiaHC014mJuJX76tBwg+8NZ+sEk+QorCocy
5AkeHglvB18=
=DClw
-----END PGP SIGNATURE-----
pgp0In717E0dJ.pgp
Description: PGP signature
--- End Message ---