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.
| Comment | File | Size | Author |
|---|---|---|---|
| drupal.assertFilePermissions-win.patch | 801 bytes | sun |
Comments
Comment #1
Anonymous (not verified) commentedI 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.
Comment #2
smk-ka commentedThis means CNW, I suppose.
Comment #3
mr.baileysLooks 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.