trifectatechfoundation / sudo-rs

A memory safe implementation of sudo and su.
Other
2.9k stars 79 forks source link

sudoers/@include: fails to parse backslash inside quotes #674

Closed japaric closed 1 year ago

japaric commented 1 year ago

relevant test https://github.com/memorysafety/sudo-rs/blob/85aecc45677b158d77b1f61c5d79263e89bfef7d/test-framework/sudo-compliance-tests/src/sudoers/include.rs#L96-L105

the backslash does not need to be escaped when it appears inside double quotes