I change the integer the equivalent string in chmod.py (eg. 0444
to S_IRWXU and S_IRWXG and S_IRWXO) but there is problem ahead into the
program and the test fails at this point -
Watch out, 0444 is not the same as S_IRWXU and S_IRWXG and S_IRWXO,
which would be because of the ands.
On Sat, Dec 6, 2014 at 4:35 AM, Shreedhar Manek shreedharma...@gmail.com
wrote:
I change the integer the equivalent string in chmod.py (eg. 0444
to S_IRWXU and S_IRWXG and S_IRWXO) but there is problem ahead into the
program and the test fails at this point -
Watch out, 0444 is not the
256 is octal 0400, so it looks like it's only getting the S_IRUSR part.
And that's because I steered you wrong; these are bitmasks, so you have to
use bitwise OR: S_IRUSR | S_IRGRP | S_IROTH
This was it. Thanks!
Should I replace *all *integers with their counterpart string? Or only
select
On Sat, Dec 6, 2014 at 9:37 AM, Shreedhar Manek shreedharma...@gmail.com
wrote:
256 is octal 0400, so it looks like it's only getting the S_IRUSR part.
And that's because I steered you wrong; these are bitmasks, so you have to
use bitwise OR: S_IRUSR | S_IRGRP | S_IROTH
This was it.
I found one here:
http://computer-programming-forum.com/56-python/46da865fb41a1dc3.htm
Ansible worked on that as well:
https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py
(_symbolic_mode_to_octal, _apply_operation_to_mode,
_get_octal_mode_from_symbolic_perms)
Le 6
On Sat, Dec 6, 2014 at 1:03 PM, alexandre.feb...@gmail.com wrote:
I found one here:
http://computer-programming-forum.com/56-python/46da865fb41a1dc3.htm
Ansible worked on that as well:
https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py
(_symbolic_mode_to_octal,
On Sun, Dec 7, 2014 at 2:25 AM, Gary Oberbrunner ga...@oberbrunner.com
wrote:
On Sat, Dec 6, 2014 at 1:03 PM, alexandre.feb...@gmail.com wrote:
I found one here:
http://computer-programming-forum.com/56-python/46da865fb41a1dc3.htm
Ansible worked on that as well: