summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
-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 87bf755cff6..e948a86a110 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;