diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-12-01 14:42:07 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-12-01 14:42:07 -0800 |
commit | dfc365743ae3311438150f2cbf8a31408d2c641b (patch) | |
tree | 78887e89b51e9e0664b8db330d2081e3ed57cb51 | |
parent | 84b2db8d511759ac12b0619c77683aac1f078063 (diff) | |
download | samba-dfc365743ae3311438150f2cbf8a31408d2c641b.tar.gz samba-dfc365743ae3311438150f2cbf8a31408d2c641b.tar.bz2 samba-dfc365743ae3311438150f2cbf8a31408d2c641b.zip |
s4:libcli/clideltree: work against servers without NTSTATUS support
metze
-rw-r--r-- | source4/libcli/clideltree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/clideltree.c b/source4/libcli/clideltree.c index 28563d918e..d947ac3547 100644 --- a/source4/libcli/clideltree.c +++ b/source4/libcli/clideltree.c @@ -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)) { |