Yury V. Zaytsev
cb0d7a36ff
Ticket #1867 : fish: omit '-l' parameter for userless URLs.
...
Add the user name to the ssh command line only if it's not the same as
the local logged-in user. OpenSSH will take it as a default value
anyway, but otherwise we'll override ~/.ssh/config settings which might
be not what the user wants.
* Factored out vfs_get_local_username()
* Moved default-user detection to fish subsystem (URL_USE_ANONYMOUS)
* Slight modifications to the comments and wording
2009-12-25 18:57:27 +03:00
Andrew Borodin
dc604d811a
The check result of g_new(), g_new0(), g_malloc(), g_malloc0() and g_realloc() is useless.
...
g_new(), g_new0(), g_malloc(), g_malloc0() and g_realloc() functions
never return NULL and call abort() on fail. So check result of these
functions is useless. g_try_new(), g_try_new0(), g_try_malloc(),
g_try_malloc0() and g_try_realloc() functions are used instead.
Some minor optimization and code formatting are also performed.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-12-16 11:10:43 +02:00
Vit Rosin
b6875454b2
Unifying of g_strconcat() calls
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-12-16 11:10:43 +02:00
Sergei Trofimovich
66371454c7
doxygen: various warning fixes
...
Fixes such warnings:
mc/src/viewer/mcviewer.h:1: Warning: the name `view.h' supplied as the second argument
in the \file statement is not an input file
mc/vfs/vfs.c:267: Warning: explicit link request to 'op' could not be resolved
mc/src/strescape.c:219: Warning: Found unknown command `\params'
mc/src/strescape.c:153: Warning: Found unknown command `\params'
mc/src/strescape.c:187: Warning: Found unknown command `\params'
mc/src/strescape.c:219: Warning: Found unknown command `\params'
mc/src/strescape.c:153: Warning: Found unknown command `\params'
mc/src/strescape.c:187: Warning: Found unknown command `\params'
mc/vfs/fish.c:33: Warning: explicit link request to 'sh' could not be resolved
mc/vfs/fish.c:33: Warning: Found unknown command `\host'
mc/vfs/ftpfs.c:43: Warning: Found unknown command `\hobit'
mc/vfs/sfs.c:26: Warning: explicit link request to 'ugz' could not be resolved
mc/vfs/vfs.c:267: Warning: explicit link request to 'op' could not be resolved
mc/vfs/vfs.c:267: Warning: explicit link request to 'op' could not be resolved
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-12-16 11:10:42 +02:00
Slava Zanko
c0ebaf5bd3
Ticket #1796 : FTPFS does not work in active mode.
...
Fix commit for work in passive ftp-mode.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-15 13:26:03 +02:00
Slava Zanko
d712d2638e
Ticket #1796 : FTPFS does not work in active mode
...
Fixed error with active mode of ftpfs.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-12-02 16:05:26 +02:00
Slava Zanko
4f6c5e7811
Ticket #1708 : ftp permissions
...
Some FTP-servers don't have chmon support (or don't able to change permissions in some cases).
This commit will add "ignore_ftp_chattr_errors" section into config file.
Now default behavior: ignore FTP errors related to chmod operations.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-11-12 11:06:52 +02:00
Ilia Maslakov
91be46a861
Ticket #1726 (AI_ADDRCONFIG fix)
...
fixed undeclared AI_ADDRCONFIG under uclibc <0.9.29
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-10-20 18:13:20 +00:00
Andrew Borodin
f2e6817363
Ticket #1414 : small refactoring before major modifications.
...
Fixed missed includes.
Fised widget_set_size() declaration.
Moved default widget callback (default_proc()) from dialog.[ch] to widget.[ch].
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-17 15:54:39 +04:00
Jindrich Novy
b1b3be843c
Ticket #121 (support IPv6).
...
Implemented support of IPv6 protocol in FTP connections.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-13 00:32:26 +03:00
Andrew Borodin
fb51cb8241
Use TTY function names instead of #define's.
2009-08-12 21:23:12 +04:00
Andrew Borodin
f3730bdc41
Initial step to move TTY layer of MC to separate library.
2009-08-12 21:19:20 +04:00
Enrico Weigelt, metux IT service
c7d04dd47a
fixed several missing #include's
2009-06-18 21:02:29 +04:00
Mikhail S. Pobolovets
0a7899709b
Simple doxygen description for files in vfs (not subdirs) directory.
...
Mostly \file and \brief tag added.
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-10 16:18:55 +02:00
Slava Zanko
e54f318cef
Completely removed MHL stuff
...
Changed all source files relative to remove MHL
Some string-related functions moved into src/util.c
This stable fix.
2009-02-06 14:01:28 +02:00
Patrick Winnertz
3b8f37b99e
Moved some functions out of mhl into src/util.c
...
This commit moves the mhl_str_concat_dir_and_file back into src/util.c whitout changing atm the functionality.
Please note that this is an incomplete fix and needs to be partially enhanced in order to keep the full functionality with glib.
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-06 11:17:03 +01:00
Patrick Winnertz
589ffd0b10
Use g_snprintf instead of snprintf as we switch back to glib
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:49:00 +01:00
Patrick Winnertz
d84586ba82
Reverted the use of mhl_str_dup and use g_strdup instead.
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:40:32 +01:00
Patrick Winnertz
1c287d798d
First bunch of mhl_mem_free removal patches
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:36:58 +01:00
Enrico Weigelt, metux IT service
8b38cf44da
manully merged 227_replace_g_free
2009-02-02 22:34:05 +01:00
Enrico Weigelt, metux IT service
035fa47c06
manually merged 228_replace_g_strdup
2009-02-02 21:28:01 +01:00
Enrico Weigelt, metux IT service
e4a4f77ac2
replaced g_snprintf() by snprintf()
2009-02-01 20:03:28 +01:00
Enrico Weigelt, metux IT service
5f77615b35
Merge commit 'origin/mc-4.6'
2009-01-31 18:20:54 +01:00
Enrico Weigelt, metux IT service
54d6ec88dc
replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file()
2009-01-31 16:51:58 +01:00
Enrico Weigelt, metux IT service
f921cc40cd
replaced calls to g_strdup() by mhl_str_dup()
2009-01-30 20:10:40 +01:00
Enrico Weigelt, metux IT service
15d7d47c15
replaced g_free() by mhl_mem_free()
2009-01-30 19:28:35 +01:00
Enrico Weigelt, metux IT service
7cef5b112e
Merge commit 'origin/50_history_sections.metux'
2009-01-25 07:00:32 +01:00
Enrico Weigelt, metux IT service
9ac56b58ac
fixed missing history.h include
2009-01-24 21:59:58 +01:00
Enrico Weigelt, metux IT service
0dcb057459
separated out history section names to history.h
2009-01-24 21:51:29 +01:00
Patrick Winnertz
a144f2e4f6
Apply patch to fix localised history headers to mc-4.6 branch.
...
This is bad as if the localised string changed or you start mc
in another language your history will be lost.
2009-01-14 01:01:18 +01:00
Enrico Weigelt, metux IT service
154feb5160
2009-01-10 Enrico Weigelt, metux ITS <weigelt@metux.de>
...
* edit/editcmd.c:
* src/achown.c src/background.c src/boxes.c src/chmod.c:
* src/chown.c src/cmd.c src/command.c src/dir.c src/execute.c:
* src/ext.c src/file.c src/filegui.c src/find.c src/help.c:
* src/learn.c src/main.c src/panelize.c src/screen.c:
* src/selcodepage.c src/subshell.c src/tree.c src/user.c:
* src/utilunix.c src/view.c:
* vfs/cpio.c vfs/direntry.c vfs/extfs.c vfs/fish.c vfs/ftpfs.c:
* vfs/mcfs.c vfs/sfs.c vfs/smbfs.c vfs/tar.c vfs/undelfs.c:
* vfs/utilvfs.c vfs/vfs.c:
Changed message type codes on calls to message(), query_dialog(),
close_error_pipe() from numeric IDs to symbols D_ERROR, D_NORMAL
2009-01-10 14:13:56 +01:00
Pavel Tsekov
2f3df3af4e
* edit/bookmark.c: Update copyright notice.
...
* edit/edit.c: Likewise.
* edit/editcmd.c: Likewise.
* edit/editdraw.c: Likewise.
* edit/editkeys.c: Likewise.
* edit/editlock.c: Likewise.
* edit/editmenu.c: Likewise.
* edit/editoptions.c: Likewise.
* edit/editwidget.c: Likewise.
* edit/syntax.c: Likewise.
* src/background.c: Likewise.
* src/boxes.c: Likewise.
* src/complete.c: Likewise.
* src/execute.c: Likewise.
* src/ext.c: Likewise.
* src/file.c: Likewise.
* src/filegui.c: Likewise.
* src/fileopctx.c: Likewise.
* src/find.c: Likewise.
* src/hotlist.c: Likewise.
* src/key.c: Likewise.
* src/keyxdef.c: Likewise.
* src/layout.c: Likewise.
* src/learn.c: Likewise.
* src/listmode.c: Likewise.
* src/main.c: Likewise.
* src/panelize.c: Likewise.
* src/slint.c: Likewise.
* src/textconf.c: Likewise.
* src/tree.c: Likewise.
* src/treestore.c: Likewise.
* src/tty.c: Likewise.
* src/util.c: Likewise.
* src/utilunix.c: Likewise.
* src/view.c: Likewise.
* src/widget.c: Likewise.
* src/wtools.c: Likewise.
* src/x11conn.c: Likewise.
* vfs/cpio.c: Likewise.
* vfs/extfs.c: Likewise.
* vfs/fish.c: Likewise.
* vfs/ftpfs.c: Likewise.
* vfs/gc.c: Likewise.
* vfs/mcfs.c: Likewise.
* vfs/mcserv.c: Likewise.
* vfs/smbfs.c: Likewise.
* vfs/tar.c: Likewise.
2007-09-25 15:33:35 +00:00
Pavel Tsekov
23361694b6
* src/background.c: Use the correct form of FSF's name in the copyright
...
notice.
* src/boxes.c: Ditto.
* src/complete.c: Ditto.
* src/execute.c: Ditto.
* src/ext.c: Ditto.
* src/file.c: Ditto.
* src/filegui.c: Ditto.
* src/fileopctx.c: Ditto.
* src/fileopctx.h: Ditto.
* src/find.c: Ditto.
* src/hotlist.c: Ditto.
* src/key.c: Ditto.
* src/keyxdef.c: Ditto.
* src/layout.c: Ditto.
* src/learn.c: Ditto.
* src/listmode.c: Ditto.
* src/main.c: Ditto.
* src/panelize.c: Ditto.
* src/slint.c: Ditto.
* src/textconf.c: Ditto.
* src/tree.c: Ditto.
* src/treestore.c: Ditto.
* src/tty.c: Ditto.
* src/util.c: Ditto.
* src/utilunix.c: Ditto.
* src/view.c: Ditto.
* src/widget.c: Ditto.
* src/wtools.c: Ditto.
* src/x11conn.c: Ditto.
* vfs/cpio.c: Ditto.
* vfs/extfs.c: Ditto.
* vfs/fish.c: Ditto.
* vfs/ftpfs.c: Ditto.
* vfs/gc.c: Ditto.
* vfs/mcfs.c: Ditto.
* vfs/mcserv.c: Ditto.
* vfs/smbfs.c: Ditto.
* vfs/tar.c: Ditto.
* vfs/undelfs.c: Ditto.
* vfs/utilvfs.c: Ditto.
* vfs/vfs.c: Ditto.
* edit/bookmark.c: Ditto.
* edit/edit.c: Ditto.
* edit/edit.h: Ditto.
* edit/editcmd.c: Ditto.
* edit/editdraw.c: Ditto.
* edit/editkeys.c: Ditto.
* edit/editlock.c: Ditto.
* edit/editmenu.c: Ditto.
* edit/editoptions.c: Ditto.
* edit/editwidget.c: Ditto.
* edit/syntax.c: Ditto.
2007-09-24 09:28:32 +00:00
Pavel Tsekov
049ed167b6
* vfs/ftpfs.c (ftpfs_dir_load): When retrieving the directory listing by
...
using the LIST command _only_ and the output of the command is empty, retry
the operation by sending a CWD command followed by a LIST command.
2006-03-08 14:54:11 +00:00
Pavel Tsekov
ab02769f31
* vfs/ftpfs.c (ftpfs_dir_load): Remove redundant call to
...
`ftpfs_translate_path'.
2006-03-06 15:27:45 +00:00
Pavel Tsekov
c9f1b97869
* vfs/ftpfs.c (ftpfs_dir_uptodate): Remove.
...
(init_ftpfs): Adjust the code to reflect the removal of
`ftpfs_dir_uptodate'.
* vfs/fish.c (fish_dir_uptodate): Remove.
(init_fish): Adjust the code to reflect the removal of
`fish_dir_uptodate'.
* vfs/direntry.c (vfs_s_dir_uptodate): New function.
(vfs_s_init_class): Initialize the `dir_uptodate' field of
vfs_s_subclass.
2006-02-23 10:46:29 +00:00
Pavel Tsekov
18e595058f
* vfs/ftpfs.c (ftpfs_dir_load): Do not return error on empty directory
...
listings if the ftp server indicates, that the LIST command completed
successfully.
2006-02-17 14:37:29 +00:00
Pavel Tsekov
115ef55682
* vfs/ftpfs.c (ftpfs_open_socket): Let the user interrupt ftpfs in
...
hostname lookup / connection state.
2006-02-05 11:18:12 +00:00
Roland Illig
2390300034
* fish.c: Replaced the printf-like attribute with __printf__,
...
since GNU gettext defines a macro printf on some systems.
* ftpfs.c: Likewise.
2006-02-03 14:45:44 +00:00
Pavel Tsekov
c8494f41bb
* xdirentry.h (LS_LINEAR_PREOPEN): New macro definition.
...
* direntry.c (vfs_s_open): When opening a file in linear mode,
defer the actual open operation until the first read call.
(vfs_s_read): When reading in linear mode, open the file
on the first read operation.
(vfs_s_lseek): When in linear mode, make sure that seeking is
allowed only before the first read operation.
* ftpfs.c (ftpfs_ctl): Make the code aware of LS_LINEAR_PREOPEN.
* fish.c (fish_ctl): Likewise.
2006-01-25 14:04:27 +00:00
Pavel Tsekov
9d6d306127
* ftpfs.c (ftpfs_dir_load): Fix a bad ERRNOR call.
2006-01-24 15:44:21 +00:00
Pavel Tsekov
8de760e37b
* ftpfs.c (ftpfs_first_cd_then_ls): Enable this functionality by default.
2006-01-23 09:52:07 +00:00
Leonard den Ottolander
149afcc3b7
* vfs/ftpfs.c (ftpfs_command): Fix "Nowhere to fallback to" warning caused
...
by fallback to active mode after inactivity.
2005-10-09 21:25:29 +00:00
Roland Illig
7e7b81b73e
* direntry.c: Added const qualifiers to work around gcc
...
warnings.
* extfs.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.
* sfs.c: Likewise.
* xdirentry.h: Likewise.
2005-09-05 00:52:56 +00:00
Roland Illig
b5e201a74a
Replaced a literal 0 with a "typed" 0, namely NETRC_NONE.
2005-08-15 21:22:30 +00:00
Pavel Roskin
878175bec9
* ftpfs.c (ftpfs_get_current_directory): Warning fix - "missing
...
sentinel in function call".
2005-06-21 19:40:36 +00:00
Leonard den Ottolander
2bba061bf0
* src/boxes.c, vfs/ftpfs.[ch]: Add checkbox to allow passive FTP
...
over proxy to VFS dialog.
2005-05-29 12:10:08 +00:00
Pavel Roskin
1f60f44145
Update postal address of Free Software Foundation.
2005-05-27 03:35:10 +00:00
Roland Illig
aa262c3482
* ftpfs.c: Using HAVE_SOCKLEN_T instead of HAVE_C_TYPE_SOCKLEN_T.
2005-05-13 20:32:09 +00:00
Roland Illig
d7e7ec48dd
* *.c: Declared unused variables with (void) to avoid the gcc
...
warnings.
* extfs.c (extfs_get_path_mangle, extfs_get_path): Removed unused
parameter.
* ftpfs.c (ftpfs_netrc_bad_mode): Likewise.
* vfs.c (mc_def_getlocalcopy): Likewise.
2005-02-22 18:35:22 +00:00