puppetlabs / puppetlabs-sshkeys_core

Apache License 2.0
4 stars 32 forks source link

Return true on trusted_path if path is really trusted. #79

Open Le-onardo opened 10 months ago

Le-onardo commented 10 months ago

If drop_privileges is set to false (default is true), the trusted_path function does check if the path is trusted or not and returns false if this isn't the case. If this conditional path is not hit, there is no return true, which leaves the state of the function 'nil', thus being false.

This change should account for the true case.

CLAassistant commented 10 months ago

CLA assistant check
All committers have signed the CLA.