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
Pavel Roskin
1f60f44145
Update postal address of Free Software Foundation.
2005-05-27 03:35:10 +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
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
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
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
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
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
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
c0a173bf7b
Added more const-ness.
2004-08-17 11:14:51 +00:00
Roland Illig
34a8088483
Splittet the vfs.h header into a user's part (vfs.h) and an implementor's part (vfs-impl.h).
2004-08-16 23:18:42 +00:00
Roland Illig
b17b1ac213
Const-ified the rest of the vfs_class methods.
2004-08-16 22:15:28 +00:00
Roland Illig
e0bf99d516
Made the path argument to vfs->{chmod,chown,utime} constant.
2004-08-16 21:36:39 +00:00
Roland Illig
dc70d154db
Made the buf argument to vfs->write constant.
2004-08-16 21:16:54 +00:00
Roland Illig
789e5e9bcb
Made the path argument to vfs->[l]stat constant. Created a new memory leak, which will be fixed soon.
2004-08-16 20:26:42 +00:00
Roland Illig
1a62b0a598
Added explicit type casting and replaced "-1" by INADDR_NONE.
2004-08-16 16:58:00 +00:00
Roland Illig
db3f21b702
Added a typedef for a function. Added more const-ness to the function arguments.
2004-08-16 16:34:11 +00:00
Pavel Roskin
30c4bd1b6d
* vfs.h: Constify chdir() and opendir() methods. Adjust all
...
dependencies.
* vfs.c (mc_chdir): Constify, eliminate protection against
broken implementations of chdir() method.
(mc_opendir): Constify.
2003-11-13 08:29:37 +00:00
Pavel Roskin
4eab382dba
* gc.c: Make getid(), nothingisopen() and free() methods
...
optional. Eliminate trivial implementations.
(vfs_getid): New function - safe wrapper around getid(). Use
it everywhere.
(vfs_ncs_getid): Remove dead code, inprove readability.
2003-11-08 23:53:00 +00:00
Pavel Roskin
0ba019a90b
* configure.in: Use AC_CHECK_MEMBERS to check fields of struct
...
stat. Adjust all dependencies.
2003-10-29 17:36:16 +00:00
Pavel Roskin
7d16d65e35
* vfs.h: Constify some arguments for many functions.
...
* xdirentry.h: Likewise. Adjust all dependencies.
2003-10-28 02:10:33 +00:00
Pavel Roskin
5bc20fd294
* *.c: Rename functions that don't have an a prefix indicating
...
what file they are defined in. This simplifies debugging.
2003-10-28 00:57:02 +00:00
Pavel Roskin
211ce16fac
* wtools.c: Merge mc_message() and message() into one background
...
safe function message(). Fix all callers.
2003-10-26 04:47:20 +00:00
Pavel Roskin
50045218ab
Remove unneeded includes in ../src
2003-10-25 21:34:57 +00:00
Pavel Roskin
2d33b5047e
* background.c: Replace all message stubs with a new function
...
mc_message(). Protect against strlen(MSG_ERROR). Adjust all
dependencies.
2003-10-25 19:54:24 +00:00
Pavel Roskin
52844a3092
* vfs.h: Rename commands for mc_ctl() and mc_setctl() to make it
...
clear which function they are used with.
* vfs.c (mc_ctl): Change last argument to (void*).
(mc_set): Likewise.
Adjust all dependencies.
2003-10-16 16:12:19 +00:00
Pavel Roskin
72c64a60e2
* extfs.c: Switch to self-registration.
...
* mcfs.c: Likewise.
* sfs.c: Likewise.
* smbfs.c: Likewise.
* undelfs.c: Likewise.
* vfs.s (_vfs_add_noncurrent_stamps): Temporary disable code
that uses vfs_extfs_ops.
(vfs_file_is_smb): Remove.
2003-10-12 22:25:53 +00:00
Pavel Roskin
00b57fd4bf
* vfs.h: Remove typedef vfs, it's too ambiguous. Massive
...
changes to use struct vfs_class instead.
2003-10-12 00:24:00 +00:00
Pavel Roskin
1d6e00faf0
* vfs.h: Introduce new VFS flags instead of the old unused ones.
...
* vfs.c (vfs_file_class_flags): New function.
(vfs_file_is_ftp): Eliminate.
(vfs_file_is_smb): Likewise.
(vfs_file_is_local): Likewise.
(vfs_current_is_local): Use new VFSF_LOCAL flag.
2003-10-11 08:21:16 +00:00
Pavel Roskin
94e14aacfb
* direntry.c (vfs_s_dump): Commented out.
...
* extfs.c (s_readlink): Fix return value and possible buffer
overflow.
* mcfs.c (mcfs_readlink): Fix return value.
* mcserv.c (do_readlink): Fix possible off-by-one.
(commands): Make const array and remove needless comma.
2003-08-29 22:48:25 +00:00
Pavel Roskin
349d70c8cf
Typos.
2003-06-02 19:47:30 +00:00
Pavel Roskin
dd621c3f36
Warning fixes.
2002-11-15 07:49:39 +00:00
Pavel Roskin
7d90636758
Reuse existing button names.
2002-10-21 21:56:20 +00:00
Pavel Roskin
d3f0a2f61b
Remove spaces around "Error" and "Warning" together with their translations.
...
Also remove spaces from "Quit" and "Search", but leave alone the
translations, that already have them without spaces.
2002-10-21 04:13:49 +00:00
Pavel Roskin
8c39d20a57
* mcfs.c (mcfs_lseek): Explicity cast offset to int. This fixes
...
viewing and editing files on mcfs.
2002-10-05 01:55:58 +00:00
Pavel Roskin
b5e7441d98
* tcputil.c: Split mcfs-specific part to
...
* mcfsutil.c: ... this.
* tcputil.h: Split mcfs-specific part to
* mcfsutil.h: ... this.
* Makefile.am: Add mcfsutil.c and mcfsutil.h.
* mcserv.c: Define own got_sigpipe, which is always 0, since
mcserv doesn't call tcp_init().
2002-10-05 01:02:07 +00:00
Pavel Roskin
379ea9b60d
* tcputil.c (get_remote_port): Move to mcfs.c.
...
(send_string): Move to mcserv.c.
(rpc_add_get_callback): Remove, it's unused.
2002-10-01 04:09:31 +00:00
Pavel Roskin
924c985630
* utilvfs.c: Remove tests, since get_host_and_username() is
...
missing.
* mcfs.c (open_tcp_link): Make static.
* tcputil.h: Remove unused definitions.
2002-10-01 03:47:46 +00:00
Pavel Roskin
0587a032ac
Remove obsolete comments.
2002-10-01 03:33:11 +00:00
Pavel Roskin
da7e82d253
Global removal of RCS Id: flags.
2002-09-26 23:13:45 +00:00
Pavel Roskin
966511399b
Move fcntl.h inclusion to global.h.
2002-09-23 06:45:32 +00:00
Pavel Roskin
e90d91e7a0
* mcfs.c: Move config,h to the beginning.
2002-09-21 23:01:41 +00:00
Andrew V. Samoilov
50ac0519dd
* tcputil.c [!WITH_MCFS]: Disable mcfs related code.
...
* mcfs.c [!WITH_MCFS]: Disable all code.
2002-09-19 14:37:22 +00:00
Pavel Roskin
8568fc50d9
* Make-alone.am: Get rid of all standalone code, it has been
...
unmaintained for years.
2002-09-10 21:48:49 +00:00
Pavel Roskin
3c7cc35025
* ftpfs.c: Check for existance of arpa/inet.h when using it.
...
* mcfs.c: Likewise.
* mcserv.c: Likewise.
* tcputil.c: Likewise.
* utilvfs.c: Likewise.
2002-09-06 01:02:25 +00:00
Pavel Roskin
0d7af2cdba
* acinclude.m4: Remove Termnet support, it's too old and obscure
...
to be supported properly.
2002-09-03 17:58:26 +00:00
Pavel Roskin
7608383a3e
* mcfs.c [!WITH_MCFS]: Disable most code.
2002-08-19 07:22:01 +00:00
Pavel Roskin
cf8ab0de99
* extfs.c (s_readdir): Simplify.
...
* direntry.c (vfs_s_readdir): Use vfs_dirent.
* mcfs.c (mcfs_readdir): Likewise.
* smbfs.c (smbfs_readdir): Likewise.
* undelfs.c (undelfs_readdir): Use vfs_dirent and
compute_namelen().
2002-08-15 21:15:17 +00:00
Pavel Roskin
8b8d7de7ca
* direntry.c (vfs_s_readdir): Use compute_namelen().
...
* extfs.c (s_readdir): Likewise.
* mcfs.c (mcfs_readdir): Likewise.
* smbfs.c (smbfs_readdir): Likewise.
2002-08-15 19:38:17 +00:00