Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bb9e66e2
Commit
bb9e66e2
authored
Jun 25, 2000
by
Dave Hawkes
Committed by
Alexandre Julliard
Jun 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If whitespace or dots are appended to the end of any component in a
path then it should be ignored.
parent
596921da
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
dos_fs.c
files/dos_fs.c
+7
-2
No files found.
files/dos_fs.c
View file @
bb9e66e2
...
...
@@ -530,8 +530,8 @@ BOOL DOSFS_FindUnixName( LPCSTR path, LPCSTR name, LPSTR long_buf,
const
char
*
p
=
strchr
(
name
,
'/'
);
int
len
=
p
?
(
int
)(
p
-
name
)
:
strlen
(
name
);
if
((
p
=
strchr
(
name
,
'\\'
)))
len
=
min
(
(
int
)(
p
-
name
),
len
);
/* Ignore trailing dots */
while
(
len
>
1
&&
name
[
len
-
1
]
==
'.'
)
len
--
;
/* Ignore trailing dots
and spaces
*/
while
(
len
>
1
&&
(
name
[
len
-
1
]
==
'.'
||
name
[
len
-
1
]
==
' '
)
)
len
--
;
if
(
long_len
<
len
+
1
)
return
FALSE
;
TRACE
(
"%s,%s
\n
"
,
path
,
name
);
...
...
@@ -855,6 +855,11 @@ BOOL DOSFS_GetFullName( LPCSTR name, BOOL check_last, DOS_FULL_NAME *full )
else
*
p_l
++
=
*
name
;
name
++
;
}
/* Ignore trailing dots and spaces */
while
(
p_l
[
-
1
]
==
'.'
||
p_l
[
-
1
]
==
' '
)
{
--
p_l
;
--
p_s
;
}
*
p_l
=
*
p_s
=
'\0'
;
}
while
((
*
name
==
'\\'
)
||
(
*
name
==
'/'
))
name
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment