raggi / openssl-osx-ca

Simple periodic task to sync OSX Keychain certs to Homebrew installed OpenSSL & LibreSSL
Other
225 stars 24 forks source link

Prevent c_rehash from reading directories as args #10

Closed stouset closed 9 years ago

stouset commented 9 years ago

c_rehash chokes on some tmpdir names. For example:

$ /usr/local/Cellar/openssl/1.0.2/bin/c_rehash  /var/folders/dx/497n51w97pn8jtlp556yjj540001tt/T/openssl-osx-ca.02uEvIJl
Usage error; try -help.

Separating the file argument from the command by a double-hyphen solves the issue.

$ /usr/local/Cellar/openssl/1.0.2/bin/c_rehash -- /var/folders/dx/497n51w97pn8jtlp556yjj540001tt/T/openssl-osx-ca.02uEvIJl
Doing /var/folders/dx/497n51w97pn8jtlp556yjj540001tt/T/openssl-osx-ca.02uEvIJl