summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-11-24 19:53:38 +0000
committerJeremy Allison <jra@samba.org>2000-11-24 19:53:38 +0000
commitefb7bb3bcff6437593e0c9b9655e018f94fe9639 (patch)
tree4f5a16cd5b368c4f8154847fda258f0c41d80d1d /source3/smbd
parent8d26523e90ff76adf6195d938fa1b8bc2b747dc1 (diff)
downloadsamba-efb7bb3bcff6437593e0c9b9655e018f94fe9639.tar.gz
samba-efb7bb3bcff6437593e0c9b9655e018f94fe9639.tar.bz2
samba-efb7bb3bcff6437593e0c9b9655e018f94fe9639.zip
This should fix Office failing to print to "FILE:".
Jeremy. (This used to be commit a08b08f7782234f26b2656a229007a411c6fb521)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/nttrans.c6
1 files changed, 3 insertions, 3 deletions
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));
}