As with so many other bugs, the solution is trivial once the problem can be pinpointed. Here is the debdiff for hardy-proposed, fixing this bug at last.
The new patch indicates a bug in daemon/libsmb-compat.h which is still present upstream in the latest version, so ideally the patch should be forwarded upstream; but given that this is a compat header for older versions of samba (hardy and earlier), it's not worth applying the patch separately to karmic.
As with so many other bugs, the solution is trivial once the problem can be pinpointed. Here is the debdiff for hardy-proposed, fixing this bug at last.
The new patch indicates a bug in daemon/ libsmb- compat. h which is still present upstream in the latest version, so ideally the patch should be forwarded upstream; but given that this is a compat header for older versions of samba (hardy and earlier), it's not worth applying the patch separately to karmic.