mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-10 21:42:00 +03:00
(save_setup_cmd): remove home directory and password
...from message of setup saving. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
82b27ead4d
commit
d2bd11be9b
@ -1568,12 +1568,17 @@ dirsizes_cmd (void)
|
|||||||
void
|
void
|
||||||
save_setup_cmd (void)
|
save_setup_cmd (void)
|
||||||
{
|
{
|
||||||
|
char *d1;
|
||||||
|
const char *d2;
|
||||||
|
|
||||||
|
d1 = g_build_filename (mc_config_get_path (), MC_CONFIG_FILE, (char *) NULL);
|
||||||
|
d2 = strip_home_and_password (d1);
|
||||||
|
g_free (d1);
|
||||||
|
|
||||||
if (save_setup (TRUE, TRUE))
|
if (save_setup (TRUE, TRUE))
|
||||||
message (D_NORMAL, _("Setup"), _("Setup saved to %s%s%s"),
|
message (D_NORMAL, _("Setup"), _("Setup saved to %s"), d2);
|
||||||
mc_config_get_path (), PATH_SEP_STR, MC_CONFIG_FILE);
|
|
||||||
else
|
else
|
||||||
message (D_ERROR, _("Setup"), _("Unable to save setup to %s%s%s"),
|
message (D_ERROR, _("Setup"), _("Unable to save setup to %s"), d2);
|
||||||
mc_config_get_path (), PATH_SEP_STR, MC_CONFIG_FILE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user