Pavel Roskin
77e155246d
* names.c (finduname): Don't use HAVE_GETPWUID - it's never
...
defined. Don't redeclare getpwuid().
(findgname): Don't use HAVE_GETGRGID - it's never defined.
Don't redeclare getgrgid().
2001-08-24 02:51:40 +00:00
Pavel Roskin
13b66d593e
* fish.c: Remove useless semicolons after functions.
2001-08-23 17:13:43 +00:00
Pavel Roskin
efe396e30e
* vfs.c (vfs_parse_ls_lga): Warning fix if st_nlink is unsigned.
...
Disallow st_nlink = 0.
2001-08-19 16:11:39 +00:00
Pavel Roskin
78940c0e53
* cpio.c (cpio_read_head): Check return value of cpio_find_head,
...
because it's not equal to super->u.cpio.type in case of errors.
2001-08-19 03:38:52 +00:00
Pavel Roskin
0b36c6e5eb
* direntry.c (vfs_s_free_super): Remove i18n on commented out
...
developer-only code.
2001-08-16 22:23:05 +00:00
Pavel Roskin
e6a07c778a
* extfs.c (extfs_init): Internationalize error message, it's
...
already in sfs.c.
2001-08-16 20:43:47 +00:00
Pavel Roskin
689c3fb9ac
Replace "Can't" with "Cannot" everywhere.
2001-08-14 00:55:34 +00:00
Pavel Roskin
7493ab67ad
* sfs.c (sfs_init): Use g_free(), not free() on mc_sfsini.
2001-08-11 04:57:17 +00:00
Pavel Roskin
4b54385dc6
* extfs.h: Move private structures ...
...
* extfs.c: ... here.
2001-08-07 23:54:35 +00:00
Pavel Roskin
5c7d2296ca
* extfs.h (struct entry): Remove unused `has_changed' field.
...
It's only written but never read.
(struct inode): Likewise.
* extfs.c: All dependencies changed.
(extfs_open): Mark file as changed if it's open for writing.
2001-08-07 22:47:02 +00:00
Pavel Roskin
f3e22063e1
* extfs/uzip: Update to version 1.4.0.
...
* extfs/README.uzip: Likewise.
2001-08-07 20:02:05 +00:00
Andrew V. Samoilov
7131de12c8
;)
2001-08-07 10:27:21 +00:00
Andrew V. Samoilov
1e23c4fb68
* ftpfs.c (ftpfs_fill_names): New function.
...
(vfs_ftpfs_ops): Use ftpfs_fill_names insted of vfs_s_fill_names.
2001-08-06 15:39:08 +00:00
Andrew V. Samoilov
0ec69ba605
* samba/lib/charcnv.c (unix2dos_format): Fix possible buffer overflow.
...
(dos2unix_format): Likewise.
2001-08-06 15:37:28 +00:00
Andrew V. Samoilov
2e4e496c36
* smbfs.c: Eliminate smbfs_get_free_bucket_init. convert_path
...
gives malloced filename, so this memory must be released after use.
(reconnect): Fix segmentation fault.
(smbfs_loadddir): Don't g_strdup path.
(smbfs_get_free_bucket): Eliminate smbfs_get_free_bucket_init and
smbfs_connections initialisation.
(smbfs_open_link): Likewise. Release host after get_master_browser.
(get_stat_info): Fix unneeded g_strdup/g_free calls.
(smbfs_mkdir): Release path after use.
(smbfs_mkdir): Likewise.
(smbfs_open): Fix memory leak.
(smbfs_unlink): Likewise. Fix error message.
(smbfs_rename): Fix memory leaks.
(smbfs_stat): Fix url parsing.
2001-08-06 15:36:33 +00:00
Andrew V. Samoilov
4725ec12bb
;)
2001-08-03 10:20:22 +00:00
Andrew V. Samoilov
3002c837ab
* smbfs.c (new_dir_entry): New function with repeated code from
...
browsing_helper, loaddir_helper and server_browsing_helper.
(browsing_helper): Use new_dir_entry.
(loaddir_helper): Likewise.
(server_browsing_helper): Likewise.
(cached_lstat_info): Eliminated.
(smbfs_readdir): Make dirent_dest static const.
Eliminate cached_lstat_info.
(smbfs_open_link): Make user parameter const. Fix memory leak.
(fake_server_stat): Make path parameter const. Symplify.
(smbfs_fstat): Set my_errno to EFAULT before return.
2001-08-03 10:19:45 +00:00
Andrew V. Samoilov
480dc4765f
* xdirentry.h (struct vfs_s_super): Remove u.ftp.result_pending field.
...
* ftpfs.h (struct connection): Remove result_pending field.
2001-08-03 10:15:17 +00:00
Andrew V. Samoilov
1c07145e0f
* samba/libsmb/clientgen.c (cli_chkpath): Fix possible buffer overflow.
2001-08-03 10:14:18 +00:00
Andrew V. Samoilov
c908fc4562
* utilvfs.c, vfs.h (vfs_split_url): Make path parameter const.
2001-08-03 10:12:18 +00:00
Pavel Roskin
c1d46903d7
* Make-mc.in: Make it possible to run "make install" before
...
"make all". Use more Automake-compatible target names.
2001-08-01 16:15:22 +00:00
Andrew V. Samoilov
ae7fd2fcd2
(search_dir_entry): Make text parameter const.
...
(smbfs_get_host_and_username): Make macro.
(my_forget): Fix compilation.
2001-08-01 12:24:35 +00:00
Andrew V. Samoilov
0db7865c82
* smbfs.c: Undefine VERSION to prevent warning. Comments fixes.
...
(do_connect): Symplify.
(get_stat_info): Symplify. Eliminate another fake_stat.
(smbfs_chdir): Release remote_dir after use.
(smbfs_stat): Likewise. Fix another 2 memory leaks.
(smbfs_mkdir): Release remote_file after use.
(smbfs_rmdir): Likewise.
(smbfs_open): Likewise. Indentation fixes.
(smbfs_unlink): Likewise.
(smbfs_rename): Release rb and ra after use.
2001-08-01 10:40:15 +00:00
Pavel Roskin
ced1d864e8
Add *.cache.
2001-07-31 18:27:52 +00:00
Pavel Roskin
a1532469cd
* extfs.c (extfs_init) [GTK]: Use mc_home instead of LIBDIR.
...
From Ludovic Drolez <ludovic.drolez@freealter.com>.
2001-07-20 14:50:30 +00:00
Pavel Roskin
613dc4d1ca
* vfs.c (mc_return_cwd): Use g_get_current_dir().
2001-07-18 03:44:38 +00:00
Pavel Roskin
75be0dd7e1
Use short path in the last entry.
2001-07-15 07:24:58 +00:00
Pavel Roskin
820a35758e
* vfs/smbfs.c: Rename authinfo to smb_authinfo and
...
authinfo_get_authinfo_from_user() to vfs_smb_get_authinfo()
and remove their definitions.
* vfs/vfs.h: Declare smb_authinfo and vfs_smb_get_authinfo().
2001-07-15 07:01:41 +00:00
Pavel Roskin
c100281180
* extfs.c: Include contents of shared_tar_ext.c - it's no
...
longer shared.
* shared_tar_ext.c: Remove.
* Make-mc.in (VFSSRCS): Remove shared_tar_ext.c.
2001-07-10 14:19:11 +00:00
Pavel Roskin
ab828100df
* smbfs.c (vfs_smbfs_ops): Use short name "smbfs" for the
...
filesystem. Don't translate it.
2001-07-10 04:05:47 +00:00
Pavel Roskin
401ca73645
* tar.c (ReadStatus): Fix compilation on AIX.
...
From Dan McNichol <mcnichol@austin.ibm.com>.
2001-07-10 03:12:02 +00:00
Pavel Roskin
e1d5a8250d
* extfs/mailfs: Strip trailing DOS newlines from mail files.
...
From Christian Gennerat <christian.gennerat@vz.cit.alcatel.fr>
2001-07-09 20:07:43 +00:00
Pavel Roskin
80f37db22b
* fish.c (fish_chown): Do nothing and return success if
...
getpwuid() or getgrgid() fails.
2001-07-09 16:15:33 +00:00
Pavel Roskin
1fc74d5ab3
* README.fish: Spelling fixes.
2001-07-05 15:05:23 +00:00
Pavel Roskin
5ff9f80ca8
* Make-mc.in: Don't ever link mcserv with libintl - it must not
...
depend on it.
2001-06-29 07:20:46 +00:00
Andrew V. Samoilov
69c85ec184
* smbfs.c: Include <config.h>. Make all internal variables static.
...
(get_stat_info): Eliminate fake_stat, memory leak fixed.
(IPC, URL_HEADER): Make static const.
(smbfs_stat): Fix segmentation violation.
(statfile_helper): Allocate memory for single_entry once. It is never
freed now, and only my_stat element of this structure is used.
2001-06-27 12:26:27 +00:00
Pavel Roskin
19bf66d5e0
* vfs.h: Don't include <config.h>.
2001-06-26 14:41:31 +00:00
Pavel Roskin
680f3f7ed2
* cpio.c: Include <config.h> before everything else.
...
* direntry.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.
* local.c: Likewise.
* tar.c: Likewise.
* utilvfs.h: Don't include <config.h> - it should be included
in all C files instead.
* xdirentry.h: Likewise.
2001-06-25 21:34:46 +00:00
Pavel Roskin
d8ec86292f
* local.c (local_telldir): Warn and abort if telldir() is not
...
available.
(local_seekdir): Warn and abort if seekdir() is not available.
2001-06-19 19:36:54 +00:00
Pavel Roskin
f76a2c4576
* tcputil.c (sig_pipe): Use the same declaration with one int
...
argument - it's used everywhere else and it fixes a warning on
systems unlisted in the ifdef, e.g. OpenBSD.
2001-06-18 20:35:44 +00:00
Andrew V. Samoilov
442bf424d9
* vfs.c [VFS_STANDALONE]: Undefine WITH_SMBFS, they are mutually
...
exclusive now.
(is_week): Unmade week static.
(is_month): Unmade month static.
(vfs_parse_ls_lga): Optimize memory usage.
2001-06-15 22:42:50 +00:00
Andrew V. Samoilov
269af251b8
* sfs.c: Remark about shell removed.
...
(sfs_init): Optimized.
2001-06-15 22:32:15 +00:00
Pavel Roskin
5da3b42969
* ftpfs.c: Declare functions without declarations static. Don't
...
omit `void' in declarations.
* cpio.c: Likewise.
* direntry.c: Likewise.
* extfs.c: Likewise.
* mcfs.c: Likewise.
* tar.c: Likewise.
* vfs.c: Likewise.
* vfs.h: Likewise.
* mcserv.c: Likewise. Remove unused functions.
2001-06-14 20:08:27 +00:00
Pavel Roskin
22a3755dc0
* util-alone.c: Use indented #error.
...
* vfs.h: Use indented #warning instead of hiding it from non-gcc
compilers.
2001-06-14 15:26:29 +00:00
Pavel Roskin
6fe51516de
* cpio.c (vfs_cpiofs_ops): Use short name for the filesystem.
...
This avoids creating long filenames in dirent.c when the "name"
field is used.
* extfs.c (vfs_extfs_ops): Likewise.
* fish.c (vfs_fish_ops): Likewise.
* ftpfs.c (vfs_ftpfs_ops): Likewise.
* local.c (vfs_local_ops): Likewise.
(vfs_nil_ops): Likewise.
* mcfs.c (vfs_mcfs_ops): Likewise.
* sfs.c (vfs_sfs_ops): Likewise.
* tar.c (vfs_tarfs_ops): Likewise.
* undelfs.c (vfs_undelfs_ops): Likewise.
2001-06-11 21:58:58 +00:00
Pavel Roskin
49d8cd7f50
* sfs.c (sfs_init): Change some warning messages to simplify
...
their translation.
2001-06-07 05:08:52 +00:00
Pavel Roskin
aa8c484f31
* shared_ftp_fish.c: Remove.
...
* Make-mc.in: Remove shared_ftp_fish.c.
* Makefile.am: Likewise.
2001-06-06 19:07:21 +00:00
Pavel Roskin
c6f85d7969
* vfs.c (vfs_canon): s/canonize/canonicalize/.
2001-06-02 06:36:00 +00:00
Andrew V. Samoilov
07b052699e
* ftpfs.h: Declare use_netrc, ftpfs_retry_seconds, ftpfs_first_cd_then_ls,
...
ftpfs_use_passive_connections and ftpfs_use_unix_list_options.
* vfs.c [VFS_STANDALONE]: Undefine WITH_SMBFS, they are mutually
exclusive now.
(is_week): Unmade week static.
(is_month): Unmade month static.
(vfs_parse_ls_lga): Optimize memory usage.
* .cvsignore: *.sor added.
* sfs.c (sfs_init): Optimized.
* vfs/samba/lib/util_sock.c (socket_options): Made static const.
2001-06-01 17:46:57 +00:00
Andrew V. Samoilov
c9c3e9538e
*.sor added.
2001-06-01 13:39:53 +00:00