pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

mode parameter does not support other mode than read/write/exec

Open julienlavergne opened this issue 3 years ago • 0 comments

Describe the bug

According to chmod man page, there is other bits that can be set on files and directories. https://www.man7.org/linux/man-pages/man1/chmod.1.html

Today, when those bits are set, pyinfra convert the mode to the integer 0 because it cannot recognize a valid conversion between the mode as a string and the integer value.

To Reproduce

use mode=1777" or mode="u=rwx,g=rwxs,o=rwx", or anything that makes use of those additional bits.

Expected behavior

Support for all bits in the mode parameter.

Meta

v2.1

julienlavergne avatar Jun 01 '22 03:06 julienlavergne