diff options
author | David Disseldorp <ddiss@samba.org> | 2014-10-27 20:13:59 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-10-29 23:28:50 +0100 |
commit | 1b0da1d8bac7e8dfb52e723a7753b75ce8053a9c (patch) | |
tree | 837e071dbc197d5ca97f7f366bc73947e25f8500 /nsswitch/tests | |
parent | 76ff1da55d36677a809c2c93761e713b6c2fae1c (diff) | |
download | samba-1b0da1d8bac7e8dfb52e723a7753b75ce8053a9c.tar.gz |
spoolss: fix handling of bad EnumJobs levels
Currently Samba is inconsistent when returning WERR_UNKNOWN_LEVEL
errors for spoolss EnumJobs requests - if no print jobs are present,
then WERR_OK will be returned, regardless of whether the EnumJobs level
is supported or not.
This change fixes this behaviour, by catching invalid or unsupported
levels prior to the no-jobs response fast-path.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10898
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Oct 28 03:05:35 CET 2014 on sn-devel-104
(cherry picked from commit d4f233a746d89e13aae78008b499c71b695ff882)
Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Wed Oct 29 23:28:50 CET 2014 on sn-devel-104
Diffstat (limited to 'nsswitch/tests')
0 files changed, 0 insertions, 0 deletions