1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

don't give detailed errors for levels that fail

This commit is contained in:
Andrew Tridgell -
parent 9f395dd768
commit 04b60864a6

View File

@ -54,7 +54,8 @@ static union smb_fsinfo *find(const char *name)
{
int i;
for (i=0; levels[i].name; i++) {
if (strcmp(name, levels[i].name) == 0) {
if (strcmp(name, levels[i].name) == 0 &&
NT_STATUS_IS_OK(levels[i].status)) {
return &levels[i].fsinfo;
}
}