s4:libcli/clideltree: work against servers without NTSTATUS support
authorStefan Metzmacher <metze@samba.org>
Mon, 1 Dec 2008 22:42:07 +0000 (14:42 -0800)
committerJeremy Allison <jra@samba.org>
Mon, 1 Dec 2008 22:42:07 +0000 (14:42 -0800)
metze

source4/libcli/clideltree.c

index 28563d918e2021eac4310df5b1bba96cd6f64122..d947ac3547588efe800cd4deb67972c1c232be2c 100644 (file)
@@ -97,7 +97,8 @@ int smbcli_deltree(struct smbcli_tree *tree, const char *dname)
        }
        if (NT_STATUS_EQUAL(smbcli_nt_error(tree), NT_STATUS_OBJECT_NAME_NOT_FOUND) ||
            NT_STATUS_EQUAL(smbcli_nt_error(tree), NT_STATUS_OBJECT_PATH_NOT_FOUND) ||
-           NT_STATUS_EQUAL(smbcli_nt_error(tree), NT_STATUS_NO_SUCH_FILE)) {
+           NT_STATUS_EQUAL(smbcli_nt_error(tree), NT_STATUS_NO_SUCH_FILE) ||
+           NT_STATUS_EQUAL(smbcli_nt_error(tree), NT_STATUS_DOS(ERRDOS, ERRbadfile))) {
                return 0;
        }
        if (NT_STATUS_EQUAL(status, NT_STATUS_CANNOT_DELETE)) {