Commit Graph

11455 Commits

Author SHA1 Message Date
Slava Zanko
82e07617ae Changed interface of function mc_symlink()
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
890f1f9242 Changed interface of functions mc_link() and mc_rename()
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
a78f87d30d Changed interface of following functions to handle vfs_path_t object as parameter:
* mc_chmod()
 * mc_chown()
 * mc_utime()
 * mc_readlink()
 * mc_unlink()
 * mc_mkdir()
 * mc_rmdir()
 * mc_mknod()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
cb2ad816f6 changed interface of function mc_setctl() for handle vfs_path_t object as parameter
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
eaa71ed519 Removed split_dir_name() function.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
e51c9e50fe Changed interface of function mc_opendir()
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
32c6bde080 Changed interface of mc_stat() and mc_lstat() functions
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:49 +03:00
Slava Zanko
a959d2843f added vfs_path_build_filename() function
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:49 +03:00
Slava Zanko
aecdc1a32e changed interface of function mc_chdir() for handle vfs_path_t object as parameter
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:49 +03:00
Slava Zanko
19201165a2 VFS core: vfs_s_free_inode() function have global visibility
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:49 +03:00
Slava Zanko
5d2e5f636d Added usage of VFS_S_USETMP flag
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:49 +03:00
Slava Zanko
f16bc71efb Ticket #2695: The vfs_path_t expansion to 'src/' subdirectory
Added vfs_subclass_flags_t type

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:49 +03:00
Andrew Borodin
71d1a118b0 Merge branch '2776_dir_selection_fix' into 4.8.1-stable
* 2776_dir_selection_fix:
  Ticket #2776: file selection reset after cd to ".." in remote VFS.
2012-04-16 12:45:02 +04:00
Andrew Borodin
0bd270a336 Ticket #2776: file selection reset after cd to ".." in remote VFS.
After cd from directory to ".." in remote VFS, directory selection is
reset (".." is selected instead of the previous directory).

Bug was introduced in c457eaf9b1.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-16 12:44:37 +04:00
Andrew Borodin
88bf4cc672 Merge branch '2776_archive_selection_in_root' into 4.8.1-stable
* 2776_archive_selection_in_root:
  Ticket #2776: file selection reset after exit from the archive in the root.
2012-04-13 14:57:45 +04:00
Andrew Borodin
222ee44bfe Ticket #2776: file selection reset after exit from the archive in the root.
After exit from archive located in the root of FS, file selection is
reset (/bin is selected instead of the archive).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-13 14:57:23 +04:00
Andrew Borodin
321d2260e0 Updated RU translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-10 15:20:01 +04:00
Slava Zanko
fd3c93df07 Merge branch '1868_replace_regexp_hangup' into 4.8.1-stable
* 1868_replace_regexp_hangup:
  Code optimization: memory allocation and free moved outside of loop.
  Ticket #1868: mcedit hang up on replace with regexp.
2012-04-09 12:34:03 +03:00
Slava Zanko
5f98155496 Code optimization: memory allocation and free moved outside of loop.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 12:33:27 +03:00
Slava Zanko
d2b72ad239 Ticket #1868: mcedit hang up on replace with regexp.
steps to reproduce:

 * create/open dummy file
 * replace (with regexp enabled)
 * on search string, put: ^ or $
 * on replacement string, put *any string*
 * on confirm replace, select All

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 12:33:27 +03:00
Slava Zanko
4b9d746741 Merge branch '2764_pcre_case_sentitive' into 4.8.1-stable
* 2764_pcre_case_sentitive:
  Ticket #2764: Case sensitive search with SEARCH_TYPE_PCRE
2012-04-09 11:34:57 +03:00
vokac
a99d2b2588 Ticket #2764: Case sensitive search with SEARCH_TYPE_PCRE
When mc is compiled with SEARCH_TYPE_PCRE (and without SEARCH_TYPE_GLIB,
e.g. on systems with old glib < 2.14) case (in)sensitive search works in opposite.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 11:34:37 +03:00
Andrew Borodin
22785c8823 Ticket #2774: mc.ext: comment out the empty rule for texinfo.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-07 16:54:44 +04:00
Andrew Borodin
f5c4cd763f Tweak EN and RU man pages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 16:14:57 +04:00
Andrew Borodin
69b580d1a0 Merge branch '1851_xdg_fix' into 4.8.1-stable
* 1851_xdg_fix:
  Tweak description of MC_HOME environment variable.
  Ticket #1851: fixed support of XDG_* shell variables
2012-04-04 16:00:29 +04:00
Andrew Borodin
41056150e8 Tweak description of MC_HOME environment variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 15:57:11 +04:00
Andrew Borodin
a8b8a82687 Ticket #1851: fixed support of XDG_* shell variables
...broken in 13a660d2e0

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 15:57:11 +04:00
Slava Zanko
f3a2e41872 Merge branch '2663_background_segfault' into 4.8.1-stable
* 2663_background_segfault:
  Ticket #2663: Segmentation fault while background copying
2012-04-04 14:01:32 +03:00
Slava Zanko
9f78c3fc4f Ticket #2663: Segmentation fault while background copying
Action to reproduce bug:
Start copy/move file/files (around 100mb+) in background

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-04 14:01:21 +03:00
Andrew Borodin
108cdbfaca Ticket #2769: crash on compare files if one panel is not in the listing mode.
Added check of panel types before run file comparision.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-04 14:03:43 +04:00
Sergei Trofimovich
a29c6150b9 ebuild.syntax: added 'pushd' and 'popd' keywords
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-04-04 14:03:23 +04:00
Slava Zanko
1e92692220 Merge branch '2692_manpage_broken_date' into 4.8.1-stable
* 2692_manpage_broken_date:
  Ticket #2692: Date not set properly in manpage
2012-04-02 13:51:30 +03:00
Slava Zanko
344130d18d Ticket #2692: Date not set properly in manpage
After installing mc-4.8.1 the footer of the manpage says:
MC Version VER @DATE_OF_MAN_PAGE@ MC(1)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-02 13:51:05 +03:00
Andrew Borodin
b7eb59e485 Ticket #2384: allow rebind Fx keys in the file manager.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-02 13:38:22 +03:00
Andrew Borodin
ae61b7286b Merge branch '2386_LANG_case_insensitive' into 4.8.1-stable
* 2386_LANG_case_insensitive:
  Ticket #2386: interpretation of LANG variable needs to be case insensitive.
2012-03-28 13:11:13 +04:00
Andrew Borodin
d474cad4e3 Ticket #2386: interpretation of LANG variable needs to be case insensitive.
On Mac OS X, in the iTerm2, when the LANG variable is set to en_US.utf-8
mcedit specifically does not correctly accept input (every character press
is interpreted as a '.'). However when LANG is set to en_US.UTF-8 mcedit
works correctly (see also http://code.google.com/p/iterm2/issues/detail?id=204).

On Linux, nl_langinfo(CODESET) returns upper case UTF-8 whether the LANG is set
to utf-8 or UTF-8.
On Mac OS X, it returns the same case as the LANG input.

So let tranform result of nl_langinfo(CODESET) to upper case unconditionally.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-03-28 13:10:37 +04:00
Slava Zanko
246ce0b350 Merge branch '2761_editor_save_as_dir' into 4.8.1-stable
* 2761_editor_save_as_dir:
  Ticket #2761: save file on top of existing directory changes dir's permissions
2012-03-27 11:43:04 +03:00
Slava Zanko
630b6a491f Ticket #2761: save file on top of existing directory changes dir's permissions
Steps to reproduce:

mkdir foo
chmod 0700 foo
mcedit bar
ls -ld foo
drw-r--r-- 1 slyfox users 0 Mar 22 22:10 foo

We've lost dir's permissions.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-27 11:42:44 +03:00
Slava Zanko
d79db98927 Merge branch '2278_preserve_attrs_if_dest_exists' into 4.8.1-stable
* 2278_preserve_attrs_if_dest_exists:
  Ticket #2278: Problem in the Copy operation
2012-03-26 11:06:03 +03:00
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