trifectatechfoundation / sudo-rs

A memory safe implementation of sudo and su.
Other
2.88k stars 77 forks source link

su parses `'-g ' ghost` as `-g ghost` #791

Closed japaric closed 10 months ago

japaric commented 10 months ago

whereas ogsu parses that as -g ' ' ghost

relevant test

https://github.com/memorysafety/sudo-rs/blob/d10d42f0d65d40554781ef47ff4877dac01cf36e/src/su/cli.rs#L485-L494