Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap chmod/chown to fix wildcard expansion error (#61)
If "sudo chmod +x /var/daos/cert_gen/*.sh" is executed after "sudo chown -R root:root /var/daos/cert_gen" then there is no guarantee that the /var/daos/cert_gen/*.sh part is properly expanded. This is because expansion is performed by the shell invoking sudo and not by the command which is run under sudo. If the invoking shell does not have x permission on /var/daos/cert_gen then chmod will be passed the literal string "/var/daos/cert_gen/*.sh" which it will assume to be a valid path, which it is not. Signed-off-by: Daniel Ahlin <[email protected]>
- Loading branch information