Commit Graph

12599 Commits

Author SHA1 Message Date
Slava Zanko
8b3ea959f0 smbfs: implmentation of file-related functions. Code refactoring
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-12-04 12:01:46 +03:00
Slava Zanko
d7f3a8ab9f Code refactoring: extract functions from another function
Extract from: sftpfs_cb_open()
To:
 * vfs_s_create_file_handler() and
 * vfs_s_open_file_post_action()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-12-04 12:01:46 +03:00
Slava Zanko
b775936c61 smbfs: ask credentials per host, nor per URL
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-12-04 12:01:46 +03:00
Slava Zanko
867687574f VFS: Add function for search superblock by any condition via callback 2013-12-04 12:01:46 +03:00
Slava Zanko
b7ec1db5ae Add auth dialog
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-12-04 12:01:46 +03:00
Slava Zanko
14896492f5 Module implementation:
* Add functions for handle directory listings;
* Add functions for calling *stat on directories or files;
* Add unit tests;
* Add integration tests for smbfs module.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-12-04 11:57:02 +03:00
Slava Zanko
95033da7c5 Rename function vfs_s_get_path() to vfs_get_super_by_vpath()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-12-04 11:57:02 +03:00
Slava Zanko
1a86e4c247 Move function gboolean sftpfs_show_error (GError ** error) to lib/vfs/utilvfs
and rename to gboolean vfs_show_gerror (GError ** error);

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-12-04 11:57:02 +03:00
Slava Zanko
b50a49e698 Add empty vfs module
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-12-04 11:57:02 +03:00
Slava Zanko
32b2d27819 Add a draft of scenarios
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-12-04 11:57:02 +03:00
Slava Zanko
422bd9364c Add m4 script for search Samba's development files.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-12-04 11:56:12 +03:00
Slava Zanko
666b4c6a8f Ticket #1: use libsmbclient library in smb vfs.
Remove old implementation

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-12-04 11:56:12 +03:00
Slava Zanko
a8ffc26817 Updated doc/NEWS file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-29 21:42:56 +03:00
Slava Zanko
9c76ec340c Updated translations from Transifex
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-29 17:03:59 +03:00
Slava Zanko
6df3e6c8b4 Updated the hints translations from Transifex
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-29 17:01:14 +03:00
Slava Zanko
af99dafd77 Fix for running TR-utilities under source root
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-29 17:00:46 +03:00
Slava Zanko
b75bf0cf11 Fix TX-address for getting hint-files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-29 16:48:31 +03:00
Andrew Borodin
2903009ec7 Merge branch '3073_urar5_spaces_fix'
* 3073_urar5_spaces_fix:
  Ticket #3073: urar helper: fix handling filenames with spaces for unrar v5.
2013-11-29 14:11:43 +04:00
David Haller
9d190f66eb Ticket #3073: urar helper: fix handling filenames with spaces for unrar v5.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-29 14:11:08 +04:00
Andrew Borodin
4e6dc8cbc9 Ticket #3044: invalid order of filename and line number for external editor.
Most applications require the line number to precede the filename,
with apparently 'vim' and 'mcedit' being the only exceptions
(they accept both possible orders). E.g. 'emacs +10 /etc/services'
opens that file at line 10, but 'emacs /etc/services +10' simply
ignores the line number.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-29 14:03:53 +04:00
Andrew Borodin
4c3d5df63b (read_file_system_list): remove extra }.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 14:07:51 +04:00
Andrew Borodin
50b599a6a7 Merge branch '3051_cleanup'
* 3051_cleanup: (27 commits)
  Use AC_HEADER_MAJOR.
  Don't use g_memmove().
  Fix use of uninitialized memory in sigaction structure.
  Clarify usage of MSG_IDLE in mcedit.
  Fix search in internal viewer in case of nroff mode.
  Use g_list_free_full().
  Use g_slist_free_full().
  Fix directory content counting before file operation.
  (me_remote): don't use undefined _GL_UNUSED.
  (file_mask_dialog): don't call tilde_expand() because vfs_path_from_str() returns an absolute path.
  Fix reloading of the root directory.
  Reduce cppcheck warnings (style) in src subdirectory.
  Clarify usage of WPanel widget.
  Rename structures:
  Reduce cppcheck warnings (style) in lib subdirectory.
  cppcheck: reduce variable scope.
  Use UTF8_CHAR_LEN instead of a magic number
  (lcsubstr): fix memory deallocation.
  (panel_get_field_by_title): fix memory leak.
  (sftpfs_open_file): fix memory leak.
  ...
2013-11-25 13:49:02 +04:00
Andrew Borodin
14973bfe79 Use AC_HEADER_MAJOR.
Instead of checking for sys/mkdev.h headerfile, there is the
AC_HEADER_MAJOR helper for how to get major(), minor(), makedev().

Sinc with GLib efb1701bf3baf6f5b05fd1a7a5a4ff990a7dc460.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:40 +04:00
Andrew Borodin
77717b67bb Don't use g_memmove().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:40 +04:00
Andrew Borodin
bb65b46790 Fix use of uninitialized memory in sigaction structure.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:40 +04:00
Egmont Koblinger
255cc340b5 Clarify usage of MSG_IDLE in mcedit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:40 +04:00
Andrew Borodin
377807c5de Fix search in internal viewer in case of nroff mode.
(mc_search__run_regex): fix conditions.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:40 +04:00
Andrew Borodin
29f6dd2a84 Use g_list_free_full().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:40 +04:00
Andrew Borodin
90dc6fffac Use g_slist_free_full().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:40 +04:00
Andrew Borodin
d0a082fbd5 Fix directory content counting before file operation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:40 +04:00
Andrew Borodin
dcfba47c8e (me_remote): don't use undefined _GL_UNUSED.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:40 +04:00
Andrew Borodin
1b774ac1fe (file_mask_dialog): don't call tilde_expand() because vfs_path_from_str() returns an absolute path.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:40 +04:00
Andrew Borodin
673d438938 Fix reloading of the root directory.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:40 +04:00
Slava Zanko
b136b2fa9f Reduce cppcheck warnings (style) in src subdirectory.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:40 +04:00
Andrew Borodin
9fcff743a7 Clarify usage of WPanel widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:40 +04:00
Slava Zanko
e351822191 Rename structures:
* FileOpContext -> file_op_context_t
* FileOpContextUI -> file_op_context_ui_t

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:40 +04:00
Slava Zanko
0ed4a91d7d Reduce cppcheck warnings (style) in lib subdirectory.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Slava Zanko
0d489acd58 cppcheck: reduce variable scope.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Slava Zanko
a3b8a2f005 Use UTF8_CHAR_LEN instead of a magic number
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Andrew Borodin
74d4efe871 (lcsubstr): fix memory deallocation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:39 +04:00
Andrew Borodin
e986039142 (panel_get_field_by_title): fix memory leak.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:39 +04:00
Andrew Borodin
917d463d28 (sftpfs_open_file): fix memory leak.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:39 +04:00
Andrew Borodin
6cbb11673c src/vfs/undelfs/undelfs.c: fix memory leaks.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2013-11-25 13:47:39 +04:00
Slava Zanko
3feb3f26d6 Improve developer's docs by adding info about new make targets:
cppcheck and indent.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Slava Zanko
bd69b8dd31 Suppress cppcheck errors
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Slava Zanko
41f9b60a15 Add indent rule in makefile
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Slava Zanko
c6e094f483 Added makefile's targets for run cppcheck
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
tiandrey
b34e1d2988 From ticket #3057: Update for Syntax.in file
This patch fixes syntax highlighting for files in .config directory
(I was wondering why my rc.lua file in ~/.config/awesome is highlighted
as 'Java File' while in /etc/xdg/awesome it was highlighted correctly).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Slava Zanko
49805a3e23 Ticket #3051: Prepare for release mc-4.8.11
From ticket #3044: mc.lib typo: linenog
mc.lib has a typo. "less=%filename +%linenog" instead of "+%lineno"

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2013-11-25 13:47:39 +04:00
Andrew Borodin
ab344e21b0 Merge branch '3096_save_setup_message'
* 3096_save_setup_message:
  Ticket #3096: clarify "Setup saved to ~/.config/mc/ini" message.
2013-11-23 14:58:38 +04:00