[Samba] SMBCLIENT du, recurse and mask

dave mathis damaps at sbcglobal.net
Thu Nov 12 12:47:59 MST 2009

Recently after installing Amanda backup I discovered that the
smbclient du command doesn't really work correctly.

If recurse in on, du starts at '/', with recurse off and
no arg, 0 is returned.

If the mask '*' is passed, only files without a dot in the
filename are considered.  With '*.*' all files are considered
and du sums only the files in the current directory, no sub-
directories are summed.
Behavior is the same if mask is set independently.

Incorrect behavior exists in smbclient 3.2.4, 3.2.7, 3.3.4 and
CORRECT behavior exists in 3.0.36 with 3.4.3 libraries and support.

There are release notes that this issue existed some time ago and
was resolved.  Doesn't seem so in my case.

SuSE 11.1, samba 3.2.7 as PDC, a few windows clients and a few
other SuSE clients.

Anyone else seen du behaving badly?

More information about the samba mailing list