aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/dirent_win.c
diff options
context:
space:
mode:
authorqwerty <qwerty@yandex-team.ru>2022-02-10 16:49:24 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:24 +0300
commit34e37ee57f5837a8da2fdfaccaac9bbe6c7f02ba (patch)
treec9e2dc7251a6743c4352ec4a4c717b18a1bd4da7 /util/folder/dirent_win.c
parent19bd45eb7775ffded0c62ab05d10b7326198aaa6 (diff)
downloadydb-34e37ee57f5837a8da2fdfaccaac9bbe6c7f02ba.tar.gz
Restoring authorship annotation for <qwerty@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/folder/dirent_win.c')
-rw-r--r--util/folder/dirent_win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/folder/dirent_win.c b/util/folder/dirent_win.c
index 7e6db74ce5..3e6f00a239 100644
--- a/util/folder/dirent_win.c
+++ b/util/folder/dirent_win.c
@@ -32,7 +32,7 @@ struct DIR* opendir(const char* dirname) {
int len = strlen(dirname);
//Remove trailing slashes
while (len && (dirname[len - 1] == '\\' || dirname[len - 1] == '/')) {
- --len;
+ --len;
}
int len_converted = MultiByteToWideChar(CP_UTF8, 0, dirname, len, 0, 0);
if (len_converted == 0) {
@@ -80,7 +80,7 @@ int readdir_r(struct DIR* dir, struct dirent* entry, struct dirent** result) {
}
entry->d_fileno = dir->file_no++;
entry->d_reclen = sizeof(struct dirent);
- if (dir->wfd.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT &&
+ if (dir->wfd.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT &&
(dir->wfd.dwReserved0 == IO_REPARSE_TAG_MOUNT_POINT || dir->wfd.dwReserved0 == IO_REPARSE_TAG_SYMLINK))
{
entry->d_type = DT_LNK;