All over core used octal numbers to identify file permissions
| Comment | File | Size | Author |
|---|---|---|---|
| 0-octal-perms-d7.patch | 856 bytes | andypost |
All over core used octal numbers to identify file permissions
| Comment | File | Size | Author |
|---|---|---|---|
| 0-octal-perms-d7.patch | 856 bytes | andypost |
Comments
Comment #1
eustace commentedPatch 0-octal-perms-d7.patch applied with no errors.
Change does not appear to break anything navigating around site. However, I wish there were a directed functional test for assurance.
Comment #2
andypost@eustace, Is there any ideas about case for test?
Comment #3
eustace commentedA directed test would be to use this function repeatedly to create files with different permissions settings and verify the files were created with proper permissions. This would be appropriate as part of the automated test suite (probably an overkill too in this case).
An indirect way would be to recommend a set of operations that engages use of this function so that the person testing can go through to confirm. e.g. the operation may result in file creation on the local machine and the instructions would be to manually check the permissions to this file.
I'm too new to the drupal dev env. to intelligently discuss the mechanics of how either recommendations above could be accomplished. I also realize this function may not be used often after drupal installation making it even more obscure to access with a user test. However, the changes are straight forward enough that visual inspection alone may suffice.
Comment #4
andypostActually there's no need in tests because they are already provided in modules/simpletest/tests/file.test
and would be extended into windows platform in upcoming patch #443286: Windows File Handling: International characters break file handling, permissions don't translate
So you could just changes status to reviewed & tested... if code sane and patch works for you!
Comment #5
eustace commentedThank you for the guidance andypost. Patch works and code looks good so rtbc.
Good Patch!
Comment #6
gábor hojtsyDries committed this about 20 minutes ago at http://drupal.org/cvs?commit=397794