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 <rusty@rustcorp.com.au>
This commit is contained in:
parent
8281008b08
commit
f1e994a095
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue