Slava Zanko
0f249bd9b5
Fixed errors while connect to IPv6 hosts
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:57 +03:00
Slava Zanko
32a9f8257d
Deprecated parser now used just in Hotlist widget.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:57 +03:00
Slava Zanko
12af8e5db0
fixed relative symlink operations. Symlink now stay relative
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:57 +03:00
Andrew Borodin
ea4078e52e
Ticket #2361 : VFS URI reimplementation
...
Code cleanup:
* (vfs_set_raw_current_dir): remove redundant check.
* VFS: minor optimizations.
* Fixed type of mode argument of vfs_class:chmod method.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:23 +03:00
Slava Zanko
91fe0d71bb
vfs_path_get_by_index(): added check for valid element index
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
5fa1070225
Fixed memory leaks in folowing functions:
...
* mc_opendir()
* mc_chdir()
* vfs_release_path()
* check_panel_timestamp()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
bba132381e
vfs_path_to_str() now return URL string instead of old representation
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
2ec4cc59ab
Added URL-like path parser
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
39462b9b76
Reorder VFS parser to work with VFS parameters:
...
* Removed vfs_path_element_t->raw_url_str;
* Changed some VFS prefixes (colon now used when need to split VFS prefix and VFS parameters);
* Removed vfs_translate_url() functions and related code;
* added converter of VFS parameters to string representation.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
e9ed6a41cf
Added function vfs_path_url_split() for parse VFS parameters
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
922114a1d0
Following prototypes of functions was changed in VFS-module API:
...
* archive_check
* archive_same
* open_archive
Added new functions:
* vfs_path_element_clone()
* vfs_path_clone()
* vfs_path_remove_element_by_index()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
997876a109
Remove vfs_url_t structure (replace with vfs_path_element_t)
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
3eafe7308a
Added serialization and deserialization for vfs_path_t object
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
ac939a1bea
Fixed path recoding in VFS modules
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
691c06ce30
removed vfs_path_t->unparsed variable
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
a5dc2de78b
Added vfs_change_encoding() and vfs_path_element_need_cleanup_converter() functions.
...
Changes for handling directory encoding.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
c0004807d4
vfs_path_element_t->encoding now handled in lib/vfs/path.c
...
Added testcase for testinh path encoding.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
cedad03833
Move vfs_get_encoding() to path.c and make as static function.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
b0df841a4a
Removed vfs_path_t->unparsed_encoding.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
405cc98cea
VFS: Make functions vfs_canon_and_translate() and vfs_canon() as static in lib/vfs/path.c
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
093128c532
VFS: Current directory handler now have type vfs_path_t
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
a12fdfbb0e
VFS: many changes for use vfs_path_t
...
* completed vfs_path_from_str();
* completed vfs_path_to_str() and vfs_path_to_str_elements_count();
* removed deprecated vfs_split();
* changes in all related code;
* new unit tests.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
9e4dc03e9e
lib/vfs/direntry.c: vfs_s_inode_from_path() and vfs_s_get_path() now handle vfs_path_t
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
1406eb5035
Following prototypes of functions was changed in VFS-module API:
...
* opendir
* stat
* lstat
* chdir
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:58 +03:00
Slava Zanko
41f2e27f8d
VFS: Use vfs_path_t in some interface functions
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:58 +03:00
Slava Zanko
3a1936aade
Added vfs_path_t structure
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:57 +03:00