Skip to content

Commit

Permalink
fixup! [LibOS] Fix readdir() to detect directory deletion
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Marczewski <[email protected]>
  • Loading branch information
pwmarcz committed Feb 28, 2022
1 parent ed50e97 commit 1c9299c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LibOS/shim/src/fs/shim_namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ static int populate_directory(struct shim_dentry* dent) {
struct shim_inode* inode = child->inode;
/* Check `inode->fs` so that we don't remove files added by Gramine (named pipes, sockets,
* synthetic mountpoints) */
if (inode && inode->fs == child->mount->fs) {
if (inode && inode->fs == inode->mount->fs) {
struct temp_dirent* ent;
bool removed = true;
LISTP_FOR_EACH_ENTRY(ent, &ents, list) {
Expand Down

0 comments on commit 1c9299c

Please sign in to comment.