From efb7bb3bcff6437593e0c9b9655e018f94fe9639 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 24 Nov 2000 19:53:38 +0000 Subject: This should fix Office failing to print to "FILE:". Jeremy. (This used to be commit a08b08f7782234f26b2656a229007a411c6fb521) --- source3/smbd/nttrans.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index f8b6352ba1..c0ccea0add 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -725,9 +725,9 @@ int reply_ntcreate_and_X(connection_struct *conn, get_filename(&fname[0], inbuf, smb_buf(inbuf)-inbuf, smb_buflen(inbuf),fname_len); - if( fname[0] == ':') { + if( strchr(fname, ':')) { SSVAL(outbuf, smb_flg2, FLAGS2_32_BIT_ERROR_CODES); - END_PROFILE(SMBntcreateX); + END_PROFILE(SMBntcreateX); return(ERROR(0, NT_STATUS_OBJECT_PATH_NOT_FOUND)); } END_PROFILE(SMBntcreateX); @@ -1155,7 +1155,7 @@ static int call_nt_transact_create(connection_struct *conn, get_filename_transact(&fname[0], params, 53, total_parameter_count - 53 - fname_len, fname_len); - if( fname[0] == ':') { + if( strchr(fname, ':')) { SSVAL(outbuf, smb_flg2, FLAGS2_32_BIT_ERROR_CODES); return(ERROR(0, NT_STATUS_OBJECT_PATH_NOT_FOUND)); } -- cgit