Enrico Weigelt, metux IT service
5d150562aa
merged 158_message_codes branch
2009-01-24 04:53:51 +01:00
Enrico Weigelt, metux IT service
d362e3b015
some type fixes in vfs.c -> result types of mc_read() and mc_write() now ssize_t instead of int
2009-01-24 04:38:30 +01:00
Enrico Weigelt, metux IT service
3ca5a91b9a
vfs/cpio.c: read functions now return ssize_t
2009-01-24 02:34:43 +01:00
Enrico Weigelt, metux IT service
a618f3fb48
Merge commit 'origin/171_int_types'
2009-01-19 02:11:23 +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
183a66f7f5
changing return types of *read() and *write() functions to ssize_t
2009-01-13 19:00:25 +01:00
Enrico Weigelt, metux IT service
7770bc7899
fixed some bashisms in vfs/extfs/*
2009-01-12 20:58:50 +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
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
Leonard den Ottolander
7a9daa86b0
* vfs/fish.c (fish_file_store): Fix copy of file names with backticks to
...
remote host.
2006-11-09 17:59:39 +00:00
Leonard den Ottolander
16bf1ca415
* extfs/rpm: Recognize CONFLICTS.
...
* extfs/trpm: Likewise.
2006-11-01 10:30:26 +00:00
Leonard den Ottolander
c979e827ce
* utilvfs (is_year): Revert range of valid years to 1900 - 3000 as parsing
...
has been fixed.
2006-10-15 11:42:01 +00:00
Leonard den Ottolander
7564bbd7d4
* extfs/rpm: Restore legacy RPM tags for backward compatibility.
...
* extfs/trpm: Likewise.
2006-08-01 21:03:18 +00:00
Pavel Tsekov
c2721465d7
* vfs/extfs/urar.in (mcrarfs_copyout): Do not query password
...
when extracting password protected entries.
2006-07-25 20:42:58 +00:00
Pavel Tsekov
e7d571c9d6
* vfs/extfs/audio.in (audiofs_copyout): Quote the track name.
...
* vfs/extfs/bpp (mcbppfs_list): Quote the package file name.
* vfs/extfs/uzoo.in (mklink): Quote MC_TMPDIR.
2006-07-25 20:22:59 +00:00
Pavel Tsekov
ec98ac4cf7
* vfs/extfs/iso9660.in (test_iso): Use `locale charmap' to retrieve
...
the current character set. If that fails fallback to using
the LC_CTYPE field of `locale' output.
When invoking `isoinfo' to test whether it supports a given character
set tell it to use /dev/null as the cdrom device so that it will bail
out immediatly instead of accessing a real drive.
2006-07-19 11:19:52 +00:00
Pavel Tsekov
3c713dfe18
* vfs/extfs/deb.in (mcdebfs_list): Do not skip over directory entries.
...
Set the locale to C when executing dpkg-deb.
2006-07-18 14:49:48 +00:00
Pavel Tsekov
46ca52176b
* vfs/extfs/rpm: Remove support for obsoleted RPM tags.
...
* vfs/extfs/trpm: Likewise.
2006-07-13 14:23:08 +00:00
Leonard den Ottolander
e494043f82
* extfs/mailfs.in (parse_date): Output 3 date fields not 4. Range to
...
output time not year is slightly larger than the range used by
file_date() in util.c. Prefer using Date::Parse over Date::Manip as the
former is faster. Fix fallback for "light version".
(process_header): Match header field names case insensitively.
(mailfs_list): Improve match for header start.
(mailfs_copyout): Likewise.
2006-05-28 12:35:57 +00:00
Andrew V. Samoilov
9395167ddd
* extfs/uzip.in (print_file): Use %8s instead of %8d
...
printf() pattern to print really big "realsize"
2006-05-06 08:31:53 +00:00
Andrew V. Samoilov
1921894119
* extfs/uzip.in (print_file): Use %8s instead of %8d
...
printf() pattern to print really big "realsize"
2006-05-06 03:52:34 +00:00
Pavel Tsekov
148efdda35
* vfs/tar.c: Minor cleanup.
2006-04-18 07:27:21 +00:00
Pavel Tsekov
17696f8d13
* vfs/tar.c (PREFIX_SIZE): New macro definition.
...
(union unused): New union which describes better the trailing bytes
of the tar record header.
(union record): Do not assume that all tar archives follow the GNU
tar archive format.
(tar_open_archive_int): Initialize the variable holding the type fo the
archive format.
(tar_read_header): Try to determine the archive format using the
`magic' field of the tar record header. Use the `linkflag' field
as a fallback.
Add support for pathnames of upto 256 characters as stored in ustar
archives.
Do not access GNU specific fields of the tar record header if the
archive is not a GNU one.
(tar_fill_stat): Pass pointer to vfs_s_super instead of pointer ot
vfs_class as the first argument.
Do not access GNU specific fields of the tar record header if the
archive is not a GNU one.
2006-04-17 13:42:21 +00:00
Pavel Tsekov
488ac0c5f9
* vfs/tar.c (OLDGNU_MAGIC): New macro definition.
...
(TMAGIC): Set to the ustar format magic. It was erronously set to the gnu
format magic value.
(tar_fill_stat): Try to use the `uname' and `gname' fields if operating on
either ustar or gnu archive.
2006-04-14 13:28:09 +00:00
Pavel Tsekov
44becc0a7d
* vfs/sfs.c (sfs_uptodate): Eliminate - it is a noop.
...
Remove all references to `sfs_uptodate'.
2006-04-04 09:26:13 +00:00
Pavel Tsekov
294e05e70e
* vfs/fish.c (fish_file_store): Do not create the target file before
...
determining which method (`head' or `dd') to use.
Do not use `head' to transfer data when resuming a file transfer - it is
not reliable enough.
2006-03-31 14:29:37 +00:00
Pavel Tsekov
407497fd43
* vfs/fish.c (fish_file_store): Improve the upload speed by using the
...
`head' utility when possible. Fallback to a new improved `dd' method
if `head' is not availaible or just stupid.
2006-03-30 14:39:33 +00:00
Pavel Tsekov
52a724a2c8
* vfs/direntry.c (vfs_s_inode_from_path): Revert last change.
2006-03-30 13:04:50 +00:00
Pavel Tsekov
c585dcb01a
* vfs/extfs.c (extfs_done): Free all live archives.
...
Fixes savannah bug #13953 .
(extfs_free_entries): Comment out - it is unused.
(extfs_free_archive): Use extfs_free_entry () instead of
extfs_free_entries ().
(extfs_free): Reflect the changes above.
Simplify.
2006-03-23 15:00:50 +00:00
Pavel Tsekov
06b721a44c
* vfs/direntry.c (vfs_s_inode_from_path): Do not give up if a given path
...
does not exist in the directory cache. In such scenario use the underlying
vfs to determine whether the path exists or not.
2006-03-23 12:36:10 +00:00
Leonard den Ottolander
25002a0274
* extfs/deb.in (mcdebfs_list): Output three date fields, not four.
2006-03-19 17:41:11 +00:00
Leonard den Ottolander
7d7ea8c067
* extfs/deb.in: Patrik Rak is mentioned in the header, no need to
...
specify his code blocks in the comments.
2006-03-19 17:15:55 +00:00
Leonard den Ottolander
866d39e32c
* extfs/uar.in (mcarfs_list): Parse date reported by ar back to three
...
fields as vfs_parse_filedate() only expects three date fields now.
2006-03-18 12:56:50 +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 Roskin
28157ca499
* Makefile.am: Add fish.h.
2006-02-23 16:00:13 +00:00
Pavel Tsekov
264697b010
* vfs/fish.h: New file.
...
* vfs/fish.c (fish_directory_timeout): Define new global variable.
(FISH_DIRECTORY_TIMEOUT): Eliminate - this macro is not used
anywhere.
(fish_dir_load): Use `fish_directory_timeout' to calculate the
expiration time of a newly created directory entries.
* src/setup.c [USE_NETCODE]: Include fish.h .
(int_options) [USE_NETCODE]: Add support for user configurable
expiration timeout of FISH directory cache entries.
* doc/mc.1.in: Document `fish_directory_timeout'.
2006-02-23 15:32:18 +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
da3b1863ab
* direntry.c (vfs_s_open): Be less restrictive when O_LINEAR is specified
...
and `linear_start' is not implemented.
2006-01-28 15:47:02 +00:00
Roland Illig
7b9f0a4f96
* mcserv.c: Made mcserv.c work on NetBSD 3.0/i386 with GNU
...
gettext 0.14 installed.
2006-01-27 23:27:35 +00:00
Leonard den Ottolander
8dfd1a2e4d
utilvfs.c: Do not parse more than 3 date elements to avoid file name parsing errors.
2006-01-27 22:20:23 +00:00
Leonard den Ottolander
a03c48ffa4
fish.c, xdirentry.h: Fix 2 GB file size limit for fish.
2006-01-27 22:16:45 +00:00
Roland Illig
b2e8006823
* utilvfs.c (is_year): The range of valid year numbers is
...
restricted to 1970 .. 2015 to reduce the number of parsing
errors.
2006-01-27 22:06:07 +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
Pavel Tsekov
465972e0b9
* tar.c (LF_EXTHDR): New macro definition.
...
(LF_GLOBAL_EXTHDR): Likewise.
(tar_read_header): Skip over pax extended header and global extended
header records.
2006-01-18 15:14:56 +00:00
Roland Illig
114b2c1715
Added some comments.
2005-11-15 22:27:45 +00:00
Pavel Roskin
76d78fb47c
* samba/lib/netmask.c: Include <stdlib.h> for exit() and
...
<string.h> for memcpy().
2005-11-15 21:32:07 +00:00
Pavel Roskin
89eb1e232b
* samba/lib/netmask.c: Add get_netmask() prototype for the dummy
...
version.
2005-11-11 06:19:08 +00:00
Pavel Roskin
9c11cf292f
* samba/lib/util_sock.c: Fix warnings on 64-bit systems.
2005-11-11 02:52:41 +00:00
Pavel Roskin
528e77efc0
* mcserv.c (get_client): Fix gcc 4 warning.
2005-11-11 02:31:46 +00:00
Pavel Roskin
ebe155fc92
* smbfs.c: Remove redundant ipzero declaration.
2005-11-11 02:22:02 +00:00
Leonard den Ottolander
0c2b46643d
* fish.c (fish_dir_load, fish_linear_start): Get numerical gid/uids from ls to
...
avoid wrong parsing of user/group names containging white space.
2005-10-19 11:34:56 +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
4972324b16
* extfs/iso9660.in: Ignore error messages from locale(1), as it
...
does not exist on OpenBSD. Reported by q# on mc-devel.
2005-09-26 15:07:00 +00:00
Roland Illig
290b842c86
* utilvfs.h (vfs_parse_filetype, vfs_parse_fileperms,
...
vfs_parse_filemode): Rewrote the functions to parse Unix file
modes.
* utilvfs.c: Likewise.
* fish.c: Using the new parsing functions.
2005-09-26 11:10:24 +00:00
Andrew V. Samoilov
8491ac0c7d
* samba/lib/util.c (tab_depth): Remove.
...
* samba/include/byteorder.h: Remove all macroces with tab_depth().
* vfs/samba/lib/util_sock.c: Comment out read_smb_length(),
send_null_session_msg(), send_one_packet(), send_smd()
and read_smb_length().
* vfs/samba/libsmb/nmblib.c: Comment out copy_nmb_packet(),
copy_dgram_packet(), copy_packet() and nmb_name_equal().
2005-09-15 12:07:17 +00:00
Roland Illig
5ddb6be28e
* samba/*: Added many const qualifiers to properly fix the
...
warnings emitted by gcc with -Wwrite-strings.
* smbfs.c: Likewise.
2005-09-07 07:33:39 +00:00
Roland Illig
2841a5087f
Added const qualifiers.
2005-09-05 03:26:48 +00:00
Roland Illig
040e26b5eb
* samba/: Added a const qualifier to setup_logging().
...
* smbfs.c: Removed dbghdr_wrapper. Removed all const_cast
instances.
2005-09-05 03:17:03 +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
b4479c533d
* direntry.c: Removed an unused variable.
2005-08-15 21:25:02 +00:00
Roland Illig
b5e201a74a
Replaced a literal 0 with a "typed" 0, namely NETRC_NONE.
2005-08-15 21:22:30 +00:00
Roland Illig
7c1b001728
* vfs-impl.h (union vfs_dirent): Using the offsetof macro
...
instead of null pointer arithmethics.
2005-08-15 21:13:53 +00:00
Roland Illig
e132a00192
Added const qualifiers and type casts for <ctype.h> functions.
2005-07-31 21:09:29 +00:00
Roland Illig
ee4987bb5d
* samba: Added some const qualifiers to reduce the number of gcc
...
warnings.
2005-07-31 21:01:26 +00:00
Pavel Roskin
3b40737834
* extfs/urar.in: Remove month translation and year windowing -
...
they are better handled by mc. Use more robust date format.
Set locale to C.
2005-07-25 21:51:51 +00:00
Pavel Roskin
271a56e3f8
* extfs/uzip.in: Preserve seconds. Avoid month translation - it
...
only slows down processing.
2005-07-25 20:24:01 +00:00
Pavel Roskin
23c29ab03a
* extfs/ualz.in: Fix compatibility with unalz 0.51.
2005-07-25 16:19:53 +00:00
Pavel Roskin
a0c56a1a7d
* extfs/ualz.in: Anticipate eventual posixification of the date
...
format.
2005-07-22 21:54:00 +00:00
Pavel Roskin
a24baacdf8
* extfs/ualz.in: New file - support for ALZip archives.
...
* extfs/Makefile.am: Add ualz.
* extfs/extfs.ini: Likewise.
2005-07-20 19:03:53 +00:00
Roland Illig
87ab858ab0
Removed unused <mman.h>.
2005-07-18 13:20:39 +00:00
Leonard den Ottolander
133196d197
vfs/tar.c (tar_read_header): Properly handle non \0 terminated tar entries
...
with name of length NAMSIZ.
2005-07-06 14:15:54 +00:00
Roland Illig
bb14c4e1da
* vfs.h, vfs-impl.h, vfs.c, local.h, local.c, sfs.c: Removed
...
support for mmap() and munmap() from the VFS. It is unused and
cannot be applied to remote file systems.
2005-07-05 21:01:57 +00:00
Roland Illig
2a57a2e1e3
* xdirentry.h: Added missing #include directives.
2005-07-03 22:55:55 +00:00
Pavel Roskin
33ded3d61b
* extfs/u7z: New file - support for 7zip archives.
...
* extfs/Makefile.am: Add u7z.
* extfs/extfs.ini: Likewise.
2005-06-22 02:21:43 +00:00
Pavel Roskin
b2084010e4
Wrong date in last commit
2005-06-21 19:42:46 +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
Roland Illig
5e120f7f17
* mcfs.c (mcfs_get_remote_port): Shift an #endif two lines down
...
to avoid a warning from SunPro.
2005-06-08 00:34:54 +00:00
Roland Illig
5343037e83
* fish.c (fish_ctl): Commented out some unused code with
...
#if 0 ... #endif. This fixes a warning from SunPro.
2005-06-08 00:31:25 +00:00
Roland Illig
c4c1c12432
* util.h (free_after): Moved to vfs/smbfs.c, as this is the only
...
place where it is used. This is necessary because the SunPro
compiler creates external references even for functions that are
only referred to in unused inline functions.
2005-06-08 00:23:44 +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
ba0cd89c75
* samba/lib/charcnv.c: Added const qualifiers.
2005-05-24 12:16:41 +00:00
Roland Illig
a2511b792c
* dirent.c (split_dir_name): Don't assign a string literal to a
...
char *. Use '\0' instead of 0 when operating on characters.
2005-05-24 12:09:22 +00:00
Roland Illig
d62c0470e3
* samba/param/loadparm.c: Fixed warnings reported by gcc-2.95.
2005-05-24 09:14:53 +00:00
Pavel Roskin
8b6a126125
* extfs.c: Fix warnings reported by gcc 4.0.0.
2005-05-21 03:24:50 +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
Pavel Roskin
0ef41beb95
* samba/lib/util_sock.c: Fix gcc 4.0 warnings.
2005-05-11 20:03:41 +00:00
Pavel Roskin
b3bc70e73a
* samba/lib/debug.c (dbghdr): Constify arguments file and func.
2005-05-11 19:54:59 +00:00
Pavel Roskin
92fec3431c
* utilvfs.c: Fix gcc 4.0 warnings.
2005-05-10 23:21:42 +00:00
Pavel Roskin
79386c0add
* samba/include/includes.h: Don't include grp.h twice.
2005-05-10 20:46:40 +00:00
Andrew V. Samoilov
c6a4eae10c
* utilvfs.c (is_localized_month): Check "month" for NULL and
...
forbid punctuation characters in localized month abbreviation.
2005-04-21 10:04:06 +00:00
Roland Illig
526bf72983
* vfs.h: Fixed prototypes for mc_read() and mc_write(). Now they
...
get void * instead of char *.
* vfs.c: Likewise.
2005-04-13 19:08:13 +00:00
Andrew V. Samoilov
4cc677124a
* extfs/uarj.in (mcarjfs_copyout): Use the regular extract command,
...
instead of redirecting all the output of the print (p) command.
2005-03-31 05:28:15 +00:00
Andrew V. Samoilov
cef3ce222a
* samba/param/loadparm.c: Remove init_locals(), lp_smb_passwd_file(),
...
lp_passwd_program(), lp_passwd_chat(), lp_unix_password_sync(),
lp_max_open_files(), lp_shmem_size(), lp_lpqcachetime(),
lp_syslog(), lp_driverlocation().
(file_lists): Commented out.
(add_to_file_list): Comment out and make a do nothing macro.
2005-03-29 15:20:51 +00:00
Pavel Roskin
fc6e8e67f2
* cpio.c (cpio_find_head): Fix for logical error that can cause
...
crash on broken cpio archives.
2005-03-29 05:24:26 +00:00
Roland Illig
ebcd6129c6
* fish.c: Declared one more parameter as unused.
2005-02-22 18:38:58 +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
Roland Illig
54cccec688
* utilvfs.h: Removed unneeded #includes.
...
* *.c: Added the #includes that have been removed from utilvfs.h.
* tcputil.c: Just removed the unneeded #include "utilvfs.h".
2005-02-19 16:36:38 +00:00
Roland Illig
9997fa69f8
* *.h: Renamed the multiple inclusion guards.
2005-02-18 21:15:37 +00:00
Andrew V. Samoilov
b75b3a042a
amba/lib/util_str.c: Comment out strhasupper(), strhaslower(),
...
toktocliplist(), strncpyn(), strhex_to_str(), all_string_sub(),
strnorm(), strisnormal() and split_at_last_component().
* samba/lib/time.c: Comment out http_timestring().
* samba/lib/util.c: Comment out Protocol, trans_num, case_sensitive,
case_preserve, use_mangled_map, short_case_preserve, case_mangle,
my_netbios_names.
Make sam_logon_in_ssb and case_default const.
(samlogon_user): Make char* instead of pstring.
* samba/libsmb/clientgen.c: Comment out cli_api_pipe(),
cli_NetWkstaUserLogon(), cli_tdis(), cli_nt_create(), cli_ulogoff(),
cli_lock(), cli_unlock(), cli_message_start(), cli_message_text()
and cli_message_end().
* samba/libsmb/namequery.c (global_in_nmbd): Make const.
(find_master_ip): Comment out.
* samba/libsmb/nmblib.c: Comment out matching_bits(), sort_ip,
name_query_comp() and sort_query_replies().
2005-02-15 13:19:35 +00:00
Andrew V. Samoilov
999e265b23
* samba/lib/util_str.c: Comment out strhasupper(), strhaslower(),
...
toktocliplist(), strncpyn(), strhex_to_str(), all_string_sub()
and split_at_last_component().
* samba/lib/time.c: Comment out http_timestring().
* samba/lib/util.c: Comment out Protocol, trans_num, case_sensitive,
case_preserve, use_mangled_map, short_case_preserve, case_mangle,
my_netbios_names.
Make sam_logon_in_ssb and case_default const.
(samlogon_user): Make char* instead of pstring.
* samba/libsmb/clientgen.c: Comment out cli_api_pipe(),
cli_NetWkstaUserLogon(), cli_tdis(), cli_nt_create(), cli_ulogoff(),
cli_lock(), cli_unlock(), cli_message_start(), cli_message_text()
and cli_message_end().
* samba/libsmb/namequery.c (global_in_nmbd): Make const.
(find_master_ip): Comment out.
* samba/libsmb/nmblib.c: Comment out matching_bits(), sort_ip,
name_query_comp() and sort_query_replies().
2005-02-14 13:14:01 +00:00
Roland Illig
5d55e9b92f
* vfs.c (vfs_translate_url): Add support for smb://, sh://,
...
ssh:// and mc:// filesystem requests. Introduced separate table
for vfs aliases.
* util.c (strip_password): Modifications to take the aliases into
account while eliminating passwords.
The original patch was extended by Roland Illig.
2005-02-12 14:30:48 +00:00
Andrew V. Samoilov
9ca4fc2bc0
* samba/lib/netmask.c [HAVE_NETMASK_AIX && HAVE_UNISTD_H]: Include
...
<unistd.h> to fix gcc 3.3 warnings about undeclared close().
2005-02-11 23:39:58 +00:00
Roland Illig
9a020da9c6
* extfs/uzip.in: Widened the regular expression for infozip to
...
also detect non-Unix file listings.
Patch provided by Jindrich Makovicka <makovick * kmlinux.fjfi.cvut.cz>
2005-02-09 21:46:28 +00:00
Roland Illig
ab442fdeee
* cpio.c: Added some FIXMEs about data representation.
2005-02-08 05:53:13 +00:00
Roland Illig
9004ac497f
* po/ChangeLog: Applied trim_changelog.
...
* slang/ChangeLog: Likewise.
* vfs/ChangeLog: Likewise.
2005-02-07 07:40:46 +00:00
Andrew V. Samoilov
94b71a6339
* samba/include/proto.h: Adjust for the last changes.
...
* samba/lib/util.c: Comment out unused ra_type, in_group(),
get_numlist(), Atoic(), dns_to_netbios_name(), name_interpret(),
directory_exist(), file_size(), unix_format(), dos_format(),
close_low_fds(), name_ptr(), name_extract(), unix_do_match(),
unix_mask_match(), do_match(), mask_match(),
interpret_protocol(), readdirname(), is_in_path(),
set_namearray(), free_namearray(), fcntl_lock(), is_myname(),
set_remote_arch(), get_remote_arch(). align2(), out_ascii() and
out_data().
(reg_get_subkey): Remove.
(reg_split_key): Remove.
* samba/lib/system.c: Comment out sys_lstat(), sys_fseek(),
sys_ftell(), sys_readdir(), sys_getwd(), sys_chown(), sys_random()
and sys_srandom().
* samba/libsmb/clientgen.c (cli_qpathinfo): Comment out.
(cli_qpathinfo2): Comment out.
(cli_printjob_del): Remove.
(cli_print_queue): Remove.
(cli_dskattr): Comment out.
2005-02-02 12:52:33 +00:00
Andrew V. Samoilov
a7a42c3d8b
* samba/lib/username.c (map_username): Comment out.
...
(user_in_list): Ditto.
2005-02-01 12:02:34 +00:00
Roland Illig
9558c7178f
* src/info.c (info_show_info): Enabled display of the device number,
...
for the case that the column in the directory listing is too
short. This had been disabled since 1994, for no obvious reason
and without any comment.
* src/screen.c (format_device_number): Added. Converts a device number
into a bounded string.
* screen.c (string_file_size): Support for larger device numbers
(and for non-Linux systems).
* vfs/cpio.c (cpio_read_crc_head): Fixed device number handling for
non-Linux systems.
* vfs/fish.c (fish_dir_load): Likewise.
* vfs/utilvfs.c (vfs_parse_ls_lga): Likewise.
2005-01-27 23:32:13 +00:00
Andrew V. Samoilov
fe0cc18988
* samba/Makefile.in: Remove BINDIR and SBINDIR.
...
* samba/param/loadparm.c: Comment out some more unused code.
2005-01-25 09:12:17 +00:00
Andrew V. Samoilov
82a3bf3d81
* samba/param/loadparm.c (print_parameter): Remove.
...
(is_default): Remove.
(dump_globals): Remove.
(dump_a_service): Remove.
(lp_dump): Remove.
(lp_dump_one): Remove.
(lp_remove_service): Remove.
(lp_copy_service): Remove.
2005-01-25 08:13:07 +00:00
Andrew V. Samoilov
a1502a0a5f
Remove genrand.c and util_unistr.c.
2005-01-20 16:48:36 +00:00
Andrew V. Samoilov
981d02ba5f
* Makefile.am (SAMBA_DIST): Remove lib/genrand.c and lib/util_unistr.c.
...
* samba/Makefile.in (SAMBAFILES): Remove lib/genrand.o and
lib/util_unistr.o.
2005-01-20 16:44:27 +00:00
Andrew V. Samoilov
1ed4f8c110
* samba/libsmb/clientgen.c (cli_oem_change_password): Removed.
...
* samba/libsmb/smbencrypt.c (make_oem_passwd_hash): Removed.
* samba/lib/util_sock.c (reset_globals_after_fork): Removed.
2005-01-20 16:32:23 +00:00
Andrew V. Samoilov
d83d988c73
* samba/lib/util_file.c: Comment out all but fgets_slash().
2005-01-20 16:17:34 +00:00
Andrew V. Samoilov
eaca209b7c
* util_file.c: Comment out all but fgets_slash().
2005-01-20 15:06:29 +00:00
Andrew V. Samoilov
4ea1aba1e0
* samba/lib/util.c (remote_machine, local_machine): Make static const
...
char * instead of fstring.
2005-01-20 11:23:07 +00:00
Andrew V. Samoilov
43414d8182
* samba/lib/util.c: Comment out some more unused functions.
...
(global_myworkgroup): Remove unused variable.
(def_finfo): Make const.
(remote_proto, remote_arch): Make const char * instead of
fstring.
* samba/libsmb/clientgen.c (interpret_long_filename): Fix
def_finfo declaration.
2005-01-20 08:57:22 +00:00
Andrew V. Samoilov
f4cb47b95d
* ftpfs.c (ftpfs_file_store): Make sure we write() all read() data.
...
Check fstat() return value.
2005-01-19 09:17:38 +00:00
Roland Illig
135d787620
* extfs/urar.in: Fixed some quoting issues.
...
Original patch by Leonard den Ottolander.
2005-01-09 16:12:39 +00:00
Andrew V. Samoilov
1735921c14
* extfs.c (struct inode): Remove unused linkflag field.
...
(extfs_internal_stat): Eliminate "inode" variable.
(extfs_fstat): Likewise.
(extfs_unlink): Fix memory leak if extfs_get_path_mangle() fails.
2004-12-29 07:32:41 +00:00
Andrew V. Samoilov
b20f6b2dea
* fish.c (fish_linear_abort): Fix bug with FISH vfs. It freezes MC on
...
transfer abort.
2004-12-28 12:25:24 +00:00
Andrew V. Samoilov
278ae44436
* extfs.c (extfs_generate_entry): Initialize inode->last_in_subdir.
...
(extfs_read_archive): Likewise. Remove unneeded test.
Fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286990
* extfs/ulha.in (mc_lha_fs_list): Use $NF instead of $10 as filename
for permission intention.
Fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286990
2004-12-27 12:12:31 +00:00
Roland Illig
001a6c1b90
* extfs/uzip.in: Fix handling of archive member pathnames starting
...
with "./".
2004-12-10 00:08:31 +00:00
Roland Illig
a0aef5042d
* ext.c: Fixed FIXME by passing around a reference to a VFS.
2004-12-06 23:27:23 +00:00
Andrew V. Samoilov
65f99d5493
* tar.c (tar_read_header): Skip over records containing
...
incremental tar specific info.
2004-12-01 08:43:25 +00:00
Andrew V. Samoilov
e7b96a4600
* fish.c(fish_file_store): Fix typo fix
2004-11-29 20:15:22 +00:00
Andrew V. Samoilov
0fdf2a6e6d
* direntry.c (vfs_s_readlink): Correctly calculate link length.
2004-11-29 18:44:49 +00:00
Andrew V. Samoilov
a2bcbdb52c
* fish.c (fish_file_store): Check write() more carefully.
...
(PREFIX): Fix memory leak.
(fish_##name): Likewise.
(fish_chown): Likewise.
2004-11-29 12:45:42 +00:00
Andrew V. Samoilov
09180a901a
* direntry.c (vfs_s_open): Fix memory leak.
...
(vfs_s_retrieve_file): Check write() return more carefully.
2004-11-26 12:00:36 +00:00
Roland Illig
48690761d6
* extfs/patchfs.in: Allow extraction and deletion of patches
...
whose filenames start with "../" or "./".
2004-11-16 23:00:40 +00:00
Roland Illig
48f13535a1
* vfs.h: Changed types for mc_chmod, mc_chown, mc_mknod to mode_t,
...
uid_t, gid_t, and dev_t where appropriate.
2004-11-16 16:49:37 +00:00
Roland Illig
6bbbeb77b4
* vfs.c: Changed types for mc_chmod, mc_chown, mc_mknod to mode_t,
...
uid_t, gid_t, and dev_t where appropriate.
Patch extended by Roland Illig.
2004-11-16 16:16:08 +00:00
Andrew V. Samoilov
1bb010e66e
Revert last changes
2004-11-16 12:50:40 +00:00
Andrew V. Samoilov
f2d94122cf
* vfs.h, vfs.c: mc_chmod(), mc_chown() parameter type cleanup.
2004-11-16 12:41:34 +00:00
Roland Illig
b7fa9f0e5f
* vfs.c: fix MC_NAMEOP macro calls to use the canonicalized path.
2004-11-15 22:55:50 +00:00
Roland Illig
de3bc90f37
* audio.in (audiofs_list): Fixed quoting issue.
...
(audiofs_copyout): Likewise.
* uar.in (mcarfs_copyin): Likewise.
* uha.in (mchafs_copyout): Likewise.
* ulha.in (mc_lha_fs_run): Likewise.
2004-11-10 16:08:00 +00:00
Andrew V. Samoilov
6c2dcea9ff
* vfs.c (vfs_prefix_to_class): Avoid last class (localfs) that would
...
accept any prefix.
2004-11-08 00:04:32 +00:00
Andrew V. Samoilov
f1e93d60f7
* cpio.c (cpio_create_entry): Added initial support for the Special
...
Named Files. Needed on QNX Neutrino.
* utilvfs.c (vfs_parse_filetype): Likewise.
2004-11-03 20:38:56 +00:00
Andrew V. Samoilov
fd5d77fc7b
* cpio.c (cpio_create_entry): Added initial support for the Special
...
Named Files. Needed on QNX Neutrino.
2004-11-03 20:32:35 +00:00
Roland Illig
3c750ff024
* ftpfs.c: Add fallback to type int if socklen_t is not provided.
2004-11-02 21:53:55 +00:00
Roland Illig
406054b8e7
* ChangeLog: Change author of tarfs patch.
2004-11-01 11:47:13 +00:00
Roland Illig
75ec336c52
* tar.c (tar_read_header): Fix pathname canonicalization.
2004-11-01 07:49:36 +00:00
Andrew V. Samoilov
7febc1e97c
* extfs/iso9660.in (mcisofs_list): Fix regular expression for stripping
...
of file name. Use autotools macro for awk instead full path.
* ChangeLog: Replace my old e-mail with my new e-mail
2004-10-29 09:14:38 +00:00
Andrew V. Samoilov
b40bb2cb58
* extfs/iso9660.in (mcisofs_list): Fix stripping of file name in awk code.
2004-10-28 12:40:47 +00:00
Andrew V. Samoilov
f8223e659b
* fish.c (fish_open_archive_int): Fix missed "%s".
2004-10-28 11:24:43 +00:00
Roland Illig
744c65862e
* ftpfs.c (ftpfs_initconn): Replace int with socklen_t where
...
appropriate. (ftpfs_open_data_connection): Likewise.
2004-10-27 18:00:42 +00:00
Andrew V. Samoilov
f3ca051033
* extfs/trpm: Put -- before "$1" to stop argument parsing.
2004-10-27 14:44:31 +00:00
Andrew V. Samoilov
c1f1ce5028
* extfs/trpm: Fix quoting issues.
2004-10-27 14:03:43 +00:00
Andrew V. Samoilov
c3cd3df138
* extfs/iso9660.in: Fix quoting issues.
2004-10-27 13:01:14 +00:00
Andrew V. Samoilov
fd913b65b6
* tar.c tar_read_header(): q should not point to a static string.
...
Canonicalize q.
2004-10-27 12:44:48 +00:00
Andrew V. Samoilov
ea5c3dead6
* vfs.c (mc_def_getlocalcopy): Don't close fd -1.
...
(_vfs_get_class): Make path "char *" instead of
"const char *" because it write to path.
(vfs_get_class): Use g_strdup()/g_free() to do "pathname"
really "const char *".
2004-10-25 12:22:52 +00:00
Andrew V. Samoilov
2c8db2c43d
* smbfs.c (smbfs_open_readwrite): Comment out flags games,
...
it is cli_open() headache.
2004-10-25 08:15:19 +00:00
Roland Illig
8d69563572
* README: Add explanation for using GPL licensed code from
...
src/ in vfs.
From Leonard den Ottolander and Roland Illig.
2004-10-23 12:32:21 +00:00
Roland Illig
7c709ae396
* mcfs.c: Add INADDR_NONE definition for SunOS.
...
* mcserv.c: Likewise. (struct user_pass): Add "const" qualifier.
2004-10-21 23:07:54 +00:00
Roland Illig
036d995eea
* extfs/hp48.in: Correct quoting from last patch. Avoid a
...
subshell when none is needed.
2004-10-18 10:16:26 +00:00
Roland Illig
3b6db492a3
* extfs/audio.in: Fix even more quoting issues.
...
* extfs/hp48.in: Likewise.
Patch from q# <eth0 o2 pl>.
2004-10-18 02:20:09 +00:00
Roland Illig
e85a083b79
* extfs/uar.in: Improve filename quoting. Add error messages.
2004-10-17 22:09:18 +00:00
Roland Illig
00371ea1a9
* extfs/audio.in: Fix quoting issues.
...
From Leonard den Ottolander.
2004-10-17 19:42:20 +00:00
Roland Illig
61b4642af4
* extfs/hp48.in: Fix quoting issues.
...
From Leonard den Ottolander.
2004-10-17 19:33:55 +00:00
Andrew V. Samoilov
e4d7245a11
* undelfs.c (undelfs_open): Use g_try_malloc() instead
...
of g_malloc().
* smbfs.c (smbfs_send): Don't account negative "ret".
2004-10-16 19:19:27 +00:00
Roland Illig
689afa899a
* tar.c (tar_read_header): Fixed handling of filenames starting
...
with "./".
2004-10-16 17:17:31 +00:00
Andrew V. Samoilov
e65b13eb00
* ftpfs.c (ftpfs_linear_start): Likewise.
...
* fish.c (fish_linear_start): Likewise.
2004-10-06 21:20:17 +00:00
Andrew V. Samoilov
126fa4d83d
* cpio.c (cpio_find_head): Check mc_read() return value.
...
(cpio_read_crc_head): Handle mc_read() return value properly.
(cpio_read_oldc_head): Use union for "st" and "buf".
(cpio_read_crc_head): Likewise.
2004-10-06 21:17:30 +00:00
Andrew V. Samoilov
687f435740
* xdirentry.h (linear_start): Use off_t for offset.
2004-10-06 18:04:15 +00:00
Andrew V. Samoilov
d0aeb947b4
* utilvfs.c(vfs_split_url): Add support for '@' in username.
2004-10-05 14:23:20 +00:00
Andrew V. Samoilov
320caad2e1
* smbfs.c (smbfs_forget): Check smbfs_connections[i].cli
...
to avoid possible segmentation fault. Close
https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=8974
2004-09-28 09:30:53 +00:00
Roland Illig
7b6f1db773
* vfs.c (_vfs_get_class): Reverted my last patch because
...
Leonard reported it to make mc crash.
2004-09-26 11:06:38 +00:00
Roland Illig
1fb7d67048
* vfs.c (_vfs_get_class): Fixed segmentation fault introduced today.
2004-09-25 19:57:20 +00:00
Roland Illig
6f34e18e3e
* ftpfs.c (ftpfs_find_machine): Added const qualifier.
...
* mcserv.c (do_auth): Likewise.
* utilvfs.c (is_month): Likewise. (is_time): Likewise.
(is_week): Likewise.
* vfs.c (_vfs_get_class): Added const qualifier.
(vfs_prefix_to_class): Added a string length parameter to
reduce the use of g_strdup. (vfs_split): Changes due to the
new string length parameter.
2004-09-25 14:06:27 +00:00
Andrew V. Samoilov
c060826178
* direntry.c (vfs_s_free_entry): g_free handles NULL argument too,
...
no need for the comparison.
* extfs.c (extfs_free_archive): Likewise.
(extfs_open_archive): Likewise.
(extfs_read_archive): Likewise.
(extfs_remove_entry): Likewise.
(extfs_free_entry): Likewise.
* fish.c (fish_open_archive): Likewise.
(fish_archive_same): Likewise.
* ftpfs.c (ftpfs_split_url): Likewise.
* local.c (local_closedir): Likewise.
* mcserv.c (close_handle): Likewise.
* smbfs.c (smbfs_free_bucket): Likewise.
* tar.c (tar_read_header): Likewise.
* undelfs.c (undelfs_shutdown): Likewise.
* vfs.c (vfs_shut): Likewise.
2004-09-24 23:00:18 +00:00
Roland Illig
e9fcc04816
* vfs.c (mc_open): Corrected FIXME. Now the "mode" parameter is
...
only accessed when flags contains O_CREAT.
2004-09-24 16:03:24 +00:00
Roland Illig
4bc786735e
* cpio.c: Replaced NULL with (char *) NULL. Likewise for 0, where
...
NULL was meant.
* direntry.c: Likewise.
* extfs.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.
* mcfs.c: Likewise.
* tar.c: Likewise.
* undelfs.c: Likewise.
* vfs.c: Likewise.
2004-09-24 15:08:21 +00:00
Roland Illig
60465dace3
* cpio.c (cpio_read_bin_head): Replaced GUINT16_SWAP_LE_BE with
...
GUINT16_SWAP_LE_BE_CONSTANT, because GCC-3.3 emitted a warning about
__asm__ __const__.
2004-09-23 14:58:40 +00:00
Roland Illig
a3cf3b2d5f
* direntry.c (vfs_s_new_entry): see 2004-09-19. Additionally followed the advice
...
concerning g_strdup in /HACKING.
(vfs_s_generate_entry): Likewise.
(vfs_s_find_entry_linear): Likewise.
(vfs_s_find_inode): Likewise.
* xdirentry.h: Likewise.
2004-09-22 11:28:14 +00:00
Andrew V. Samoilov
c524515308
* direnty.c (vfs_s_new_entry): Revert last changes.
...
(vfs_s_generate_entry): Likewise.
(vfs_s_find_entry_linear): Likewise.
(vfs_s_find_inode): Likewise.
* xdirentry.h: likewise.
2004-09-22 05:50:45 +00:00
Roland Illig
a9f9db7b6b
* direntry.c: Added const qualifier to function declarations and
...
variables. Introduced local modifiable strings where necessary.
* xdirentry.h: likewise.
2004-09-19 16:07:17 +00:00
Roland Illig
8335c0fab3
* smbfs.c (smbfs_init): Added a cast to avoid compiler warning.
2004-09-18 14:41:42 +00:00
Andrew V. Samoilov
312da833ff
* extfs.c (extfs_open_archive): Fixes bug in extfs, which showed
...
'Inconsistent extfs archive' on small archives and diffs.
QNX 6.x (QNX Neutrino) specific
2004-09-17 11:44:43 +00:00
Andrew V. Samoilov
259bc3957b
Typos
2004-09-10 09:53:15 +00:00
Andrew V. Samoilov
4d149bb08e
* fish_file_store): Call get_interrupt instead of testing
...
whether got_interrupt is non-NULL (it always is).
2004-09-09 13:26:02 +00:00
Andrew V. Samoilov
c9f834b501
* vfs.c (vfs_cmp_handle): Fixing warnings on on 64-bit
...
platforms.
(vfs_op):Likewise.
(vfs_info):Likewise.
(vfs_free_handle):Likewise.
* extfs/rpm (mcrpmfs_run): Quote parameters to calls
to system/open that spawn a shell.
* direntry.c (vfs_s_find_entry_tree): Make "size"
size_t.
2004-09-03 21:23:05 +00:00
Andrew V. Samoilov
d99d02c743
* mcfs.c (mcfs_readlink): Revert last change: readlink does not
...
append a NUL character to buf. Fix compilation.
2004-09-02 14:34:58 +00:00
Andrew V. Samoilov
fc3bf048e9
* local.c (local_readlink): Make "size" size_t.
...
* direntry.c (vfs_s_readlink): Revert last changes. Make "size"
size_t.
* sfs.c (sfs_readlink): Reformat function.
* smbfs.c (smbfs_readlink): Reformat function.
2004-09-02 14:12:21 +00:00
Andrew V. Samoilov
e04694309c
* tar.c (tar_read_header): Fix missed *.
...
* extfs.c (extfs_readlink): Revert last change: readlink does not
append a NUL character to buf.
* ftpfs.c: Warning fix.
* vfs-impl.h (struct vfs_class.readlink): Make "size" size_t.
Adjust all callers.
2004-09-02 13:57:59 +00:00
Roland Illig
c44a4a4c31
* mcfs.c (mcfs_readlink): Fixed syntax error (usage of
...
undeclared variable). Simplified string copying.
2004-09-02 13:26:28 +00:00
Andrew V. Samoilov
64b5b8b9ee
uzip.in (mczipfs_list): Add support for negative
...
compression ratio in archive listing.
2004-09-02 00:16:33 +00:00
Andrew V. Samoilov
ce4e912cbf
* extfs/uzip.in (mczipfs_list): Add support for negative
...
compression ratio in archive listing.
2004-09-02 00:15:59 +00:00
Andrew V. Samoilov
15c6e5cae6
* direntry.c (vfs_s_readlink): Use g_strlcpy instead strncpy.
...
* ftpfs.c (ftpfs_get_reply): Use g_strlcpy instead strncpy.
* extfs.c (extfs_readlink): Fix return value. Use g_strlcpy
instead strncpy.
* mcfs.c (mcfs_readlink): Fix return value. Use g_strlcpy
instead strncpy.
* tar.c (tar_read_header): Add additional check for consistency.
Fix memory leak.
* cpio.c (cpio_defer_find): Remove recursion.
(cpio_free_archive): Fix memory leak.
(cpio_read_bin_head): Use union for simplicity using of header
structure. Add additional check for consistency.
(cpio_read_oldc_head): Add additional check for consistency.
2004-09-02 00:09:02 +00:00
Andrew V. Samoilov
71ffc327b5
* fish.c (fish_get_reply): Use g_strlcpy instead
...
sequence strncpy(), name[len] = '\0'
* vfs.c (mc_get_current_wd): Likewise.
2004-09-01 18:39:48 +00:00
Andrew V. Samoilov
784158a520
E-mail fixes
2004-08-31 14:16:16 +00:00
Andrew V. Samoilov
0bc44d553c
* extfs.c (struct inode): Use off_t for size.
2004-08-30 18:38:21 +00:00
Andrew V. Samoilov
562577c0d4
Use atoll()/atof() instead of atol() for st_size to show file sizes > 2G.
2004-08-30 18:36:58 +00:00
Andrew V. Samoilov
d16aa745e8
* utilvfs.c (vfs_parse_ls_lga): Use atoll()/atof() instead of atol()
...
for st_size to show file sizes > 2G.
* fish.c (fish_dir_load): Likewise.
* extfs.c (struct inode): Use off_t for size.
2004-08-30 18:36:22 +00:00
Roland Illig
65ffa864b8
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 17:24:12 +00:00
Roland Illig
4baefa09c2
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 17:15:23 +00:00
Andrew V. Samoilov
3c4b2f8ff4
Fixed changelog entry - use parenthesis for explicit function name
2004-08-26 19:56:14 +00:00
Andrew V. Samoilov
81e4bdfe72
smbfs.c (smbfs_open_readwrite): Implement O_APPEND via smbfs_lseek().
2004-08-26 19:51:38 +00:00
Andrew V. Samoilov
7680fd6884
* extfs/rpm: Modified workaround for spaces and single quotes
...
in the path name. For mcrpmfs_copyout too.
2004-08-26 18:59:26 +00:00
Roland Illig
f78fd52bfe
* undelfs.c (undelfs_lstat): Adjusted declaration.
...
(undelfs_stat): Defined to undelfs_lstat.
From Andrew V. Samoilov
2004-08-26 09:17:38 +00:00
Andrew V. Samoilov
a2d1d4e8dc
* direntry.c: Use g_strlcpy instead strncpy for fix buffer overrun
...
* extfs.c: Likewise.
* mcfs.c: Likewise.
* smbfs.c: Likewise.
* utilvfs.c: Likewise.
2004-08-26 08:47:50 +00:00
Roland Illig
c64cec997a
* vfs.c (mc_chdir): Fixed memory leak.
2004-08-26 00:17:36 +00:00
Andrew V. Samoilov
201c30624e
* vfs/extfs/a.in: Quote parameters to calls to system/open that spawn a shell.
...
* vfs/extfs/apt.in: Likewise.
* vfs/extfs/debd.in: Likewise.
* vfs/extfs/dpkg.in: Likewise.
* vfs/extfs/deba.in: Clean up earlier fixes to quotation of parameters.
* vfs/extfs/deb.in: Likewise.
2004-08-24 19:51:41 +00:00
Andrew V. Samoilov
acc5f18cfa
Change e-mail for Leonard den Ottolander
2004-08-24 19:27:01 +00:00
Roland Illig
83c07852e9
* extfs.c (extfs_internal_stat): Fixed memory leaks introduced
...
by my change from 2004-08-16. (extfs_unlink): likewise.
* ftpfs.c (ftpfs_send_command): likewise.
2004-08-24 15:56:24 +00:00
Roland Illig
6bd2914cc1
Added missing ChangeLog entries from 2004-08-16.
2004-08-24 14:01:12 +00:00
Andrew V. Samoilov
76a8893a53
* extfs/urar.in: Fix non-POSIX constructs.
2004-08-22 22:47:15 +00:00
Andrew V. Samoilov
dbedd885e6
* extfs/rpm: Modified workaround for spaces and single quotes in the path name.
2004-08-22 22:38:49 +00:00
Andrew V. Samoilov
8a410cf065
* extfs/rpm: Don't show cpio contents in main rpm view.
...
Also avoids copying files from main view instead of from
inside CONTENTS.cpio. The former is painfully slow as the whole
file is rpm2cpio'd on each copy.
2004-08-22 21:43:18 +00:00
Andrew V. Samoilov
b2706a92c6
Anti-spam protection e-mail address for Leonard den Ottolander
2004-08-22 12:02:14 +00:00
Andrew V. Samoilov
6478efd184
* samba/lib/util.c (tmpdir): Use MC_TMPDIR environment variable.
...
(automount_lookup): More secure code.
2004-08-20 21:05:02 +00:00
Roland Illig
a37fdaca96
* extfs/deb.in (mcdebfs_list): Separated the use of quoted and unquoted variables. (mcdebfs_copyout): likewise. (mcdebfs_run): likewise. From Leonard den Ottolander <leonard@den.ottolander.nl>
2004-08-19 17:37:01 +00:00
Roland Illig
2c4ca680bb
* extfs/deba.in (list): Separated the use of quoted and unquoted variables. (copyout): likewise. (run): likewise. From Leonard den Ottolander <leonard@den.ottolander.nl>
2004-08-19 17:32:31 +00:00
Roland Illig
060898b092
* extfs/deba.in (bt): deleted. (ft): deleted. (fm): deleted. (ls): deleted. (list): correctly quoted shell command arguments. (copyout): likewise. (run): likewise. From Leonard den Ottolander <leonard@den.ottolander.nl>
2004-08-19 15:53:13 +00:00
Roland Illig
c42b447115
Using elsif instead of more expensive if.
2004-08-19 15:43:09 +00:00
Roland Illig
388442cf0c
smbfs.c: Modified smbfs_convert_path based on a patch sent by Andrew V. Samoilov. Adjusted the calls to smbfs_convert_path. Simplified string handling by using free_after from src/util.h. Fixed one memory leak and one accidental modification.
2004-08-19 12:05:54 +00:00
Andrew V. Samoilov
b328811d2a
* extfs/rpm: Command line parameters fix for UPGRADE.
...
Fix mcrpmfs_copyout for INFO/OBSOLETES and INFO/LICENSE
From Leonard den Ottolander <leonard@den.ottolander.nl>
2004-08-18 21:18:07 +00:00
Roland Illig
cdc35124d3
Only use this file if USE_VFS is defined.
2004-08-17 13:00:58 +00:00
Roland Illig
8a0b96bd27
Made name and prefix of vfs_class constant.
2004-08-17 11:19:31 +00:00
Roland Illig
94d1dea0b9
Added more const-ness. Avoided name collisions by shadowing.
2004-08-17 11:18:47 +00:00
Roland Illig
cf1c61cd2a
Added more const-ness. Avoided name collision for netrc.
2004-08-17 11:17:02 +00:00
Roland Illig
c0a173bf7b
Added more const-ness.
2004-08-17 11:14:51 +00:00
Roland Illig
f608bd21f8
Renamed any variable stat into st.
2004-08-17 11:13:55 +00:00
Roland Illig
5689ee5699
Added more const-ness to variables.
2004-08-17 10:26:44 +00:00
Roland Illig
370b29d6f6
Removed duplicate declaration of vfs_file_is_local.
2004-08-17 10:19:44 +00:00
Roland Illig
5a345d5e4d
Const-ified the vfs_find[ug]id functions.
2004-08-17 09:48:15 +00:00
Roland Illig
acd63d7374
Moved the declaration of the init_*fs functions into specialized headers (*fs.h or vfs-impl.h).
2004-08-17 09:17:43 +00:00
Andrew V. Samoilov
b93ffeaa80
Security fix patch. Fix insecure temporary file and directory creations. (CAN-2004-0231).
2004-08-17 08:24:59 +00:00
Roland Illig
a640e5a8e7
Proper handling of getopt.h and PAM.
2004-08-17 00:48:53 +00:00
Roland Illig
8a2b1f0c31
Added vfs-impl.h to the list of headers.
2004-08-17 00:48:28 +00:00