The Samba-Bugzilla – Attachment 606 Details for
Bug 1623
wildcard characters as filenames
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
reworked patch
name_has_wildcard.pch (text/plain), 1.22 KB, created by
Olaf Flebbe
on 2004-08-18 04:15:06 UTC
(
hide
)
Description:
reworked patch
Filename:
MIME Type:
Creator:
Olaf Flebbe
Created:
2004-08-18 04:15:06 UTC
Size:
1.22 KB
patch
obsolete
>diff -u samba-3.0.6rc2.orig/source/smbd/trans2.c samba-3.0.6rc2/source/smbd/trans2.c >--- samba-3.0.6rc2.orig/source/smbd/trans2.c Fri Aug 6 23:38:18 2004 >+++ samba-3.0.6rc2/source/smbd/trans2.c Wed Aug 18 13:12:12 2004 >@@ -1569,6 +1569,7 @@ > BOOL out_of_space = False; > int space_remaining; > NTSTATUS ntstatus = NT_STATUS_OK; >+ BOOL name_has_wildcard = False; > > if (total_params < 12) > return(ERROR_DOS(ERRDOS,ERRinvalidparam)); >@@ -1732,6 +1733,9 @@ > } /* end if current_pos */ > } /* end if requires_resume_key && !continue_bit */ > >+ if(strchr(mask,'?') || strchr(mask,'*')) >+ name_has_wildcard = True; >+ > for (i=0;(i<(int)maxentries) && !finished && !out_of_space ;i++) { > BOOL got_exact_match = False; > >@@ -1757,12 +1761,12 @@ > > /* > * As an optimisation if we know we aren't looking >- * for a wildcard name (ie. the name matches the wildcard exactly) >+ * for a wildcard name (ie. the mask does not contain wildcards) > * then we can finish on any (first) match. > * This speeds up large directory searches. JRA. > */ > >- if(got_exact_match) >+ if(got_exact_match && !name_has_wildcard) > finished = True; > > space_remaining = max_data_bytes - PTR_DIFF(p,pdata); >Only in samba-3.0.6rc2/source/smbd/: trans2.c~
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1623
:
603
|
606
|
607