Slava Zanko
82dcbe2194
Ticket #2278 : Problem in the Copy operation
...
Previously, copying a file does not change access permissions of the destination
file if the check box "Preserve attributes" in the Copy window is not set.
For some time it is not so: if you uncheck the "Preserve attributes" then access
permissions of the destination file are set in accordance with the value of
umask, which can lead to information disclosure(i.e. security problem).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-26 11:04:43 +03:00
Slava Zanko
4fd3dee93a
Merge branch '2755_zero_length_preallocate' into 4.8.1-stable
...
* 2755_zero_length_preallocate:
Ticket #2755 : cannot copy zero-length files with [Preallocate space] option
2012-03-25 15:23:17 +03:00
Slava Zanko
97e72517c3
Ticket #2755 : cannot copy zero-length files with [Preallocate space] option
...
If [Preallocate space] option is enabled, MC can't copy zero-length files:
"Cannot preallocate space for target file ... Invalid argument (22)"
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-25 15:22:57 +03:00
Slava Zanko
a68678cbee
Updated doc/NEWS file
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-20 11:30:24 +03:00
Slava Zanko
db2a45161b
Updated translations from transifex.net
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-20 11:30:23 +03:00
Slava Zanko
70d6e5a09f
Merge branch '2741_cleanup' into 4.8.1-stable
...
* 2741_cleanup: (22 commits)
Ticket #2748 : wrong message in menu item "Delete tagged files if a copy exists in the other directory".
(extfs_get_path_mangle): renamed to extfs_get_path_int
Typo fix in message
(expand_format): minor optimization.
Fixed preprocessor conditions.
find.c: drop support of legacy config option.
Added macros for Layout and Misc sections of main config file.
Reorder fields in mc_global struct and change type for some of them.
Removed useless return.
Editor: avoid extra screen redraw.
editdraw.c: removed unused defines.
Tweak key bindings.
Tweak background operations support.
Removed mcserv.8 target.
lib/tty/win.c: includes cleanup.
Include sys/param.h conditionally.
Check assert.h header and use it conditionally.
Minor optimization of memory allocation for string copy.
(examine_cd): split in two functions to be unit test friendly.
Removed check of unused functions.
...
2012-03-19 19:26:29 +03:00
Victor Homyakov
27bcf2ee98
Ticket #2748 : wrong message in menu item "Delete tagged files if a copy exists in the other directory".
2012-03-19 13:34:34 +03:00
Andrew Borodin
6fc8676c34
(extfs_get_path_mangle): renamed to extfs_get_path_int
...
and chnaged type of returned value to pointer to constant.
Related changes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:25 +03:00
Slava Zanko
57105745e2
Typo fix in message
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-19 13:34:22 +03:00
Andrew Borodin
457dbb98bf
(expand_format): minor optimization.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
96507a8ae0
Fixed preprocessor conditions.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
247c8948ca
find.c: drop support of legacy config option.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
4ef9bf5119
Added macros for Layout and Misc sections of main config file.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
885593b413
Reorder fields in mc_global struct and change type for some of them.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
38cecd4dc3
Removed useless return.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
85f57fc4c1
Editor: avoid extra screen redraw.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:22 +03:00
Andrew Borodin
a037e6dcaf
editdraw.c: removed unused defines.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
b33b64dc8c
Tweak key bindings.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
b80864431c
Tweak background operations support.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
e1b4dc7f1e
Removed mcserv.8 target.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
c0e26f43fd
lib/tty/win.c: includes cleanup.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
1dc00dc3d2
Include sys/param.h conditionally.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
646de3f88f
Check assert.h header and use it conditionally.
...
assert(3) should be replaced with g_assert().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
87fc4a2097
Minor optimization of memory allocation for string copy.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:34:21 +03:00
Andrew Borodin
19919b1831
(examine_cd): split in two functions to be unit test friendly.
...
Forgotten commit. This one must be before
3a2db1ee36
.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:33:40 +03:00
Andrew Borodin
92676ef438
Removed check of unused functions.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:17:55 +03:00
Andrew Borodin
08f21fd096
Removed check of unused header files.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:17:55 +03:00
Andrew Borodin
b471e15288
Ticket #2741 : code cleanup before 4.8.1-stable release.
...
Removes references to AC_HEADER_STDC macro, marked as obsolescent
in the Autoconf 2.60 release.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 13:17:55 +03:00
Andrew Borodin
f17f7cd760
Allow setup mc home directory using MC_HOME environment variable.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:59:01 +03:00
Andrew Borodin
20b8016840
Tweak arguments parsing
...
...to allow to show info about mc options regardless of the fact that
configuration directories cannot be created.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:58:56 +03:00
Andrew Borodin
176ae14711
Handle error of mc main loop.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:50:57 +03:00
Andrew Borodin
bb1e8f0e37
Ticket #2738 : handle errors at mc sturtup stage.
...
Don't run MC if configuration directory cannot be created.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-19 11:49:06 +03:00
Andrew Borodin
62b6023c08
Support of use ~ as home directory in hotlist.
...
Expand tilde while vfs path canonicalize.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 16:38:13 +03:00
Andrew Borodin
b534ce73b7
Ticket #2747 : fixups of hotlist loading.
...
Path transformation while loading hotlist breaks shell variable
substitution.
Load paths from hotlist as is withowt any transformation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 16:35:34 +03:00
Andrew Borodin
dec60116d7
Support of disable of shell variables substitution in autocompletion.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 14:11:56 +03:00
Andrew Borodin
3a2db1ee36
Added tests for examine_cd() function.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 14:11:41 +03:00
Andrew Borodin
1233059de6
Support of disable of shell variables substitution in the command line.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 14:11:20 +03:00
Andrew Borodin
e2c5363eb9
(strutils_unescape): allow disable shell variable substitution.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 14:11:05 +03:00
Andrew Borodin
8f57c243d0
Ticket #2451 : allow do not variable substite in the command line.
...
Environment variable should not be substituted if escaping of dollar
sign is used: \$VAR.
Initial steps:
(do_cd): changed return type from int to gboolean.
(examine_cd): likewise and some cleanup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-12 14:10:51 +03:00
Andrew Borodin
0932051fd2
Fixup of getting stat info before file operation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 19:40:30 +03:00
idispatch
bd6afefeee
Ticket #2708 : Added ActionScript file syntax highlighting
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-08 10:45:16 +03:00
Andrew Borodin
036abc7286
Fixed location of hotlist query dialogs.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:44:37 +03:00
Andrew Borodin
110886fde6
Added D_CENTER flag to query dialog flags
...
...to forced place a query dialog in the center of the screen.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-08 10:44:24 +03:00
Andrew Borodin
c8151646f6
Ticket #2521 : fixup of panel size after layout change.
...
Now each layout type has independent options.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-07 11:47:09 +03:00
Ilia Maslakov
ec6d27b7de
Ticket #2628 (shift-tab, ctrl-tab incorrect works)
...
fixed trouble with tab + ctrl/shift modifiers then mc started into xterm.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-07 11:44:42 +03:00
Egmont Koblinger
5cebdc4bba
Ticket #2684 (selected file must be into the visible area).
...
After resize the window, the cursor line disappears, selected file was hide, but mustn't.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-07 11:42:19 +03:00
Andrew Borodin
9a406992a5
Ticket #2705 : the 0x prefix for hexadecimal search is optional now.
...
Hexadecimal values like "2d f0" can be used as well as "0x2d 0xf0"
in all search dialogs where hexadecimal search is supported.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-07 11:39:12 +03:00
Ilia Maslakov
3aa313358a
Ticket #2726 (mcedit nonpersistent selection must reset after cursor moved)
...
reset selection after END/HOME/PgDn/PgUp pressed only if 'persistent selection' is switched off.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-03-07 11:33:48 +03:00
Andrew Borodin
2d9e2bb837
Ticket #2736 : dont't reload panel forced before file operations
...
...to avoid actions on wrong files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-07 11:30:34 +03:00
Sergei Trofimovich
398765e790
configure.ac: treat firefox as browser as well
...
Found out by Michał Górny
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
(cherry picked from commit 1da8ab58f8
)
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-23 17:21:54 +03:00