Commit Graph

326 Commits

Author SHA1 Message Date
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
4725ec12bb ;) 2001-08-03 10:20:22 +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
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
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
f52cfa5607 2001-05-30 Ludovic Drolez <ludovic.drolez@freealter.com>
* sfs.c (sfs_init): Don't hardcode location of sfs.ini,
	use mc_home to make mc relocatable.
2001-05-30 12:05:50 +00:00
Andrew V. Samoilov
6eda540762 '* src/main.c: Correct some comments after #endif
(shell): Remove comment and #ifdef around shell variable.
(process_args) [HAVE_SUBSHELL_SUPPORT]: All related args enclosed
between one #ifdef ... #endif pair.
(process_args): smbfs_set_debug () takes a debug level as argument,
commented out.

* vfs/sfs.c (shell): Variable moved to ...
* vfs/util-alone.c (shell): ... here'
2001-05-28 14:19:34 +00:00
Pavel Roskin
926aa5ac6b * fish.c: Redirect stderr of all commands to /dev/null. 2001-05-27 06:46:34 +00:00
Pavel Roskin
fe7780ab1d * sfs.c (vfs_sfs_ops): Typo fix. 2001-05-26 05:11:17 +00:00
Pavel Roskin
038099783c * vfs.c (vfs_split_text): Fill `columns' with zeroes before
writing new data into it.
2001-05-22 22:40:44 +00:00
Pavel Roskin
f729bde328 * fish.c (free_archive): Use exit' instead of logout' - the
later fails under non-login shells.
(pipeopen): Redirect stderr of ssh to /dev/null.
From Rich Roth:
(dir_load): Redirect stderr of ls to /dev/null.
(linear_start): Likewise.
2001-05-22 20:24:53 +00:00
Andrew V. Samoilov
0477cda1c3 * Make-mc.in (mostlyclean): Remove $(VFSSOOBJS).
(clean): Remove *.so.

* smbfs.c: Include utilvfs.h instead of ../config.h, ../src/main.h,
../src/tty.h and ../src/global.h.

(password, username): Made static.
(is_error): Commented out.
(loaddir_helper): Don't ignore hidden files, style fixes.
(browsing_helper): typestr declared as char *, fstrcpy replaced by =.

(do_connect): Call cli_shutdown () and authinfo_remove () if
cli_session_setup () fails. It is not good idea to remember
wrong username/password.

(smbfs_free_dir): Nested between #ifdef SMBFS_FREE_DIR ... #endif.
(smbfs_readdir): #ifdef SMBFS_FREE_DIR used instead of C comment.
2001-05-22 13:18:18 +00:00
Pavel Roskin
112b99950e * sfs.c (redirect): Don't free the filename after failed
mc_mkstemps() - it's not needed anymore.
2001-05-22 07:11:32 +00:00
Pavel Roskin
bea09b932d * src/ext.c (exec_extension): Use mc_mkstemps().
* src/user.c (execute_menu_command): Use mc_mkstemps().
* src/util.c (mc_mkstemps): New function - safely create and
open temporary file. Return the handle and the name.
* src/util.h: Declarations for init_tmpdir() and mc_mkstemps().
Define TMPDIR_DEFAULT and SCRIPT_SUFFIX.
* vfs/direntry.c (vfs_s_open): Use mc_mkstemps. Create and close
temporary file to reserve its name on the filesystem.
(vfs_s_retrieve_file): Use mc_mkstemps().
(g_tempnam): Remove.
* vfs/extfs.c (extfs_open): Use mc_mkstemps().
* vfs/sfs.c (redirect): Likewise.
* vfs/shared_ftp_fish.c (_get_file_entry): Likewise.
(retrieve_file): Likewise.
* vfs/vfs.c (mc_def_getlocalcopy): Likewise.
* vfs/xdirentry.h: Remove declaration of g_tempnam().
2001-05-21 16:21:07 +00:00
Pavel Roskin
8a025d6efa * vfs.c (vfs_addstamp): Rename st1 to last_stamp. Initialize it
with NULL to suppress compiler warning.
2001-05-18 19:04:42 +00:00
Pavel Roskin
da80aef5a8 * ftpfs.c: Warning fixes. 2001-05-14 23:34:43 +00:00
Pavel Roskin
02cd7bff21 * utilvfs.h: Include background.h.
* cpio.c: Include utilvfs.h.
2001-05-14 23:30:21 +00:00
Pavel Machek
c4bc884645 add possibility to build libvfs.so 2001-05-14 20:38:30 +00:00
Pavel Roskin
d2026648fe * extfs/rpm (mcrpmfs_list): Use cpio for the listing since the
rpm output varies between versions.
(mcrpmfs_copyout): Fix processing of CONTENTS.cpio. Match
filenames beginning with "./" - they are used in the version 4
packages.
2001-04-19 20:51:41 +00:00
Pavel Roskin
f5758a24c9 * fish.c (open_archive_int): Redirect stderr of start_fish_server
to stdout so we don't get confused if it doesn't exist.
2001-04-17 19:48:03 +00:00
Andrew V. Samoilov
6e8cfd807f * samba/includes/proto.h, samba/libsmb/nterr.c (get_nt_error): return
NULL when appropriative error message can't be found as it is expected
in cli_errstr(). Return type changed to const char *

* smbfs.c (smbfs_fill_names): implemented

(smbfs_stat): unneeded g_strdup/g_free calls removed
(smbfs_loaddir): memory leaking fixed

* samba/libsmb/clientgen.c (rap_errmap, prots): constified
2001-04-09 12:12:20 +00:00
Pavel Roskin
e19d03e693 * Make-mc.in: Use a single variable SAMBA_DIST to hold all
distributable samba files.
2001-04-06 05:56:02 +00:00
Andrew V. Samoilov
b7b5c71de3 * samba/libsmb/smbdes.c: undefine uchar before redefine it
* smbfs.c (smbfs_close): honour changed semantics for return value
(on error -1 is expected).

* (fs): it is at least strange use char * for counter. Changed to int
2001-03-15 18:19:23 +00:00