Skip to content
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

rsync --chmod doesn't fully support chmod(1) mode syntax #678

Open
steepnought opened this issue Dec 8, 2024 · 0 comments
Open

rsync --chmod doesn't fully support chmod(1) mode syntax #678

steepnought opened this issue Dec 8, 2024 · 0 comments

Comments

@steepnought
Copy link

According to the rsync 3.3.0 manpage, rsync --chmod should follow the normal parsing rules specified in the chmod(1) manpage. This is not quite true as the following doesn't work:

$ rsync -av --chmod=g=o,o= testfile1 testfile2
rsync: Invalid argument passed to --chmod (g=o)
rsync error: syntax or usage error (code 1) at main.c(1782) [client=3.3.0]

The intention here is to copy the permissions from others to group (g=o), then clear others' permissions (o=).

chmod(1) supports this (POSIX calls it permcopy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant