mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-05 11:04:42 +03:00
Merge branch '119_conf_option_preserve_attributes'
* 119_conf_option_preserve_attributes: Ticket #119: Persistent global configuration option for "Preserve attributes" wanted
This commit is contained in:
commit
ff860abd70
@ -166,6 +166,9 @@ filegui__check_attrs_on_fs(const char *fs_path)
|
|||||||
{
|
{
|
||||||
struct statfs stfs;
|
struct statfs stfs;
|
||||||
|
|
||||||
|
if (!setup_copymove_persistent_attr)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (statfs(fs_path, &stfs)!=0)
|
if (statfs(fs_path, &stfs)!=0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
@ -89,6 +89,7 @@ int startup_right_mode;
|
|||||||
/* Ugly hack to allow panel_save_setup to work as a place holder for */
|
/* Ugly hack to allow panel_save_setup to work as a place holder for */
|
||||||
/* default panel values */
|
/* default panel values */
|
||||||
int saving_setup;
|
int saving_setup;
|
||||||
|
int setup_copymove_persistent_attr = 1;
|
||||||
|
|
||||||
static const struct {
|
static const struct {
|
||||||
const char *key;
|
const char *key;
|
||||||
@ -225,6 +226,7 @@ static const struct {
|
|||||||
{ "mcview_remember_file_position", &mcview_remember_file_position },
|
{ "mcview_remember_file_position", &mcview_remember_file_position },
|
||||||
{ "auto_fill_mkdir_name", &auto_fill_mkdir_name },
|
{ "auto_fill_mkdir_name", &auto_fill_mkdir_name },
|
||||||
{ "reverse_files_only", &reverse_files_only },
|
{ "reverse_files_only", &reverse_files_only },
|
||||||
|
{ "copymove_persistent_attr", &setup_copymove_persistent_attr },
|
||||||
{ 0, 0 }
|
{ 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -35,4 +35,6 @@ extern int verbose;
|
|||||||
extern int mouse_close_dialog;
|
extern int mouse_close_dialog;
|
||||||
extern int reverse_files_only;
|
extern int reverse_files_only;
|
||||||
|
|
||||||
|
extern int setup_copymove_persistent_attr;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user