diff --git a/src/win/fs.c b/src/win/fs.c index 5ddd206c..af8fa8a7 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -1516,7 +1516,7 @@ static void fs__fchmod(uv_fs_t* req) { /* Test if the Archive attribute is cleared */ if ((file_info.FileAttributes & FILE_ATTRIBUTE_ARCHIVE) == 0) { - /* Set Archive flag, otherwise setting or clearing the read-olny + /* Set Archive flag, otherwise setting or clearing the read-only flag will not work */ file_info.FileAttributes |= FILE_ATTRIBUTE_ARCHIVE; nt_status = pNtSetInformationFile(handle, diff --git a/test/test-fs.c b/test/test-fs.c index dfe757b4..66e78e42 100644 --- a/test/test-fs.c +++ b/test/test-fs.c @@ -3318,7 +3318,7 @@ TEST_IMPL(fs_open_readonly_acl) { #endif #ifdef _WIN32 -TEST_IMPL(fs_fchmod_archive_readolny) { +TEST_IMPL(fs_fchmod_archive_readonly) { uv_fs_t req; uv_file file; int r; diff --git a/test/test-list.h b/test/test-list.h index 938b27ac..e59c6b65 100644 --- a/test/test-list.h +++ b/test/test-list.h @@ -342,7 +342,7 @@ TEST_DECLARE (fs_null_req) #ifdef _WIN32 TEST_DECLARE (fs_exclusive_sharing_mode) TEST_DECLARE (fs_open_readonly_acl) -TEST_DECLARE (fs_fchmod_archive_readolny) +TEST_DECLARE (fs_fchmod_archive_readonly) #endif TEST_DECLARE (threadpool_queue_work_simple) TEST_DECLARE (threadpool_queue_work_einval) @@ -886,7 +886,7 @@ TASK_LIST_START #ifdef _WIN32 TEST_ENTRY (fs_exclusive_sharing_mode) TEST_ENTRY (fs_open_readonly_acl) - TEST_ENTRY (fs_fchmod_archive_readolny) + TEST_ENTRY (fs_fchmod_archive_readonly) #endif TEST_ENTRY (get_osfhandle_valid_handle) TEST_ENTRY (threadpool_queue_work_simple)