don't give detailed errors for levels that fail
authorAndrew Tridgell <tridge@samba.org>
Fri, 15 Aug 2003 15:12:30 +0000 (15:12 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 15 Aug 2003 15:12:30 +0000 (15:12 +0000)
source/torture/raw/qfsinfo.c

index 274d1073afbff9fa1ddcd25ed987b90189ac48e9..4d157383f622eefd98d6ae2d8914bc32574ca767 100644 (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;
                }
        }