r23521: NT_STATUS_OBJECT_NAME_NOT_FOUND is not an error either
authorAndrew Tridgell <tridge@samba.org>
Sat, 16 Jun 2007 17:54:36 +0000 (17:54 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:53:24 +0000 (14:53 -0500)
source/client/client.c

index 7585a15a392eab7aa97e26f11abae4afbd6ec784..9b9a032cc8f73660a383c838f96ac3c5bf256a54 100644 (file)
@@ -1827,7 +1827,8 @@ static int cmd_allinfo(struct smbclient_context *ctx, const char **args)
                                finfo.generic.in.file.path = talloc_asprintf(ctx, "%s%s", 
                                                                             info.out.names[i], fname); 
                                status = smb_raw_pathinfo(ctx->cli->tree, ctx, &finfo);
-                               if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_PATH_NOT_FOUND)) {
+                               if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_PATH_NOT_FOUND) ||
+                                   NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
                                        continue;
                                }
                                if (!NT_STATUS_IS_OK(status)) {