Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/library_fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,6 @@ FS.staticInit();
}
node.node_ops.setattr(node, {
mode: (mode & {{{ cDefs.S_IALLUGO }}}) | (node.mode & ~{{{ cDefs.S_IALLUGO }}}),
timestamp: Date.now()
});
},
lchmod(path, mode) {
Expand Down
8 changes: 4 additions & 4 deletions test/stat/test_chmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void test() {
memset(&s, 0, sizeof s);
stat("file", &s);
assert(s.st_mode == (0200 | S_IFREG));
assert(s.st_ctime != lastctime);
assert(s.st_ctime == lastctime);

//
// fchmod a file
Expand All @@ -80,7 +80,7 @@ void test() {
memset(&s, 0, sizeof s);
stat("file", &s);
assert(s.st_mode == (0100 | S_IFREG));
assert(s.st_ctime != lastctime);
assert(s.st_ctime == lastctime);


//
Expand All @@ -94,7 +94,7 @@ void test() {
memset(&s, 0, sizeof s);
stat("otherfile", &s);
assert(s.st_mode == (0100 | S_IFREG));
assert(s.st_ctime != lastctime);
assert(s.st_ctime == lastctime);

//
// chmod a folder
Expand All @@ -111,7 +111,7 @@ void test() {
memset(&s, 0, sizeof s);
stat("folder", &s);
assert(s.st_mode == (0300 | S_IFDIR));
assert(s.st_ctime != lastctime);
assert(s.st_ctime == lastctime);

#ifndef WASMFS // TODO https://github.com/emscripten-core/emscripten/issues/15948
//
Expand Down