From ab1ab1ce0d49e968bcbd37841df1a13a2cf42884 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 20 Nov 1998 23:22:43 +0000 Subject: Instrumented hack fix with debug level 10 statements just in case :-). Jeremy. (This used to be commit 10f51b85722141f99ffecc3f19a39de108400828) --- source3/smbd/nttrans.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index c1c82b48e3..8aacfa3867 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -463,6 +463,7 @@ void fail_next_srvsvc_open(void) { fail_next_srvsvc = True; fail_time = time(NULL); + DEBUG(10,("fail_next_srvsvc_open: setting up timeout close of \\srvsvc pipe for print fix.\n")); } /**************************************************************************** @@ -490,10 +491,12 @@ static int nt_open_pipe(char *fname, connection_struct *conn, if(fail_next_srvsvc && (time(NULL) > fail_time + HACK_FAIL_TIME)) { fail_next_srvsvc = False; fail_time = (time_t)0; + DEBUG(10,("nt_open_pipe: End of timeout close of \\srvsvc pipe for print fix.\n")); } if(fail_next_srvsvc && strequal(fname, "\\srvsvc")) { fail_next_srvsvc = False; + DEBUG(10,("nt_open_pipe: Deliberately failing open of \\srvsvc pipe for print fix.\n")); return(ERROR(ERRSRV,ERRaccess)); } -- cgit