From f1e994a0951980633b39ff6858d12ed371b36e6e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 2 Jun 2023 12:06:04 +0930 Subject: [PATCH] lightningd: fix `listconfigs` `rpc-file-mode` It literally contained \" to avoid it being interpreted as a literal; now we have OPT_SHOWINT we no longer need this hack. It's obscure, so I'm not bothering with a deprecation cycle. Changelog-Fixed: JSON-RPC: `listconfigs` `rpc-file-mode` no longer has gratuitous quotes (e.g. "0600" not "\"0600\""). Signed-off-by: Rusty Russell --- lightningd/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/options.c b/lightningd/options.c index ee040b2b8..cdc396449 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -447,7 +447,7 @@ static bool opt_show_s32(char *buf, size_t len, const s32 *u) static bool opt_show_mode(char *buf, size_t len, const mode_t *m) { - snprintf(buf, len, "\"%04o\"", (int) *m); + snprintf(buf, len, "%04o", (int) *m); return true; }