Pavel Roskin
4408c4e091
* extfs.c (extfs_open): Only create a new entry if it has not
...
been found and O_CREAT is set. Consider file as changed only
if it has been successfully created.
(extfs_getlocalcopy): Open file only for reading. This prevents
marking file as changed. Actually use the has_changed argument.
Reported by Nerijus Baliunas <nerijus@users.sourceforge.net>
2002-02-19 21:32:24 +00:00
Pavel Roskin
ceef847ec4
* extfs/lslR.in: Fix parsing of old entries (with year number).
...
From Daniel Skarda <0rfelyus@atrey.karlin.mff.cuni.cz>
2002-02-12 17:47:27 +00:00
Andrew V. Samoilov
1711c0ab8b
* direntry.c (vfs_s_retrieve_file): Use off_t for total
...
and stat_size.
* vfs.c (vfs_s_resolve_symlink): Use snprintf
instead of sprintf.
(vfs_print_stats): Use off_t for have and need. Cast
have to double to eliminate negative percent(s).
Fix print_vfs_message string formats.
* vfs.h (vfs_print_stats): Adjust declaration.
* ftpfs.c (file_store): Use off_t for total.
Fix print_vfs_message string format.
2002-02-08 09:42:38 +00:00
Andrew V. Samoilov
ccdd8e8859
* ftpfs.c (dir_load): Speed up cd_first calculation.
...
(ftpfs_flushdir): Resurrect.
2002-02-07 19:22:20 +00:00
Andrew V. Samoilov
0314076889
(ftpfs_chmod): Don't ignore errors.
2002-02-06 12:32:52 +00:00
Andrew V. Samoilov
e32151bb9e
* ftpfs.c (dir_load): Use "LIST -la" instead of "LIST -la ."
...
to eliminate problem with wu-ftpd.
Close sock on error. Eliminate goto.
(reconnect): Restore cwdir if login_server fails.
2002-02-06 12:28:08 +00:00
Andrew V. Samoilov
20c71f0c51
* ftpfs.c (translate_path): Remove leading slash(es) more
...
carefully.
(initconn): Check getsockname() return value.
Eliminate goto.
(linear_abort): Make ipbuf const array.
2002-02-01 12:21:55 +00:00
Andrew V. Samoilov
fa2e4f6ec9
* samba/lib/charset.c (cp_850): Make const array.
...
(cp_932): Ditto.
(codepage_p): Likewise.
* samba/lib/debug.c (priority_map): Make const array.
* samba/lib/username.c (get_home_dir): Make pass auto.
* samba/lib/util.c (become_daemon): Commented out.
(yesno): Likewise.
2002-01-29 15:45:49 +00:00
Andrew V. Samoilov
d4f5c90dd6
* ftpfs.c (reconnect): New function to restore closed connection.
...
(command): Use reconnect if EPIPE received.
(dir_load): Eliminate recursion.
(login_server): Constify netrcpass parameter.
(is_same_dir): Constify path parameter.
2002-01-29 08:09:20 +00:00
Pavel Roskin
f3ca861b8f
* cpio.c: Don't include glib.h directly.
2002-01-24 15:51:57 +00:00
Pavel Roskin
15e0ddd98c
* extfs/uzip: Fix unsafe printf.
...
Reported by Jari Karppinen <jakarppi@mail.student.oulu.fi>
2002-01-22 22:23:49 +00:00
Andrew V. Samoilov
38a5875f4c
* ftpfs.c (ftpfs_chmod): Add missed '/'.
2002-01-22 09:42:41 +00:00
Pavel Roskin
6975fdf5e8
* vfs.h: Remove all tricks with system headers, they all should
...
be in global.h.
* cpio.c: Include utilvfs.h earlier.
* tar.c: Likewise.
2002-01-21 21:26:49 +00:00
Pavel Roskin
14f498cc1a
* vfs.h: Include dirent.h only if it's present.
2002-01-21 20:01:44 +00:00
Andrew V. Samoilov
2d966e0364
* vfs.c (mc_return_cwd): Fix comment. Check whatever mc_stat
...
returns. Make mc_return_cwd static const char *.
Reorder if statement to eliminate unneeded mc_stat calls.
2002-01-21 11:52:25 +00:00
Andrew V. Samoilov
aad3bb8314
* vfs.h: Spelled.
2002-01-21 11:10:57 +00:00
Pavel Roskin
50e3625d7d
* vfs.h: Remove OS/2 specific code.
2002-01-17 07:32:32 +00:00
Andrew V. Samoilov
d8bec56efe
* Makefile.am (AM_CFLAGS): Add -DCONFIGDIR=\""@configdir@"\"
...
if smbfs support is enabled.
* smbfs.c (smbfs_init): Use CONFIGDIR for smb.conf.
2002-01-11 08:24:17 +00:00
Pavel Roskin
1dcc3e89bc
* Makefile.am: Add *clean-local targets to take care of the
...
samba directory.
2002-01-03 01:26:24 +00:00
Pavel Roskin
8ef801e873
* samba/configure.in: Use explicit AC_CONFIG_AUX_DIR because
...
this setting is not inherited from the top-level configure.
2002-01-03 00:56:57 +00:00
Pavel Roskin
05490248a2
Remove Make-mc.in - it's not used now.
2001-12-31 08:12:18 +00:00
Pavel Roskin
009eeb0a6a
* Make-mc.in: convert to ...
...
* Makefile.am: ... this.
2001-12-31 08:08:18 +00:00
Pavel Roskin
974cd6ddc0
* Makefile.am: rename to ...
...
* Make-alone.am: ... this. Automake 1.5b doesn't allow Makefile
and Makefile.am to coexist peacefully unless the former is
generated from the later.
* Make-mc.in: Remove all references to the standalone VFS.
2001-12-31 06:48:47 +00:00
Pavel Roskin
d588d57360
* extfs/ulha.in: Support for "[unknown]" and other permissions
...
in brackets. Pass the date unchanged - mc can now deal with it.
Use "lha lq" to list the archive and don't remove headers and
footers of the listing.
2001-12-18 22:55:21 +00:00
Pavel Roskin
27d176979b
s/crush/crash/ and other minor things.
2001-12-03 23:38:11 +00:00
Pavel Roskin
721ae83fff
* undelfs.c: Use ext2_ino_t to avoid warnings with e2fsprogs
...
1.20 and newer.
2001-11-14 17:57:06 +00:00
Andrew V. Samoilov
9d4e2fcd1c
* samba/acconfig.h: Remove WITH_SYSLOG.
2001-11-13 12:19:57 +00:00
Andrew V. Samoilov
4dd95908c0
* samba/lib/system.c (sys_chroot): Removed.
...
* samba/configure.in: Remove RUNPROG. Don't check
for chroot and execl functions.
Remove syslog logging support.
Add --with-codepagedir and --with-configdir from samba 2.2.2.
* samba/Makefile.in: Use configdir and codepagedir.
2001-11-13 11:42:53 +00:00
Pavel Roskin
992cb980de
* Make-mc.in (SAMBA_DIST): Remove lib/getsmbpass.c.
2001-11-08 23:53:27 +00:00
Andrew V. Samoilov
b3f9ba7f98
* smbfs.c (smbfs_add_dots): New function. Insert a "." and ".."
...
entries into the linked list.
(smbfs_loaddir): Call smbfs_add_dots for shares or servers.
(smbfs_get_free_bucket): Eliminate utime.
(fake_share_stat): Make path const.
* samba/configure.in: Don't check whether getpass
should be replaced.
2001-11-05 13:16:17 +00:00
Andrew V. Samoilov
dd5ccea5d6
* vfs.c (mc_return_cwd): Memory leak fixed.
2001-11-02 18:18:14 +00:00
Andrew V. Samoilov
a802b107ae
* samba/smblib/pwd_cache.c (pwd_read): Commented out.
...
* samba/Makefile.in (SAMBAFILES): Remove lib/getsmbpass.o.
* samba/lib/getsmbpass.c: Removed.
2001-11-01 13:31:52 +00:00
Andrew V. Samoilov
ddcd0ee421
* samba/smblib/pwd_cache.c (pwd_read): Commented out.
...
* samba/Makefile.in (SAMBAFILES): Remove lib/getsmbpass.o.
* samba/lib/getsmbpass.c: Removed.
2001-11-01 13:12:24 +00:00
Andrew V. Samoilov
2cc50a14d6
Don't include "tcputil.h".
...
(loaddir): Symplify.
(fake_share_stat): Declare server_url const.
Use "%4o" for st_mode.
(fake_server_stat): Likewise. Return -1 if server_list != True.
2001-10-30 15:24:01 +00:00
Andrew V. Samoilov
0b88e8d6ce
(myhostname): Declare extern.
...
(get_master_browser): Declare ipzero extern. By drk@sgi.com .
http://bugzilla.gnome.org/show_bug.cgi?id=60933
2001-10-30 14:40:46 +00:00
Andrew V. Samoilov
a04a0a6b4b
* smbfs.c: Include <config.h> before everything else.
2001-10-30 12:20:11 +00:00
Andrew V. Samoilov
a9b290f926
* cpio.c (cpio_read_bin_head): Release name if mc_read fails.
...
(cpio_read_crc_head): Likewise.
2001-10-30 11:42:44 +00:00
Andrew V. Samoilov
888a4f073b
* cpio.c (cpio_read_crc_head): Fix buffer overflow.
...
(cpio_read_oldc_head): Likewise. By drk@sgi.com .
http://bugzilla.gnome.org/show_bug.cgi?id=60933
* (cpio_read_oldc_head): Release name if mc_read fails.
2001-10-25 14:24:29 +00:00
Andrew V. Samoilov
3767e8e5df
* tcputil.c (rpc_get): Add missing va_end()s. Fix memory leaking.
2001-10-25 07:57:15 +00:00
Andrew V. Samoilov
a918318c9d
* smbfs.h: Declare smbfs_set_debug.
2001-10-24 08:16:16 +00:00
Pavel Roskin
2b9f5265b4
* ftpfs.c (command): Declare with the printf attribute.
...
* undelfs.c: Remove declaration of print_vfs_message().
2001-10-20 07:12:55 +00:00
Pavel Roskin
0c52fb0f99
* fish.c (file_store): Fix incorrect format string
...
for print_vfs_message().
* ftpfs.c (file_store): Likewise.
2001-10-20 07:04:31 +00:00
Pavel Roskin
cf59af66de
* fish.c (command): Declare with the printf attribute to enable
...
warnings in gcc.
(file_store): Cast all expressions with file sizes to unsigned
long. This should fix uploading when large file support is on.
File size is limited to 4096 * ULONG_MAX for now.
2001-10-20 03:41:31 +00:00
Andrew V. Samoilov
0ff4b8ae77
* samba/configure.in: Don't check readline.h, history.h and
...
libreadline.
2001-10-18 09:24:28 +00:00
Andrew V. Samoilov
b7339b590f
* samba/libsmb/clientgen.c (cli_RNetShareEnum): Fix Win2k
...
"out of server memory" error. From samba 2.0.7 patchset.
2001-10-16 07:02:32 +00:00
Pavel Roskin
388a2fe2bf
* vfs.c (vfs_parse_filetype): Fix fallback to fifo if sockets
...
are not supported locally. Support Solaris doors, also fall
back to fifo.
2001-10-07 09:01:17 +00:00
Pavel Roskin
78982e7cc5
* sfc.c (sfs_getid): Don't use vfs_die(), return (vfsid)(-1)
...
instead.
2001-10-02 08:06:37 +00:00
Pavel Roskin
353e389689
* vfs.h [!USE_VFS]: Define macros with no effect to an empty
...
statement "do { } while (0)".
2001-10-01 06:01:13 +00:00
Pavel Roskin
d08e77f86d
* samba/acconfig.h: Only leave symbols required by Autoconf-2.52.
2001-09-30 19:50:38 +00:00
Pavel Roskin
534e8f432a
* vfs.c: Manually expand macros for mc_stat(), mc_lstat() and
...
mc_fstat() because they don't expand correctly on Solaris 8 with
large file support.
2001-09-17 21:29:51 +00:00
Pavel Roskin
692f52ce8d
* configure.in: Use three-argument form of AC_INIT. Use
...
AC_CONFIG_AUX_DIR. Remove some unused or implied macros.
* Makefile.am (EXTRA_DIST): Remove "depcomp" - this workaround
is not needed if AC_CONFIG_AUX_DIR is used.
* vfs/Make-mc.in: Adjust mkinstalldirs location.
* autogen.sh: Create "config" and remove "autom4te.cache".
2001-09-12 19:18:38 +00:00
Pavel Roskin
92f05b1d2f
* Make-mc.in: Use USE_VFS conditional instead of relying on
...
LIBVFS.
2001-09-10 20:26:13 +00:00
Pavel Roskin
e777d48dfb
* Make-mc.in: Include necessary parts of Make.common to
...
eliminate the later.
2001-09-07 15:22:47 +00:00
Pavel Roskin
6f8323907f
Trimmed using last chtrim. Ensure exactly 2 spaces before e-mail.
2001-09-01 20:12:16 +00:00
Pavel Roskin
05f725e4ee
Remove zombie files
2001-08-26 14:55:05 +00:00
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
Andrew V. Samoilov
7df26a45b5
* vfs/samba/lib/util_sock.c (socket_options): Made static const.
2001-06-01 13:38:04 +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
b0593ec1e2
* Make.common.in: Remove obsolete dependency tracking system.
...
* configure.in: Likewise.
* edit/Makefile.in: Likewise.
* gnome/Makefile.in: Likewise.
* gtkedit/Makefile.in: Likewise.
* slang/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* vfs/Make-mc.in: Likewise.
* src/depend.awk: Remove.
2001-05-27 04:34:12 +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
1eadb1fc3f
* 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:26:59 +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
Andrew V. Samoilov
56aef8572f
* background.c (real_message_1s, message_1s): third parameter is
...
used by message () as printf pattern, so "%s" has to be added
if plain string must be shown but printf conversion
specification(s) may be there.
* view.c (do_view_init): ditto
* user.c (debug_out): ditto
* utilunux.c (close_error_pipe, check_error_pipe): ditto
* background.[ch], vfs/util-alone.c (message_1s): third parameter
constified
2001-05-14 19:01:20 +00:00
Andrew V. Samoilov
94fc1dd4e3
.cvsignore: config.cache added
2001-04-23 13:24:44 +00:00
Pavel Roskin
30dc7621d4
* configure.in: Don't install mcserv unless
...
"--enable-mcserv-install" has heen specified.
Don't quote the first argument in all calls to AM_CONDITIONAL
to work around a bug in Automake 1.4.
* doc/Makefile.am: Use MCSERV_INSTALL conditional.
* vfs/Make-mc.in: Likewise.
2001-04-19 23:20:06 +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
Miguel de Icaza
900d78c30a
fix rpm script problem
2001-04-16 17:54:48 +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
Andrew V. Samoilov
0d20e2fa8a
* 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
2001-04-09 11:34:15 +00:00
Pavel Roskin
bb912def1a
* gtkedit/editcmd.c: Remove support for XView layout attributes.
...
* gtkedit/editoptions.c: Likewise.
* pc/chmod.c: Likewise.
* pc/drive.c: Likewise.
* src/boxes.c: Likewise.
* src/chmod.c: Likewise.
* src/dlg.c: Likewise.
* src/dlg.h: Likewise.
* src/filegui.c: Likewise.
* src/find.c: Likewise.
* src/hotlist.c: Likewise.
* src/layout.c: Likewise.
* src/listmode.c: Likewise.
* src/main.c: Likewise.
* src/option.c: Likewise.
* src/panelize.c: Likewise.
* src/wtools.c: Likewise.
* src/wtools.h: Likewise.
* vfs/smbfs.c: Likewise.
2001-04-06 21:48:11 +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
Pavel Roskin
8e2dd48337
* Make-mc.in: Use Automake conditional USE_SAMBA_FS.
...
Remove any knowledge of SAMBAFILES. Merge object files with
libsamba.a if USE_SAMBA_FS is true. Propagate "mostlyclean"
to the `samba' directory. Don't ignore errors from ranlib.
2001-03-15 01:40:30 +00:00
Pavel Roskin
bafc61e43e
* samba/Makefile.in: Make *clean targets Automake-compatible.
...
Don't ignore errors from `rm'.
2001-03-15 01:35:07 +00:00
Pavel Roskin
d92beac560
* samba/configure.in: Use AC_CHECK_TOOL to find AR.
...
* samba/Makefile.in: Remove useless rules, including defunct
dependency tracking. Create libsamba.a from the object files.
2001-03-15 01:25:51 +00:00
Pavel Roskin
2dc6461bba
* cpio.c (cpio_skip_padding): Warning fix.
...
* fish.c (dir_load): Likewise.
* mcfs.c: Likewise.
2001-03-08 01:04:58 +00:00
Pavel Roskin
de997c6f3a
* extfs/uzip: New file from Oskar Liljeblad.
...
* extfs/README.uzip: Likewise.
* extfs/Makefile.am: Adjust for constant uzip.
2001-03-08 00:34:20 +00:00
Pavel Machek
773f38c580
2001-03-07 Pavel Machek <pavel@bug.ucw.cz>
...
* extfs/*uzip*: replace uzip with perl version by
Oskar Liljeblad <osk@hem.passagen.se>
2001-03-07 10:20:16 +00:00
Andrew V. Samoilov
4ac1c260e9
* vfs.[ch] (vfs_parse_ls_lga, vfs_parse_filemode): p constified
...
(vfs_strip_suffix_from_filename): filename constified
(vfs_parse_ls_lga): memory leaking fixed when line can't be parsed,
chomping unified
2001-03-05 06:00:27 +00:00
Andrew V. Samoilov
fbf86d5a22
* extfs/patchfs: LANG overrides LC_TIME at least in glibc,
...
so use LC_ALL=C to override any locale
* smbfs.c (smbfs_open_link): service initialized
* (my_forget): new features of vfs_split_url used
smbfs.c at all: make gcc some more happy
2001-03-04 18:55:17 +00:00
Pavel Roskin
9e22f3b8d7
* extfs/uzip.in (mczipfs_list): Allow filenames with colons.
...
Reported by Christian Gennerat.
2001-03-01 06:16:20 +00:00
Pavel Machek
7c997958f6
Error handling of ungetlocalcopy was buggy. Fixed.
2001-02-28 21:50:57 +00:00
Pavel Machek
776af93dc8
Do not ignore errors during mc_ungetlocalcopy.
2001-02-27 22:19:04 +00:00
Pavel Roskin
4f9c3415a5
* extfs/lslR (mclslRfs_list): Don't use gawk-specific features.
...
Don't hardcode gawk. Don't rely on the date format occupying a
fixed number of fields.
2001-02-23 08:45:13 +00:00
Pavel Roskin
c0d8ea01b9
* extfs/uzip.in (mczipfs_list): Don't check zipinfo support on
...
the real file - check usage info instead. Use more robust checks
for valid lines. Suppress stderr from unzip. Workaround for jar
files - fix mode for files ending with slash.
2001-02-23 07:26:30 +00:00
Pavel Roskin
447597a790
* vfs.h: Include sys/timeb.h if it's present. Include time.h and
...
sys/time.h as recommended by Autoconf documentation.
* cpio.c: Remove all time-related includes - they are in vfs.h.
* extfs.c: Likewise.
* ftpfs.c: Likewise.
* mcfs.c: Likewise.
* mcserv.c: Likewise.
* tar.c: Likewise.
* util-alone.c: Likewise.
* vfs.c: Likewise. Include xdirentry.h.
2001-02-20 16:55:58 +00:00
Pavel Roskin
cde914f99a
* extfs.c: Include xdirentry.h. Undefine ERRNOR before
...
redefining it.
2001-02-20 16:24:49 +00:00
Pavel Roskin
459e0ee296
* shared_tar_ext.c (__find_entry): Make sure that the parent is a
...
directory even if the child is not.
2001-02-19 20:55:26 +00:00
Pavel Roskin
1a4495c4c7
* extfs/mailfs (parse_date): Correctly handle two-digit years
...
between 1970 and 1999.
2001-02-19 18:42:12 +00:00
Pavel Roskin
a18b4a09eb
* vfs.c (vfs_parse_filedate): Don't reset got_year to 0 while
...
checking for ctime() format.
From Peter Daum.
2001-02-15 01:37:43 +00:00