mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +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
|
||||
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))
|
||||
message (D_NORMAL, _("Setup"), _("Setup saved to %s%s%s"),
|
||||
mc_config_get_path (), PATH_SEP_STR, MC_CONFIG_FILE);
|
||||
message (D_NORMAL, _("Setup"), _("Setup saved to %s"), d2);
|
||||
else
|
||||
message (D_ERROR, _("Setup"), _("Unable to save setup to %s%s%s"),
|
||||
mc_config_get_path (), PATH_SEP_STR, MC_CONFIG_FILE);
|
||||
message (D_ERROR, _("Setup"), _("Unable to save setup to %s"), d2);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user