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
d9033a49
Commit
d9033a49
authored
May 31, 2005
by
Detlef Riekenberg
Committed by
Alexandre Julliard
May 31, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark links to dir with FILE_ATTRIBUTE_REPARSE_POINT, so modern
applications can use this additional information.
parent
16885f09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
directory.c
dlls/ntdll/directory.c
+8
-3
No files found.
dlls/ntdll/directory.c
View file @
d9033a49
...
...
@@ -762,11 +762,16 @@ static FILE_BOTH_DIR_INFORMATION *append_entry( void *info_ptr, ULONG *pos, ULON
if
(
*
pos
+
total_len
>
max_length
)
total_len
=
max_length
-
*
pos
;
info
->
FileAttributes
=
0
;
if
(
lstat
(
long_name
,
&
st
)
==
-
1
)
return
NULL
;
if
(
S_ISLNK
(
st
.
st_mode
))
{
if
(
stat
(
long_name
,
&
st
)
==
-
1
)
return
NULL
;
if
(
S_ISDIR
(
st
.
st_mode
)
&&
!
show_dir_symlinks
)
return
NULL
;
if
(
S_ISDIR
(
st
.
st_mode
))
{
if
(
!
show_dir_symlinks
)
return
NULL
;
info
->
FileAttributes
|=
FILE_ATTRIBUTE_REPARSE_POINT
;
}
}
info
->
NextEntryOffset
=
total_len
;
...
...
@@ -780,13 +785,13 @@ static FILE_BOTH_DIR_INFORMATION *append_entry( void *info_ptr, ULONG *pos, ULON
if
(
S_ISDIR
(
st
.
st_mode
))
{
info
->
EndOfFile
.
QuadPart
=
info
->
AllocationSize
.
QuadPart
=
0
;
info
->
FileAttributes
=
FILE_ATTRIBUTE_DIRECTORY
;
info
->
FileAttributes
|
=
FILE_ATTRIBUTE_DIRECTORY
;
}
else
{
info
->
EndOfFile
.
QuadPart
=
st
.
st_size
;
info
->
AllocationSize
.
QuadPart
=
(
ULONGLONG
)
st
.
st_blocks
*
512
;
info
->
FileAttributes
=
FILE_ATTRIBUTE_ARCHIVE
;
info
->
FileAttributes
|
=
FILE_ATTRIBUTE_ARCHIVE
;
}
if
(
!
(
st
.
st_mode
&
(
S_IWUSR
|
S_IWGRP
|
S_IWOTH
)))
...
...
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