summaryrefslogtreecommitdiff
path: root/src/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/open.c')
-rw-r--r--src/open.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/open.c b/src/open.c
index b48fc087a..1dd79e9dc 100644
--- a/src/open.c
+++ b/src/open.c
@@ -33,6 +33,9 @@ print_dirfd(struct tcb *tcp, int fd)
print_xlat_d(AT_FDCWD);
else
printfd(tcp, fd);
+#ifdef ENABLE_SECONTEXT
+ tcp->last_dirfd = fd;
+#endif
}
/*