Enrico Weigelt, metux IT service
2d3da8a99c
added fix by cppgx ( #84 )
2009-02-23 20:55:42 +02:00
Patrick Winnertz
0b0f8e6128
Revert "introduced new type SHELL_ESCAPED_STR for more type safety"
...
This reverts commit 90763ba82f
.
Conflicts:
ChangeLog
mhl/escape.h
src/complete.c
vfs/fish.c
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-10 15:08:01 +01:00
Patrick Winnertz
8b7e47d9cc
Last bunch of reverts and removal of mhl/*
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-10 14:11:41 +01:00
Patrick Winnertz
f237a14635
Revert some functions (mhl_mem_free to g_free, etc)
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-10 13:52:53 +01:00
Patrick Winnertz
e4e135399f
Revert "replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file()"
...
This reverts commit 54d6ec88dc
.
Conflicts:
ChangeLog
mhl/string.h
src/command.c
src/complete.c
src/util.c
2009-02-10 13:29:18 +01:00
Patrick Winnertz
1f656eb6be
Revert "build fix: added missing declaration of mhl_dir_plus_file (reported by andrew_b)"
...
This reverts commit c697fb3753
.
2009-02-10 13:24:32 +01:00
Enrico Weigelt, metux IT service
5f84762472
extfs/rpm,extfs/trpm: removed obsolete rpm tags
2009-02-04 04:09:30 +01:00
Enrico Weigelt, metux IT service
adbe38172d
added patch from #194
2009-02-04 01:18:51 +01:00
Sergei Trofimovich
c697fb3753
build fix: added missing declaration of mhl_dir_plus_file (reported by andrew_b)
...
./configure --enable-samba && make
../vfs/libvfs-mc.a(smbfs.o): In function `smbfs_get_path':
/home/andrew/work.c/mc/mc.master/vfs/smbfs.c:1214: undefined reference to `mhl_str_dir_plus_file'
collect2: ld returned 1 exit status
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-02-01 21:30:21 +02:00
Sergei Trofimovich
ff4de3d66f
Merge branch 'mc-4.6' into 147_escaping
...
* mc-4.6:
replaced buggy concat_dir_and_file() by mhl_str_dir_plus_file()
fixed out-of-tree-builds
Updated the NEWS file for 4.6.2 and added the bugnumbers behind the items in the list.
Update for OpenOffice and StarOffice viewer.
changelog: added entry for python syntax
syntax: python: keywords update (patch by NNemec) fixes #216
AC_USE_SYSTEM_EXTENSIONS macro requires autoconf >= 2.60
po/ru.po: In russian translation, there are some hotkey conficts in menu.
ChangeLog/NEWS: added entry for #181 ticket (copy to deleted dir)
Now a trailing slash will only be added in copy & move dialogs if the path itselfs
copy/move dialog: add trailing '/' to default destination path (fix #181 )
fixed comments to /* ... */
Not only comment it out but removing it
Removed unneeded var to make build process a bit cleaner
Add code snipplet by il.smind which should fix issues with putty and
Conflicts:
ChangeLog
mhl/string.h
src/command.c
src/complete.c
src/file.c
src/util.c
2009-01-31 22:18:19 +02: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
e3a3890a3a
fixed out-of-tree-builds
2009-01-30 16:46:44 +01:00
Sergei Trofimovich
c825c379c4
fish: cleanup: unboxed quoted strings when generate shell commands
...
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
2009-01-28 10:29:18 +02:00
Enrico Weigelt, metux IT service
90763ba82f
introduced new type SHELL_ESCAPED_STR for more type safety
2009-01-27 22:27:06 +01:00
Patrick Winnertz
e1572aefd3
Remove embedded function and use instead the regex directly as we doesn't need
...
more lines of code as really necessary.
The regex stuff is taken from this site:
http://www.slac.stanford.edu/slac/www/resource/how-to-use/cgi-rexx/cgi-esc.htm
2009-01-25 22:52:24 +01:00
Sergei Trofimovich
8a12b5e187
fish: fixed forgotten '\\' special char in perl escaping
...
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-25 20:22:29 +01:00
Sergei Trofimovich
a8779af1aa
fish: fixed handling of files with spaces, quotes, etc.
...
Changes:
* removed "" from all operations, because shells do not like it:
$ LANG=C ls "//\ a\ -\>\ b\ \"\"\""
ls: cannot access //\ a\ -\>\ b\ """: No such file or directory
$ [sf] ~:LANG=C ls //\ a\ -\>\ b\ \"\"\"
// a -> b """
* transited to mhl escaping function in vfs/fish.c
* fixed vast majority of FISH ops in respect to special chars
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-25 20:22:29 +01:00
Sergei Trofimovich
a944b8ca5b
fish: partially fixed perl backend for FISH
...
Broken:
* spacy files are still broken (like " a b")
Changes:
* vfs/fish.c learned to parse 'R' (raw filemode)
* fixed perl backend escaping
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-25 20:22:29 +01:00
Sergei Trofimovich
636b1ff16f
fish: added handling for escaped characters
...
Changes:
* mhl/string.h achieved new function: mhl_str_dup_range
* fish: added handling for quoted string (:"enc" and :"enc1" -> "enc2")
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-25 20:22:29 +01:00
Sergei Trofimovich
3884370289
fish: one step closer to working state
...
!!!WARNING!!!: FISH is still broken
Changes
* fixed sed fallback (added escaping)
* fixed FISH hangup (introduced earlier in perl changes)
* added FISH 500 if perl script dies somehow (no more FISH hangups on dir list path!)
* added '#if 0' in vfs/fish.c:fish_dir_load() - handy to debug
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-01-25 20:22:29 +01:00
Patrick Winnertz
05a2491681
Argh.. we need even more escaping since this runs in c which executes
...
a shell script which executes then a perl script.... this uses then " as output in printf:
--> therefore we need up to 5 backslashes
2009-01-25 20:22:29 +01:00
Patrick Winnertz
61dee5baa3
Removed a % which I accidentially overviewed the first time
2009-01-25 20:22:29 +01:00
Patrick Winnertz
837aece56f
Some fixes to the new fish get dirlisting code. One issue is remaining.
2009-01-25 20:22:28 +01:00
Patrick Winnertz
b198432f06
Add some whitespace fixes which are also used to make symlinks work correctly
2009-01-25 20:22:28 +01:00
Patrick Winnertz
1667b696b7
Add new read dir stuff based on perl.
...
- please note that this patch won't work right now
2009-01-25 20:22:28 +01:00
Patrick Winnertz
01ef2aaf80
Revert slavaz patch because this was something unrelated to not working links via fish.
...
this indeed belongs into ticket:149.
2009-01-25 20:22:28 +01:00
Slava Zanko
a202cac66b
Changes in directory listing format:
...
- check if remote have a 'test' utility.
If 'test' exists - use it for recognize symlinks (test -L)
and forming "L<symlink>" string in output
- Restore part of source code for handling "L<symlink>"
- check if 'ls' command support option '-Q' and use it if supported
- FIXME: need to write fish_get_unquoted_filename
- FIXME: need to rewrite algorithm of parsing ' -> ' substring
(relative to -Q option)
New logic will correct show symlinks on lot of OSes, but in some
pure OSes need to review...
2009-01-25 20:22:28 +01:00
Patrick Winnertz
56e02e2848
Remove case 'L' check as this was never implemented as it seems...
2009-01-25 20:22:28 +01:00
Patrick Winnertz
5493da68a2
Remove vars which are not needed
2009-01-25 20:22:28 +01:00
Patrick Winnertz
b166e7f232
Update Slavaz patch to work correctly on files called "foo -> bar"
2009-01-25 20:22:28 +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
Enrico Weigelt, metux IT service
b9b09436c4
Merge commit 'origin/50_history_section_names' into 50_history_sections.metux
2009-01-24 21:26:41 +01:00
Slava Zanko
9623a85506
lib/mc.ext.in: change filemask for recognize 7z-files
...
vfs/extfs/u7z:
- change only LC_DATE global variable for correct work with arhive;
- add sorting by filename in output of list files
2009-01-14 11:54:02 +02: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
7770bc7899
fixed some bashisms in vfs/extfs/*
2009-01-12 20:58:50 +01:00
Patrick Winnertz
dcd57a34ef
Removed .cvsignore files as we don't need them any longer
2009-01-05 16:58:44 +01:00
Slava Zanko
aad7c6c317
Added .svnignore files (same as .cvsignore)
2008-12-28 23:27:03 +02:00
Pavel Tsekov
d2fb34f021
* vfs/fish.c (fish_dir_load): Check the exit status of the remote command
...
and fail with EACCES if it was unsuccessful.
Fix the value returned on error - must be -1 instead of 1.
2007-11-02 14:50:41 +00:00
Pavel Tsekov
b0f2d1654c
* edit/editlock.c (lock_build_name): Check the return value of getpwuid().
...
* src/cmd.c (save_setup_cmd): Remove redundant g_strconcat() call.
* src/hotlist.c (load_hotlist): Likewise.
* vfs/smbfs.c (smbfs_convert_path): Replaced NULL with (char *) NULL.
2007-11-02 14:02:23 +00:00
Pavel Tsekov
7d113d0125
* vfs/fish.c (FISH_OP): Remove the second argument since it is unused.
...
Fix the macro usage troughout.
(XTEST): Remove unused macro.
2007-10-29 13:31:44 +00:00
Pavel Tsekov
4a895496c7
* vfs/fish.c (fish_linear_start): Fix a hang when retrieving unreadable
...
file. Fixes savannah bug #21331 .
2007-10-26 13:46:42 +00:00
Pavel Tsekov
56eccaadb4
* configure.ac: Determine the size of long',
long long' and
...
off_t.
* vfs/fish.c (fish_linear_start): Use strtol() or strtoll() to retrieve
the size of the file being retrieved.
2007-10-11 12:32:42 +00:00
Pavel Tsekov
7ad6feae42
* src/achown.c: Update copyright notice.
...
* src/chmod.c: Likewise.
* src/chown.c: Likewise.
* src/cmd.c: Likewise.
* src/color.c: Likewise.
* src/command.c: Likewise.
* src/cons.handler.c: Likewise.
* src/cons.saver.c: Likewise.
* src/dialog.c: Likewise.
* src/dir.c: Likewise.
* src/help.c: Likewise.
* src/info.c: Likewise.
* src/man2hlp.c: Likewise.
* src/menu.c: Likewise.
* src/mouse.c: Likewise.
* src/option.c: Likewise.
* src/profile.c: Likewise.
* src/screen.c: Likewise.
* src/setup.c: Likewise.
* src/subshell.c: Likewise.
* src/user.c: Likewise.
* src/win.c: Likewise.
* vfs/sfs.c: Likewise.
* vfs/tcputil.c: Likewise.
2007-09-26 10:22:25 +00: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
305e2aab79
* vfs/direntry.c (vfs_s_free_super): Remove redundant code.
2007-09-24 13:47:54 +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
e2424ae139
* src/filegui.c (rd_widgets) [_LARGE_FILES]: Use format string
...
capable of supporting 64 bit file sizes.
* vfs/fish.c (fish_linear_start) [_LARGE_FILES]: Use format string
capable of supporting 64 bit file sizes.
2007-08-23 13:16:39 +00:00
Pavel Tsekov
0be8302a3d
* vfs/fish.c: Remove all references to HAVE_HACKED_SSH.
2007-05-07 13:23:54 +00:00
Pavel Tsekov
9312932eea
* vfs/fish.c (fish_linear_start): Use _FILE_OFFSET_BITS to determine which
...
length modifier to pass to sscanf(). Use 'll' length modifier instead
of 'L' since 'L' is meant for doubles.
2007-04-26 15:10:02 +00:00