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

File.copy: Problem using four-digit chmod with leading 0 #168

Closed
kraileth opened this issue May 13, 2022 · 2 comments
Closed

File.copy: Problem using four-digit chmod with leading 0 #168

kraileth opened this issue May 13, 2022 · 2 comments

Comments

@kraileth
Copy link
Contributor

If using file.copy together with a four-digit chmod that has a leading zero (e.g. to clear the sticky bit), Comtrya errors out when trying to load the manifest like this:

manifest_load{manifest="foo.yaml"}: actions: invalid type: string "0644", expected u32 at line 3 column 3

Quoting does not help. Four-digit values without a leading 0 seem to be fine.

Example:

- action: file.copy
  from: some-file
  to: /var/testfile
  chmod: 0644

Comtrya version used: 0.7.4 on FreeBSD

@icepuma
Copy link
Member

icepuma commented Jun 5, 2022

@kraileth could you please confirm, that the issue is resolved as soon as Rust 1.61.0 is available for FreeBSD

@kraileth
Copy link
Contributor Author

kraileth commented Jun 7, 2022

@icepuma Both "644" and "0644" work now; Comtrya will accept either and set the permissions correctly. Thanks for fixing this!

@kraileth kraileth closed this as completed Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants