summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/storage/posix/src/posix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index 87bf755cf..e948a86a1 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -270,6 +270,7 @@ posix_lstat_with_gen (xlator_t *this, const char *path, struct stat *stbuf_p)
}
if (ret >= 0) {
+ ret = 0;
stbuf.st_dev = gen_val;
if (stbuf_p)
*stbuf_p = stbuf;
@@ -329,6 +330,7 @@ posix_fstat_with_gen (xlator_t *this, int fd, struct stat *stbuf_p)
}
if (ret >= 0) {
+ ret = 0;
stbuf.st_dev = gen_val;
if (stbuf_p)
*stbuf_p = stbuf;