I expected dotter to elevate before checking the state of the file/dir as I had specified the "owner" field. Or perhaps elevate if it gets a permission denied.
Actual behavior
Dotter fails with a permission denied.
$ ▶ dotter -v
[ INFO] [+] template "test" -> "/tmp/nonreadable/test"
[ERROR] Failed to create template "test" -> "/tmp/nonreadable/test"
Caused by:
detect templated file's current state
get state of target
read contents of file that isn't symbolic or directory
Permission denied (os error 13)
Environment
Description
When specifying a target directory that dotter can't read, dotter fails to create symlinks or templates, even when owner is specified as root.
Reproduction
Create directory user can't read.
Expected behavior
I expected dotter to elevate before checking the state of the file/dir as I had specified the "owner" field. Or perhaps elevate if it gets a permission denied.
Actual behavior
Dotter fails with a permission denied.