mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Moved do_possible_cd() function from main.c to execute.c.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
d21c8dc448
commit
cf2ecb4491
@ -98,6 +98,19 @@ pre_exec (void)
|
||||
}
|
||||
|
||||
|
||||
#ifdef HAVE_SUBSHELL_SUPPORT
|
||||
static void
|
||||
do_possible_cd (const char *new_dir)
|
||||
{
|
||||
if (!do_cd (new_dir, cd_exact))
|
||||
message (D_ERROR, _("Warning"),
|
||||
_(" The Commander can't change to the directory that \n"
|
||||
" the subshell claims you are in. Perhaps you have \n"
|
||||
" deleted your working directory, or given yourself \n"
|
||||
" extra access permissions with the \"su\" command? "));
|
||||
}
|
||||
#endif /* HAVE_SUBSHELL_SUPPORT */
|
||||
|
||||
static void
|
||||
do_execute (const char *shell, const char *command, int flags)
|
||||
{
|
||||
|
11
src/main.c
11
src/main.c
@ -317,17 +317,6 @@ save_cwds_stat (void)
|
||||
}
|
||||
|
||||
#ifdef HAVE_SUBSHELL_SUPPORT
|
||||
void
|
||||
do_possible_cd (const char *new_dir)
|
||||
{
|
||||
if (!do_cd (new_dir, cd_exact))
|
||||
message (D_ERROR, _("Warning"),
|
||||
_(" The Commander can't change to the directory that \n"
|
||||
" the subshell claims you are in. Perhaps you have \n"
|
||||
" deleted your working directory, or given yourself \n"
|
||||
" extra access permissions with the \"su\" command? "));
|
||||
}
|
||||
|
||||
void
|
||||
do_update_prompt (void)
|
||||
{
|
||||
|
@ -105,8 +105,6 @@ extern char *mc_home;
|
||||
extern char *mc_home_alt;
|
||||
char *get_mc_lib_dir (void);
|
||||
|
||||
void do_possible_cd (const char *dir);
|
||||
|
||||
void done_menu (void);
|
||||
void init_menu (void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user