New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArgumentError: parent directory is world writable, FileUtils#remove_entry_secure does not work #465
Comments
This seems to be a problem with your filesystem permissions. If you are using Mac OS X, consider repairing permissions. |
(Permissions for /tmp need to be 1777.) |
I use Ubuntu 14.04 amd64. Permissions for /tmp = 777 |
The permissions for /tmp should be 1777, not 777. Can you still reproduce the bug with permissions set to 1777? |
Sorry, but bug still reproduced (( |
Not quite sure what’s going wrong here. Can you try |
Forgive me for so long did not answer. I try |
It seems like nanoc can just use @Leolik It is still odd that the problem happens for you, since |
Ubuntu 14.04 |
On some systems, `FileUtils#remove_entry_secure` fails to work because it fails the [TOCTTOU vulnerability check](1), even for `/tmp`. In the case of nanoc, the vulnerability check has little use, since it deletes the directories that it creates itself, so using `FileUtils#rm_rf` instead of `FileUtils#remove_entry_secure` is fine. Also see #465 [1]: http://www.ruby-doc.org/stdlib-2.1.2/libdoc/fileutils/rdoc/FileUtils.html#method-c-remove_entry_secure
Potential fix in #474. |
On some systems, `FileUtils#remove_entry_secure` fails to work because it fails the [TOCTTOU vulnerability check](1), even for `/tmp`. In the case of nanoc, the vulnerability check has little use, since it deletes the directories that it creates itself, so using `FileUtils#rm_rf` instead of `FileUtils#remove_entry_secure` is fine. Also see #465 [1]: http://www.ruby-doc.org/stdlib-2.1.2/libdoc/fileutils/rdoc/FileUtils.html#method-c-remove_entry_secure
Fixed by #474. |
Thank you @ddfreyne Defreyne, it saved my day. |
Doing |
After save changes in scss file i get this error:
This bug reproduced in nanoc 3.7.*
If using 3.6.9 all work fine
The text was updated successfully, but these errors were encountered: