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
d7541508
Commit
d7541508
authored
Oct 18, 2022
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Oct 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix build on systems without ENODATA.
On FreeBSD 12 and 14 ENODATA is not regularly defined. Cater to that in fd_get_file_info() and get_file_info().
parent
9ea45b5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
file.c
dlls/ntdll/unix/file.c
+14
-4
No files found.
dlls/ntdll/unix/file.c
View file @
d7541508
...
...
@@ -1565,10 +1565,15 @@ static int fd_get_file_info( int fd, unsigned int options, struct stat *st, ULON
attr_len
=
xattr_fget
(
fd
,
SAMBA_XATTR_DOS_ATTRIB
,
attr_data
,
sizeof
(
attr_data
)
-
1
);
if
(
attr_len
!=
-
1
)
*
attr
|=
parse_samba_dos_attrib_data
(
attr_data
,
attr_len
);
else
if
(
errno
!=
ENODATA
&&
errno
!=
ENOTSUP
)
else
{
if
(
errno
==
ENOTSUP
)
return
ret
;
#ifdef ENODATA
if
(
errno
==
ENODATA
)
return
ret
;
#endif
WARN
(
"Failed to get extended attribute "
SAMBA_XATTR_DOS_ATTRIB
". errno %d (%s)
\n
"
,
errno
,
strerror
(
errno
)
);
}
return
ret
;
}
...
...
@@ -1653,10 +1658,15 @@ static int get_file_info( const char *path, struct stat *st, ULONG *attr )
attr_len
=
xattr_get
(
path
,
SAMBA_XATTR_DOS_ATTRIB
,
attr_data
,
sizeof
(
attr_data
)
-
1
);
if
(
attr_len
!=
-
1
)
*
attr
|=
parse_samba_dos_attrib_data
(
attr_data
,
attr_len
);
else
if
(
errno
!=
ENODATA
&&
errno
!=
ENOTSUP
)
else
{
if
(
errno
==
ENOTSUP
)
return
ret
;
#ifdef ENODATA
if
(
errno
==
ENODATA
)
return
ret
;
#endif
WARN
(
"Failed to get extended attribute "
SAMBA_XATTR_DOS_ATTRIB
" from
\"
%s
\"
. errno %d (%s)
\n
"
,
path
,
errno
,
strerror
(
errno
)
);
}
return
ret
;
}
...
...
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