summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
Diffstat (limited to 'api/src')
-rw-r--r--api/src/glfs-fops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c
index 55474693731..c981297b0b9 100644
--- a/api/src/glfs-fops.c
+++ b/api/src/glfs-fops.c
@@ -4055,6 +4055,7 @@ pub_glfs_dup (struct glfs_fd *glfd)
}
dupfd->fd = fd_ref (fd);
+ dupfd->state = glfd->state;
out:
if (fd)
fd_unref (fd);