- Assign to submitter - Fix some issues with - trailing spaces and/or tabs (for example: if you enter a COMMAND and then enter a few spaces or tabs, then you will get an error) - parsing command line - some compiler warnings - While here simplify DOCS installation PR: 228100 Submitted by: Oleg P. <pzn.unixbsd@gmail.com>
24 lines
828 B
C
24 lines
828 B
C
--- direct.c.orig 2001-08-31 18:01:07 UTC
|
|
+++ direct.c
|
|
@@ -136,12 +136,15 @@ int name_match(char *spec,int spec_len,char *dirent,in
|
|
register char sch = *name;
|
|
if (sch != '*') {
|
|
register char ech = *entry;
|
|
- if (sch != ech) if (toupper(sch) != toupper(ech))
|
|
- if (sch == '%') {
|
|
- percent = MAT_NE;
|
|
- } else {
|
|
- break;
|
|
- }
|
|
+ if (sch != ech) {
|
|
+ if (toupper(sch) != toupper(ech)) {
|
|
+ if (sch == '%') {
|
|
+ percent = MAT_NE;
|
|
+ } else {
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
} else {
|
|
break;
|
|
}
|