aboutsummaryrefslogtreecommitdiffstats
path: root/util/folder/fts.cpp
diff options
context:
space:
mode:
authorvvvv <vvvv@yandex-team.ru>2022-02-10 16:46:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:37 +0300
commita693106aae8a3a3c7236a4ae953058a9611d7a92 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/folder/fts.cpp
parentad94e93a059747f4fc3d7add88d1a83daf40b733 (diff)
downloadydb-a693106aae8a3a3c7236a4ae953058a9611d7a92.tar.gz
Restoring authorship annotation for <vvvv@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/fts.cpp')
-rw-r--r--util/folder/fts.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/folder/fts.cpp b/util/folder/fts.cpp
index b715e5191e..0e6a6f86eb 100644
--- a/util/folder/fts.cpp
+++ b/util/folder/fts.cpp
@@ -1100,7 +1100,7 @@ fts_stat(FTS* sp, FTSENT* p, int follow)
{
dev_t dev;
ino_t ino;
- stat_struct *sbp, sb;
+ stat_struct *sbp, sb;
int saved_errno;
/* If user needs stat info, stat buffer already allocated. */
sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp;
@@ -1122,19 +1122,19 @@ fts_stat(FTS* sp, FTSENT* p, int follow)
* fail, set the errno from the stat call.
*/
if (ISSET(FTS_LOGICAL) || follow) {
- if (STAT_FUNC(p->fts_accpath, sbp)) {
+ if (STAT_FUNC(p->fts_accpath, sbp)) {
saved_errno = errno;
if (!lstat(p->fts_accpath, sbp)) {
errno = 0;
return (FTS_SLNONE);
}
p->fts_errno = saved_errno;
- memset(sbp, 0, sizeof(stat_struct));
+ memset(sbp, 0, sizeof(stat_struct));
return (FTS_NS);
}
} else if (lstat(p->fts_accpath, sbp)) {
p->fts_errno = errno;
- memset(sbp, 0, sizeof(stat_struct));
+ memset(sbp, 0, sizeof(stat_struct));
return (FTS_NS);
}
@@ -1239,7 +1239,7 @@ fts_alloc(FTS* sp, const char* name, int namelen)
*/
len = sizeof(FTSENT) + namelen;
if (!ISSET(FTS_NOSTAT)) {
- len += sizeof(stat_struct) + ALIGNBYTES;
+ len += sizeof(stat_struct) + ALIGNBYTES;
}
if ((p = (FTSENT*)malloc(len)) == nullptr) {
return nullptr;
@@ -1359,7 +1359,7 @@ static int
fts_safe_changedir(FTS* sp, FTSENT* p, int fd, const char* path)
{
int ret, oerrno, newfd;
- stat_struct sb;
+ stat_struct sb;
newfd = fd;
if (ISSET(FTS_NOCHDIR)) {
@@ -1391,11 +1391,11 @@ static int
fts_safe_changedir(FTS* sp, FTSENT* p, int /*fd*/, const char* path)
{
int ret;
- stat_struct sb;
+ stat_struct sb;
if (ISSET(FTS_NOCHDIR))
return (0);
- if (STAT_FUNC(path, &sb)) {
+ if (STAT_FUNC(path, &sb)) {
ret = -1;
goto bail;
}