Skip to content

Commit

Permalink
Clearer comment explaining chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Dec 18, 2024
1 parent 7afc965 commit c499368
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/fs/test_fs_readdir_ino_matches_stat_ino.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ int main() {
struct stat sta, stb;
assert(lstat("a", &sta) == 0);
assert(lstat("b", &stb) == 0);
// Remove execute permission from directory. This prevents us from stat'ing
// files in the directory in the implementation of readdir which we tried to
// use to fix this.
// Test that removing permissions from the directory does not effect the
// already open directory handle that we have (dirp).
assert(chmod(".", 0675) == 0);
int a_ino = -1;
int b_ino = -1;
Expand Down

0 comments on commit c499368

Please sign in to comment.