s3:rpc_server: avoid a level 0 DEBUG if tstream_npa_connect_recv fails (bug #9309)
authorStefan Metzmacher <metze@samba.org>
Sat, 20 Oct 2012 09:08:19 +0000 (11:08 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 20 Oct 2012 10:56:23 +0000 (12:56 +0200)
metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Oct 20 12:56:23 CEST 2012 on sn-devel-104

source3/rpc_server/rpc_ncacn_np.c

index 67176a8c674c09f51680da21ac0c580190b0d0b6..25ad8570a2864af64a601fcf021ada2993a655b0 100644 (file)
@@ -611,7 +611,11 @@ struct np_proxy_state *make_external_rpc_pipe_p(TALLOC_CTX *mem_ctx,
                                       &result->allocation_size);
        TALLOC_FREE(subreq);
        if (ret != 0) {
-               DEBUG(0, ("tstream_npa_connect_recv  to %s for pipe %s and "
+               int l = 1;
+               if (errno == ENOENT) {
+                       l = 2;
+               }
+               DEBUG(l, ("tstream_npa_connect_recv  to %s for pipe %s and "
                          "user %s\\%s failed: %s\n",
                          socket_np_dir, pipe_name, session_info_t->session_info->info->domain_name,
                          session_info_t->session_info->info->account_name,