summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-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 fdffc7b7cb3..490e2b579bb 100644
--- a/api/src/glfs-fops.c
+++ b/api/src/glfs-fops.c
@@ -3988,6 +3988,7 @@ pub_glfs_dup (struct glfs_fd *glfd)
}
dupfd->fd = fd_ref (fd);
+ dupfd->state = glfd->state;
out:
if (fd)
fd_unref (fd);