mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-03 22:34:21 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user