From f7fbda14c8c1744e4c12416ed83ffdd97d99d2ef Mon Sep 17 00:00:00 2001 From: Tim McCormack Date: Tue, 5 Feb 2013 20:25:26 -0500 Subject: [PATCH] Use -- to treat filenames as non-option args to gpg. Ordinarily I'd also check that the filename was not "-", or perhaps get the absolute path, but in this case I know the filename. (Otherwise this could result in a hung process as gpg waited for stdin.) --- leiningen-core/src/leiningen/core/user.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leiningen-core/src/leiningen/core/user.clj b/leiningen-core/src/leiningen/core/user.clj index 9ce01764..6284ca6e 100644 --- a/leiningen-core/src/leiningen/core/user.clj +++ b/leiningen-core/src/leiningen/core/user.clj @@ -79,7 +79,7 @@ (let [{:keys [out err exit]} (try (shell/sh (gpg-program) "--quiet" "--batch" - "--decrypt" (str file)) + "--decrypt" "--" (str file)) (catch java.io.IOException e {:exit 1 :err (.getMessage e)}))] (if (pos? exit)