aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-09-18 11:35:11 +0100
committerRon Yorston <rmy@pobox.com>2023-09-18 11:35:11 +0100
commit1fcd57ab583a39f42b55f44d42472ea64e228c84 (patch)
treede4f57eca29c67bc95a1293696c88f11cf22ffdc
parenta2c4e62d1f09be5d520ad270e8322588aa22003d (diff)
downloadbusybox-w32-1fcd57ab583a39f42b55f44d42472ea64e228c84.tar.gz
busybox-w32-1fcd57ab583a39f42b55f44d42472ea64e228c84.tar.bz2
busybox-w32-1fcd57ab583a39f42b55f44d42472ea64e228c84.zip
win32: missing support for "app exec link" reparse points
Commit 603af9bb9 (win32: support "app exec link" reparse points) added support for IO_REPARSE_TAG_APPEXECLINK reparse points by pretending they're symbolic links. One change was missed, in the implementation of dirent. Costs 16 bytes.
-rw-r--r--win32/dirent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/dirent.c b/win32/dirent.c
index d708de691..795fc779c 100644
--- a/win32/dirent.c
+++ b/win32/dirent.c
@@ -13,7 +13,8 @@ static inline void finddata2dirent(struct dirent *ent, WIN32_FIND_DATAA *fdata)
13 13
14 if ((fdata->dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) && 14 if ((fdata->dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) &&
15 (fdata->dwReserved0 == IO_REPARSE_TAG_SYMLINK || 15 (fdata->dwReserved0 == IO_REPARSE_TAG_SYMLINK ||
16 fdata->dwReserved0 == IO_REPARSE_TAG_MOUNT_POINT)) 16 fdata->dwReserved0 == IO_REPARSE_TAG_MOUNT_POINT ||
17 fdata->dwReserved0 == IO_REPARSE_TAG_APPEXECLINK))
17 ent->d_type = DT_LNK; 18 ent->d_type = DT_LNK;
18 else if (fdata->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) 19 else if (fdata->dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
19 ent->d_type = DT_DIR; 20 ent->d_type = DT_DIR;