projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73e89bf
)
Fix #3922: Use stat insead of lstat
author
Armin Novak
<armin.novak@thincast.com>
Wed, 19 Apr 2017 06:28:00 +0000
(08:28 +0200)
committer
Armin Novak
<armin.novak@thincast.com>
Wed, 19 Apr 2017 06:28:00 +0000
(08:28 +0200)
winpr/libwinpr/file/generic.c
patch
|
blob
|
history
diff --git
a/winpr/libwinpr/file/generic.c
b/winpr/libwinpr/file/generic.c
index
7d7be52
..
c922799
100644
(file)
--- a/
winpr/libwinpr/file/generic.c
+++ b/
winpr/libwinpr/file/generic.c
@@
-815,7
+815,7
@@
HANDLE FindFirstFileA(LPCSTR lpFileName, LPWIN32_FIND_DATAA lpFindFileData)
/* Check if the path is a directory */
- if (
l
stat(pFileSearch->lpPath, &fileStat) < 0)
+ if (stat(pFileSearch->lpPath, &fileStat) < 0)
{
FindClose(pFileSearch);
return INVALID_HANDLE_VALUE; /* stat error */
@@
-936,7
+936,7
@@
BOOL FindNextFileA(HANDLE hFindFile, LPWIN32_FIND_DATAA lpFindFileData)
memcpy(fullpath + pathlen + 1, pFileSearch->pDirent->d_name, namelen);
fullpath[pathlen+namelen+1] = 0;
- if (
l
stat(fullpath, &fileStat) != 0)
+ if (stat(fullpath, &fileStat) != 0)
{
free(fullpath);
SetLastError(map_posix_err(errno));