Welcome to little lamb

Code » ssp » commit e9d4ef5

remove: Show entry (w/ secret) before removing it

author Olivier Brunel
2023-08-20 14:41:04 UTC
committer Olivier Brunel
2023-08-20 14:55:39 UTC
parent 3a10396dea9cada08e0dcf2cd9c93d3f92046836

remove: Show entry (w/ secret) before removing it

Acts as a safe-guard, just in case. Use --quiet to skip it.

src/ssp/remove.c +3 -0

diff --git a/src/ssp/remove.c b/src/ssp/remove.c
index a532236..f169457 100644
--- a/src/ssp/remove.c
+++ b/src/ssp/remove.c
@@ -66,6 +66,9 @@ remove_main(int argc, const char *argv[], const char *env[], const char usage[],
     if (!r)
         dief(EX_DATA_ERR, "no entry ", ESC, entry, ESC, " in database");
 
+    dbg("showing entry");
+    show_entry(OPT_SECRET, ssp);
+
     quiet("Removing entry ", ESC, entry, ESC, "...");
     rebuild_db(entry, NULL, NULL, ssp);