Escape arguments to filter commands

This will allow both the path to git-crypt and the path to the key file
to contain arbitrary characters, notably spaces.
This commit is contained in:
Andrew Ayer
2013-04-04 18:52:06 -07:00
parent b10fbcd299
commit 2b936c74f1
3 changed files with 22 additions and 17 deletions

View File

@@ -38,6 +38,7 @@
int exec_command (const char* command, std::ostream& output);
std::string resolve_path (const char* path);
void open_tempfile (std::fstream&, std::ios_base::openmode);
std::string escape_shell_arg (const std::string&);
#endif