Since Windows implements a different permission system, we cannot check for the same permissions as on Unix. I get the following result from fileperms() for a file created by Drupal:

438

while this should have been 664 or similar.

If I'm not mistaken, a web server running on Windows is usually IIS because of that, since it implements a separate/additional layer for permissions of files that are published to the Web.

CommentFileSizeAuthor
drupal.assertFilePermissions-win.patch801 bytessun

Comments

Anonymous’s picture

I wouldn't assume that IIS is used on Windows; I'm using Apache. But instead of the fileperms, is_readable, is_writeable and is_executable should be used.

smk-ka’s picture

Status: Needs review » Needs work

This means CNW, I suppose.

mr.baileys’s picture

Component: tests » base system
Status: Needs work » Closed (duplicate)

Looks like this is being tackled in #443286: Windows File Handling: International characters break file handling, permissions don't translate, which is further along so marking this duplicate.