Skip to content

Commit f1e994a

Browse files
committed
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 <[email protected]>
1 parent 8281008 commit f1e994a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightningd/options.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ static bool opt_show_s32(char *buf, size_t len, const s32 *u)
447447

448448
static bool opt_show_mode(char *buf, size_t len, const mode_t *m)
449449
{
450-
snprintf(buf, len, "\"%04o\"", (int) *m);
450+
snprintf(buf, len, "%04o", (int) *m);
451451
return true;
452452
}
453453

0 commit comments

Comments
 (0)