From b233226c78652d4699c68efa417603201cb9c897 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 26 Feb 2024 22:50:49 -0600 Subject: [PATCH] Client: Handle ambiguity with `create --password --keyfile` See https://github.com/neosmart/SecureStore/issues/20 --- Client/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/Program.cs b/Client/Program.cs index 9e56c82..89501ab 100644 --- a/Client/Program.cs +++ b/Client/Program.cs @@ -392,7 +392,7 @@ void printVersion() } // We need to differentiate between null (not set) and empty (empty) - if (password == string.Empty && string.IsNullOrEmpty(keyfile)) + if (password == string.Empty && (string.IsNullOrEmpty(keyfile) || !File.Exists(keyfile))) { if (command == "create") {