Commit Graph

501 Commits

Author SHA1 Message Date
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
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
Pavel Roskin
d0c9ee2e9f Fixed incomplete description of the last patch. 2001-02-11 07:21:29 +00:00
Pavel Roskin
27d7ebd2a3 * extfs/mailfs (parse_date): Workaround for Y2K bugs. Support
for dates found in AOLMail(SM) messages. Provide a fallback if
cannot parse the date.
(process_header): Typo fix. Use s instead of space in regular
expressions.
2001-02-11 07:10:49 +00:00
Pavel Roskin
4c7f17ce21 * extfs/uzip.in: Preserve permissions of FAT and NTFS archives,
including the directory bit. This fixes crashes on some FAT
archives.
2001-02-10 09:25:07 +00:00
Pavel Roskin
53a4e96313 * samba/configure.in: Remove more useless tests.
* samba/tests/crypttest.c: Remove.
* samba/tests/fcntl_lock.c: Likewise.
* samba/tests/shared_mmap.c: Likewise.
* samba/tests/sysv_ipc.c: Likewise.
* samba/samba-files: Likewise.
* samba/smbadduser: Likewise.
* Make-mc.in: Adjust for the above.
* samba/include/includes.h: Removed definitions related to the
above tests.
2001-02-09 20:46:46 +00:00
Pavel Roskin
90096c49b9 * Make-mc.in: Eliminate ubiqx.
* samba/Makefile.in: Likewise. Remove some unused variables.
* samba/include/includes.h: Eliminate dependency on ubiqx.
* samba/include/nameserv.h: Likewise.
* samba/include/proto.h: Remove prototypes from nmbd/*.
* samba/ubiqx/*: Remove.
2001-02-09 20:03:04 +00:00
Pavel Roskin
47a538a968 * samba/configure.in: More useless stuff removed.
* samba/Makefile.in: Likewise.
* Make-mc.in: Remove samba/smbwrapper directory.
* samba/smbwrapper/smbw.h: Remove.
* samba/include/includes.h: Don't include smbw.h.
2001-02-09 19:31:35 +00:00
Pavel Roskin
2586b393e1 * samba/configure.in: Don't check for things that are unused.
Remove support for building shared libraries.
* samba/Makefile.in: Remove support for shared libraries and
quota.
2001-02-09 18:42:25 +00:00
Pavel Roskin
e3fb615e35 * samba/configure.in: Don't check for any 64-bit functions and
syscall() - they are not needed.
2001-02-09 08:12:10 +00:00
Pavel Roskin
78fa0d0b65 * samba/configure.in: Remove the test for
HAVE_EXPLICIT_LARGEFILE_SUPPORT, since it's incompatible with
the rest of the source that doesn't use explicit 64-bit calls.
2001-02-09 07:36:44 +00:00
Pavel Roskin
4a24c76cc4 * Make-mc.in: Always check for samba/Makefile before descending
there. Don't ever ignore errors from "cd". Use $(MAKE), not
make. Formatting changes.
2001-02-09 06:39:34 +00:00
Pavel Roskin
33e22a4ccb * Make-mc.in: Undo previous fix. Don't run "make clean" in
samba/ if samba/Makefile is missing.
2001-02-08 16:35:13 +00:00
Pavel Roskin
29fd6aca1b * Make-mc.in: Don't run "make clean" in samba/ as samba/Makefile
may be missing. Clean using the rule from samba/Makefile.in.
2001-02-08 16:01:20 +00:00
Pavel Roskin
c786ce8984 * cpio.c: Eliminate C++ comments.
* fish.c: Likewise.
2001-02-08 07:13:27 +00:00
Pavel Roskin
a6fa2fe5e6 * Make-mc.in: Use mkinstalldirs to create $(distdir)/extfs,
since CVS Automake already creates that directory.
2001-02-08 07:02:30 +00:00
Pavel Roskin
16874dded6 * Make-mc.in: Don't add _LARGEFILE64_SOURCE to CFLAGS without
testing - it breaks on HP-UX 10.20.
2001-02-08 05:55:44 +00:00
Pavel Roskin
4c1e96b8d9 * Make-mc.in: Don't distribute samba/tests/trapdoor.c and
samba/tests/ftruncroot.c.
2001-02-08 02:00:21 +00:00
Pavel Roskin
bbc91a29a5 * samba/configure.in: Remove tests for setresuid and setresgid.
* samba/include/includes.h: Remove declarations of setresuid and
setresgid.
2001-02-08 01:29:38 +00:00
Pavel Roskin
e30e6b8a5a * samba/configure.in: Don't check for root permissions. Don't
call tests/trapdoor.c and tests/ftruncroot.c.
* samba/tests/trapdoor.c: Remove.
* samba/tests/ftruncroot.c: Likewise.
* samba/tests/summary.c: Don't warn about trapdoor uid systems.
2001-02-08 00:59:35 +00:00
Pavel Roskin
23162f96b9 * Make-mc.in: Don't link container.o into libvfs-mc.a - it's
not used.
2001-02-08 00:28:15 +00:00
Pavel Roskin
7c587c375b * samba/aclocal.m4: Fix underquoting.
* samba/configure.in: Fix underquoting. Don't use loff_t as the
second argument to AC_CHECK_TYPE - it's not a builtin type.
2001-02-07 23:49:43 +00:00
Pavel Roskin
1c3d0e0d62 * samba/configure.in: Remove checks for statvfs and friends -
they are irrelevant to the client code.
* samba/tests/summary.c: Likewise.
2001-02-07 15:41:18 +00:00
Andrew V. Samoilov
f2d2af671f * extfs/urar.in (list): better solution to prevent duplication 2000-12-15 11:50:45 +00:00
Andrew V. Samoilov
2f76be3354 :) 2000-12-14 01:21:04 +00:00
Pavel Machek
55e56a1426 Fixes from Roland: we may not g_free() strdup-ed text. 2000-10-31 15:43:49 +00:00
Andrew V. Samoilov
c5ec3ea3d9 :) 2000-10-22 15:06:21 +00:00
Andrew V. Samoilov
6f10b0fdb3 :) 2000-10-16 18:35:21 +00:00
Andrew V. Samoilov
ed0753665b :) 2000-10-09 22:44:51 +00:00
Pavel Roskin
dd9705f8e9 * extfs/rpm: If rpm indicates an error create a virtual file
ERROR and put error messages there.
2000-10-06 01:43:46 +00:00
Pavel Machek
c3edb91d89 Better unarj.diff 2000-09-25 12:49:41 +00:00
Pavel Roskin
ed3fbae2ed * extfs/uzoo.in: Suppress output from grep. Don't use '~',
use $HOME instead - it's more portable.
2000-09-21 20:58:10 +00:00
Pavel Roskin
68ffa5da8f * extfs/Makefile.am: all scripts should be executable 2000-09-18 15:52:16 +00:00
Pavel Machek
ca504d4f91 Override locale for patchfs. 2000-09-18 14:25:47 +00:00
Pavel Machek
eabe77c776 Better /#a filesystem 2000-09-14 20:53:57 +00:00
Pavel Roskin
e053e5effe * Make-mc.in: direntry.c was listed twice in VFSSRCS 2000-09-14 20:34:52 +00:00
Pavel Roskin
d572f3a51f * Make-mc.in: removed commands to build standalone libvfs -
they are now in Makefile.am. Create links in the build
directory - source directory may be read-only. Removed hack
with mcservx - it's no longer needed.
2000-09-14 16:13:36 +00:00
Pavel Roskin
06a39fbd2d * ftpfs.h: include "xdirentry.h" instead of "vfs/xdirentry.h" 2000-09-14 15:06:14 +00:00
Pavel Roskin
316d642896 * Make-mc.in: don't ignore errors in the distdir target 2000-09-05 18:26:40 +00:00
Pavel Roskin
4a032150e9 * configure.in: output vfs/extfs/Makefile
* vfs/extfs/Makefile.am: new file
* vfs/Make-mc.in: remove stuff pertinent to the extfs directory
2000-09-01 21:34:26 +00:00
Pavel Roskin
cfd82e2788 * Make-mc.in: don't ignore error installing mcserv.
Create directories before installing into them.
2000-08-24 14:39:33 +00:00
Pavel Roskin
5b11ed2900 Adjusted lists of distributed files
Fixed rules for rebuilding makefiles
2000-08-18 05:18:47 +00:00
Pavel Machek
03f1a9601b Enhancements to uzip.in 2000-08-08 17:20:57 +00:00
Pavel Machek
a1d1728dc8 ftpfs . / .. is broken, but previous fix was worse than disease. 2000-08-08 15:12:39 +00:00
Pavel Machek
127611ec77 Fix . and .. in ftpfs directories. 2000-08-04 12:15:46 +00:00
Pavel Machek
68e2b7a1e5 Added missing function. 2000-08-04 12:03:43 +00:00
Pavel Roskin
062aa46cec undelfs.h: Removed 2000-08-03 21:58:19 +00:00
Pavel Roskin
0ebabd29c7 Make-mc.in: Filters apt, audio, deba, debd and dpkg are now
distributed. Added some comments to prevent future errors.
"make distclean" now cleans generated filters.
2000-08-02 22:36:15 +00:00
Pavel Roskin
fd07976482 Fixed sloppy output. The fix also sent to the Samba team. 2000-08-02 20:17:13 +00:00
Pavel Roskin
dda5a51112 samba/include/stamp-h.in: Added to CVS 2000-08-02 17:15:33 +00:00
Pavel Machek
b1185ecc73 * vfs.c (mc_[un]def_getlocalcopy): better error handling on writing
--------------------------------------------------------------
2000-05-25 14:47:48 +00:00
Pavel Machek
392c7489e3 2000-05-18 Andrew V. Samoilov <sav@bcs.zp.ua>
* ftpfs.c: (my_get_host_and_username) space between macro name and
       parentheses removed
2000-05-19 13:09:41 +00:00
Pavel Machek
c319041ba8 2000-05-15 Andrew V. Samoilov <sav@bcs.zp.ua>
* tar.c (read_header): memory leaking for empty symlink's names fixed

	* utilvfs.c (vfs_split_url): *host is not assigned if host is null

	* ftpfs.c (login_server): new features of vfs_split_url () used,
	  my_get_host_and_username became macro

	* vfs.c (mc_opendir, mc_chdir): unneeded calls to concat_dir_and_file
	  removed (vfs_canon removes trailing '/')

	* sfs.c (vfmake, redirect): allocated memory realeased on errors
2000-05-16 14:59:33 +00:00
Pavel Machek
7d50be2f1c Do not leave st_nlink uninitialized. 2000-05-10 10:19:00 +00:00
Miguel de Icaza
b028900fdd 2000-05-04 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
* src/user.c: Add macro %k it is block file name
       Add macro %e it is error file name
       Add macro %i it is cursor column indent of spaces, only for edit
       Add macro %y, it is syntax of current file in editor, only for edit
       Add condition y , it is syntax pattern of current file in edit
       Add macro %x it is extension of current file
       Add macro %m it is current menu filename

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	* gtkedit/editcmd.c: Modify External Formatter (was C indent formatter) .
	Autocreate a scripts in home, from templates /usr/lib/mc/edit.indent.rc,
	edit.ispell.rc, etc. Remove leading and trailing spaces into _(""),
	(the message of David H. Martin <dmartina@usa.net>)

2000-05-05  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	* src/user.c:	Add condition (x filename) into mc.menu .
			for "Open next a free console" and like.

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	src/user.c: fix segfault in chunk_alloc of glibc, when into condition
	of .mnu we have quoted space. (~.mc/menu: + f \.\ test$).

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

	* gtkedit/edit.c:
       Add ability user edit menus: system: /usr/lib/mc/cedit.menu,
	* gtkedit/editmenu.c:        home: ~/.cedit.menu, local: .cedit.menu
	Marked block is access now from an user edit menu
	Access ~/.cedit/cooledit.block for insert to cursor place from
	user edit menu.
	Created system cedit.menu

2000-05-04  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>

    	* gtkedit/editdraw.c:
	Improved a status string of cool editor for best understand,
	and to add char,hex view.

2000-05-04 Richard Hestilow <hestgray@ionet.net>

	* gnome/gdesktop.c: Fixes snap to grid.
2000-05-09 01:18:27 +00:00
Pavel Machek
8542ae3328 Fixed problems with stating / of ftp archive; minor bugfix. 2000-05-03 19:10:52 +00:00
Pavel Machek
d91a2b9a63 2000-04-28 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* direntry.c (vfs_s_internal_stat): added ugly special case for /
        of archive to always exist. It seems I'm hiding some underlying
        problem :-(.
2000-04-28 07:56:30 +00:00
Pavel Machek
d7bf5305b1 2000-04-26 Andrew V. Samoilov <sav@bcs.zp.ua>
* direntry.c (vfs_s_find_entry_tree): segfault fixed when root is NULL

        (vfs_s_new_inode, vfs_s_new_entry): g_new replaced by g_new0

        * ftpfs.c (dir_load): ent->name is free()d for "." and ".."

        (ftpfs_directory_timeout): default value changed to 900

        (netrc_next): "const char * const keywords" go to rodata and is shared
2000-04-28 07:43:13 +00:00
Pavel Machek
a1225de8b3 Fix problems with stating / of ftp server + NO_LOCALHASH to prevent
podfuk deadlocs
2000-04-16 19:13:00 +00:00
Timur Bakeyev
b27e5517b9 2000-04-14 Timur Bakeyev <mc@bat.ru>
* config.in: Added check against strcoll().
2000-04-14 08:59:19 +00:00
Timur Bakeyev
ec83d4571e 2000-04-15 Timur Bakeyev <mc@bat.ru>
* ftpfs.c (netrc_next): "const char * keywords" is pretty nice.

	* ftpfs.c (dir_load): At last, found place, that broke handling
	directories with spaces in name. Problem was in prepending "/"
	to "." for current directory. Which was, obviously, wrong. Hacked
	to make just "LIST -la ." instead.

	* vfs.c: Changed to BUF_* constants in some places.
2000-04-14 01:14:26 +00:00
Pavel Machek
b84e803046 Allow spaces in lslR.in 2000-04-12 09:25:07 +00:00
Pavel Machek
5b81966b3e 2000-04-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* extfs/audio: Added a way to browse audio CDs conviently
2000-04-10 12:29:29 +00:00
Pavel Machek
9e7b2625d5 2000-04-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* undelfs.c: use NULLs instead of 0s when you assign to pointers!
2000-04-10 12:23:00 +00:00
Pavel Machek
f5f1ec0523 2000-04-05 Andrew V. Samoilov <sav@bcs.zp.ua>
* utilfs.c (vfs_split_url): don't assign *pass if pass is NULL
        * fish.c (archive_open, archive_same): memory allocated by
          vfs_split_url () must be released after use, don't strdup()
          values allocated by vfs_split_url () and NULL passed to
          vfs_split_url () when password value is unused
        * ftpfs.c (archive_open, archive_same): ditto plus same for
          ftpfs_get_proxy_host_and_port ()
2000-04-10 12:00:43 +00:00
Timur Bakeyev
3bfe8a0b3c 2000-04-06 Timur Bakeyev <mc@bat.ru>
* ftpfs.c (netrc_next): Turned strange "const char * const keywords"
	into more alike "const char const * keywords". Still, think, it's
	too strict.

	* smbfs.c: Add #define BOOL_DEFINED before inclusion of samba headers.
	Libncurses(or slang?) defines BOOL and that can cause problems. (In fact,
	I can't find references to that const, but sure, I hade reason to do that:)

	* util-alone.h: Declare load_anon_passwd() to avoid warnings.
2000-04-09 23:06:59 +00:00
Pavel Machek
425dbd07c1 2000-03-31 Andrew V. Samoilov <sav@bcs.zp.ua>
* vfs.c (mc_def_getlocalcopy): free() replaced by g_free() to prevent
	  crushes with mad, thanks to Timur I. Bakeyev <timur@bat.ru>
	* fish.c (linear_start): name wasn't freed after usage
	* cpio.c (cpio_ungetlocalcopy): return type changed to int,
	  function return 0 now
	* direntry.c (vfs_s_close, vfs_s_resolve_symlink): memory, allocated
	  by vfs_s_fullpath () is freed after use
	* ftpfs.c (linear_start): ditto;
2000-04-05 13:08:42 +00:00
Pavel Machek
24c6ab65f5 Do not free paths returned from vfs_s_get_path_mangle. 2000-04-03 10:35:48 +00:00
Pavel Machek
b15c763325 Fixes to way files with space in name are handled. 2000-03-29 13:36:54 +00:00
Pavel Machek
d5d72d865b Set locales to C before calling rpm. 2000-03-28 10:49:26 +00:00
Pavel Machek
24ccfadb27 2000-03-06 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
Patch by  Andrew V. Samoilov <sav@bcs.zp.ua>

        * vfs.c (vfs_parse_ls_lga): don't hard code st_ino and st_dev to 0's,
          these variables must be assigned in vfs_s_new_inode () or extfs
          layer, so ftpfs subdirectories now can be copied.
2000-03-06 16:31:37 +00:00
Pavel Machek
0b25d26cf0 2000-02-25 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
Patch by  Andrew V. Samoilov <sav@bcs.zp.ua>

        * vfs.[ch] (vfs_canon, mc_open, vfs_file_is_local,
          mc_(un)?getlocalcopy): added const qualifier
        (mc_def_getlocalcopy): tempnam() returns malloc()ed buffer,
          so, free() it, not g_free();
        (vfs_canon): prepend filename by cwd when tilde '~' cannot be expanded;
2000-02-25 12:53:06 +00:00
Pavel Machek
bc97907e77 Make cpiofs compilable. 2000-02-23 12:35:36 +00:00
Norbert Warmuth
e37737c0c9 2000-02-23 Norbert Warmuth <nwarmuth@privat.circular.de>
* vfs/ftpfs.c: Definition of PORT changed in the middle of ftpfs.c
with unexpected side effects (only when HSC_PROXY was
defined). Introduce HSC_PROXY_PORT and FTP_COMMAND_PORT and use
where appropriate.

(dir_load): Do not hard code the directory cache timeout to 10
seconds. Instead use the setting from Options/Virtual VFS ...

* vfs/fish.c (file_store): honour changed semantics for return value
(on error -1 is expected).

* vfs/ftpfs.c (file_store): dito


* gtkedit/editcmd.c (edit_replace_prompt): fix incorrect
initialization of array of structure (gcc version 2.96 20000131
chokes on it).

* lib/mc.hint: C-y and not C-u can be used to insert text in input
lines (e. g. text which has been deleted with M-d).

* configure.in: Fix the extfs-configure-fragment-in-final-output bug

* src/main.c (parse_control_file): add missing right parentheses

* src/boxes.c: fix incorrect initialization of array of structure (gcc
version 2.96 20000131 chokes on it).
2000-02-23 07:43:14 +00:00
Pavel Machek
5d240399be 2000-02-22 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* cpio.c: added. Thanx to Jan Hudec <bulb@centrum.cz>, who wrote
        it using code from tarfs.
2000-02-22 18:21:41 +00:00
Pavel Machek
63554e21ec y2k fixes for uzip 2000-02-21 11:41:36 +00:00
Pavel Machek
d332550407 Fixed error where relative paths were errorneously used. 2000-02-03 21:59:04 +00:00
Pavel Machek
06542c693a Added missing prototype. 2000-02-02 16:59:19 +00:00
Pavel Machek
aa6cbcbc89 2000-01-31 Andrew V. Samoilov <sav@bcs.zp.ua>
* direntry.c: (vfs_s_resolve_symlink, vfs_s_readlink) fixed segfaults
	for broken symlinks like 2001 -> The Space Oddysea.
2000-01-31 13:48:00 +00:00
Pavel Machek
28eb60242d ftpfs can not handle homes nicely. Is there good way to solve this? 2000-01-24 12:35:52 +00:00
Pavel Machek
b028dbad2e Small cleanup in extfs.c 2000-01-13 15:15:42 +00:00
Pavel Machek
dcb64cee6d 2000-01-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* ftpfs.c: cosmetic fixes + killed ugly infinite loop, patch
	from Andrew V. Samoilov
2000-01-12 23:45:51 +00:00
Miguel de Icaza
f414f394d1 2000-01-02 Martin Bialasinski <martin@internet-treff.uni-koeln.de>
* extfs/deb.in: Change to the deb vfs. tar has changed, and
	depending on the version, it saves files as "./filename" or
	"filename".
2000-01-02 23:50:56 +00:00
Miguel de Icaza
32955de6bf 2000-01-02 Martin Bialasinski <martin@internet-treff.uni-koeln.de>
* From debian: added deba, debd, dpkg, apt script file systems.
2000-01-02 23:48:55 +00:00
Pavel Roskin
36facc201c vfs/vfs.h: use #warning only for gcc. Not all compilers
understand it
src/main.c, src/view.c: #warning's replaced with FIXME's.
They were not for users, but for developers
1999-12-22 04:04:23 +00:00
Pavel Machek
748e4c38f9 1999-12-15 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* Merged changes by Andrew V. Samoilov <sav@bcs.zp.ua>. They are
	mostly internationalization + fixing stupid bugs of mine
1999-12-16 12:55:16 +00:00
Pavel Machek
bcfd532240 1999-12-08 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
* ftpfs.c: basically replaced ftpfs with new one. Unlike the
        previous one, this uses new direntry.c layer, so shared_ftp_fish.c
        can be killed.

        This is new code, so beware.
1999-12-08 11:39:14 +00:00
Pavel Machek
660b4b85ed Ungetlocalcopy return type has changed... 1999-11-11 14:50:50 +00:00
Pavel Machek
1139602a9b Return value is needed for mc_[un]getlocalcopy. 1999-11-11 14:23:40 +00:00
Pavel Machek
a0878908e1 1999-02-17 Pavel Machek <pavel@bug.ucw.cz>
* direntry.c (vfs_s_getlocalcopy): fixed segfault, getlocalcopy's
	name has to be malloced.
1999-11-03 14:51:22 +00:00
Miguel de Icaza
7db5c96a00 1999-10-07 Miguel de Icaza <miguel@gnu.org>
* ftpfs.c (linear_read): Applied patch from Alexander V. Lukyanov
	<lav@yars.free.net> that makes the code compliant to RFC959
1999-10-07 05:24:54 +00:00
Miguel de Icaza
897a4a5c6f 1999-08-30 Miguel de Icaza <miguel@gnu.org>
* ftpfs.c (insert_dots): Use g_new here.

	* shared_ftpfs_fish.c: Style fixes and small fixes

1999-09-22  Bjorn Eriksson <mdeans@algonet.se>

	* extfs/uzip.in: Better handling of zip-archives that contain files
	which contain spaces.
1999-09-25 20:25:20 +00:00
Norbert Warmuth
10c8184839 1999-09-22 Bjorn Eriksson <mdeans@algonet.se>
* vfs/extfs/uzip.in: Better handling of zip-archives that contain files
which contain spaces.


1999-09-22  Norbert Warmuth  <nwarmuth@privat.circular.de>

* lib/mc.sh.in, mc.csh.in: renamed from mc.sh resp. mc.csh. Adapt
path to the mc binary according to @prefix@.

* lib/Makefile.in (srcdir): mc.sh and mc.csh are now created by
configure. Install mc.sh and mc.csh in $(suppbindir).

* doc/mc.1.in, mc.sgml: Updated the mc function definition for bash
and zsh. Suggest to source mc.sh or mc.csh instead of adding verbatim
copies of the included function definitions.

* mcfn_install.in: Comment out definitions of the mc functions. Source
mc.sh instead of adding an outdated mc function definition.

* configure.in: output mc.sh and mc.csh
1999-09-22 22:04:45 +00:00
Norbert Warmuth
d836e5a79a 1999-09-19 Andrew V. Samoilov <sav@bcs.zp.ua>
* src/user.c (check_patterns): char* is used instead of char [] in sizeof

* src/util.c (string_perm): prefix named pipes by 'p' and not by `s'


1999-09-19  David Martin <dmartina@usa.net>

* gtkedit/editcmd.c (edit_print_string): Use unsigned char so that
8 bit chars from strftime get displayed when inserting date.

* lib/mc.ext.in: Add entries for bzip2 compressed pages as used in
Mandrake 6.0. The generic entry for bzip2 moved to the end of the
file to avoid interferences. In this one I changed the extension check
to a type check (as used for gzip) which might give problems in some
systems.

* configure.in: Use -Tlatin1 to format man pages when available and
"view" 8 bit chars.


1999-09-19  Norbert Warmuth  <nwarmuth@privat.circular.de>

* gtkedit/edit.h: Include files reordered in order to make it compile with
--with-debug

* gtkedit/editcmd.c (menu_save_mode_cmd): calculate dialog width
dependent on lenght of translated strings to display.

* src/mad.c, mad.h, util.c, util.h: Move mad-functions from util.[ch]
to mad.[ch]

* src/option.c: Include files reordered in order to make it compile with
--with-debug

* src/mad.c (mad_init): New function. Initialize debug FILE pointer to
stderr (moved to a function because not on every system stderr is
a constant).
(mad_set_debug): added const qualifier

* src/main.c (main): call mad_init

* po/*.po: s/defination/definition/

* gnome/Makefile.in ($(MAGICDEV_GENERATED)): Make it compile with $buildir
!= $srcdir.

* vfs/ftpfs.c (ftpfs_set_debug), vfs.h: added const qualifier.

* vfs/mcserv.c: removed definition of mad_strconcat which is also
in mad.c.
1999-09-19 23:09:07 +00:00
Miguel de Icaza
356209d996 1999-09-17 Federico Mena Quintero <federico@redhat.com>
* smbfs.c: #define NO_CONFIG_H before including the samba
	includes; this way it will not re=define HAVE_LIBREADLINE.  This
	situation sucks.  Should we change the names of the widget.h
	history_*() functions?

1999-09-17  Federico Mena Quintero  <federico@redhat.com>

	* gmain.c (x_init_dlg): Display a warning if the GtkTed code path
	is ever reached.
	(xtoolkit_create_dialog): Likewise.
	(x_add_widget): Likewise.
1999-09-17 20:11:53 +00:00
Norbert Warmuth
946ac9b60b This commit mainly adds a password dialog to smbfs. In the Gnome Edition
this dialog doesn't look perfect but at least it doesn't break gmc.


1999-09-14  Norbert Warmuth  <nwarmuth@privat.circular.de>

* gnome/layout: Added the new samba password dialog.

* src/widget.[ch] (input_new): added const qualifier

* src/util.c (wipe_password): Check for NULL.


1999-09-14  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/smbfs.c (various places): Store filenames in memory with the unix
character set and convert it back to the dos character set when filenames
are passed back to the samba server. If samba is configured correctly
this will fix the problems with filenames which contain national characters.

(bucket_set_authinfo): Set domain, username and password which will
be used to log on and authenticate against the samba server and remember this
information on a host/share basis. If set use PASSWD to get the
password. If already authenticated against the host and share use this
information. If already authenticated against host and IPC$ use this
information. If neither of the former is true ask the user how to
log on.

(authinfo_get_authinfo_from_user): New function. Query the user for
domain, username and password to use for authentication.

(authinfo_free): New function. Free memory in authentication structure.

(authinfo_free_all): New function. Free the list used to remember
authentication information.

(authinfo_compare_host_and_share, authinfo_compare_host): New functions.
Helper functions used to search the authentication list.

(authinfo_add): New function. Add one authentication entry to the
authlist.

(authinfo_remove): New function. Remove one entry from the authlist.

(free_bucket): Free memory associated with one bucket.

(smbfs_get_free_bucket): Initialize the complete connection array
with 0. Free the memory allocated for a bucket and initialize the
bucket before reusing it.

(smbfs_open_link): use new functions to get authentication information

(get_stat_info, smbfs_stat): remove unused variables.
1999-09-14 18:20:02 +00:00
Miguel de Icaza
d95c6432e6 1999-08-31 Richard Hult <rhult@hem2.passagen.se>
* configure.in (ALL_LINGUAS): Added sv.

1999-08-30  Norbert Warmuth  <nwarmuth@privat.circular.de>
1999-08-31 23:59:48 +00:00
Miguel de Icaza
ef2d3cbb1a 1999-08-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
* ftpfs.c (translate_path): Remove static buffer from here.
	Return a strdupped string now.
	(send_ftp_command): Release translate_path result here.
	(open_data_connection): Release translate_path result here.
	(ftpfs_chdir_internal): Reease it here too.
1999-08-31 00:11:57 +00:00
Norbert Warmuth
d393e2e098 1999-08-30 Norbert Warmuth <nwarmuth@privat.circular.de>
* lib/mc.sh: create temporary files in ~/.mc/tmp in order to avoid
symlink attacks (mcfn_install and the man page still needs to be
updated).

* src/main.c (print_mc_usage): Print the bug reporting address.
(main): Put prompt in a new line at termination.

* vfs/shared_ftp_fish.c (get_line): Fixed off by one error ('\0' might
have been written one slot past the supplied character array).

* vfs/ftpfs.c (resolve_symlink_without_ls_options): Don't dump core on
strange symlinks (ls -la doesn't reveal where the symlink points to
and ls -lLa doesn't resolve the symlink either)

Added protection against recursive symbolic links.
1999-08-30 06:01:37 +00:00
Norbert Warmuth
3ca228c330 1999-08-20 Norbert Warmuth <nwarmuth@privat.circular.de>
* configure.in (AC_WITH_SLANG): rm -f destination before makeing
a symbolic link (ln -sf doesn't work as expected on Solaris)

1999-08-19  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/smbfs.c: added missing include file

(browsing_helper): use g_strdup instead of g_new + pstrcpy
(Btw. this is an example why the handholding of smblib gives a
false security feeling. pstrcpy limits the number of characters
copied and is used with a buffer which is smaler than the hard
coded limit in pstrcpy)
(loaddir_helper): ditto
(server_browsing_helper): ditto

(get_remote_stat): fixed memory leaks
(smbfs_loaddir): ditto
(get_stat_info): ditto
(smbfs_stat): ditto

(convert_path): rewritten, now it's much cleaner what it does.
This rewrite was necessary because gcc -O2 choked on glibc 2.1
systems. In that combination strncat is a macro which expands to
strlen and strcat and in vfs/samba/include/includes.h the latter is
defined to __ERROR__XX__NEVER_USE_STRCAT___;.
1999-08-20 05:42:02 +00:00
Norbert Warmuth
d988df6100 1999-08-18 Norbert Warmuth <nwarmuth@privat.circular.de>
* vfs/direntry.c (vfs_s_getlocalcopy): There's an aditional strdup
needed. In rare cases a pointer was freed twice. Pavel Machek
pointed this out a while ago but obviously it hasn't been fixed, yet.

* vfs/sfs.c (vfmake): Quote characters with a special meaning to the
shell in filenames/-pathes (Fix Bug #1931, VFS will not work if
your full path has the space character in it.).
1999-08-18 19:08:56 +00:00
Norbert Warmuth
3cf5946891 Revert last patch, it has some issues (you want to update when you already
updated your code with the broken patch).
1999-08-18 05:37:45 +00:00
Norbert Warmuth
8a7769edb3 1999-08-18 Norbert Warmuth <nwarmuth@privat.circular.de>
* vfs/sfs.c (vfmake): Quote characters with a special meaning to the
shell in filenames/-pathes (Fix Bug #1931, VFS will not work if
your full path has the space character in it.).
1999-08-18 04:53:18 +00:00
Kjartan Maraas
dd6d56508b 1999-08-18 Kjartan Maraas <kmaraas@online.no>
* no.po: Fix typo.
1999-08-17 22:42:14 +00:00
Norbert Warmuth
6fae3e0425 1999-08-15 David Martin <dmartina@usa.net>
* gtkedit/edit.c: Print localized date with strftime()

* src/boxes.c: (symlink_dialog): Move dialog misaligned elements

* vfs/vfs.c (vfs_print_stats): Translate vfs stats

* vfs/shared_ftp_fish.c (s_read, s_lseek): Mark strings for translation

* vfs/fish.c: Translate messages

* src/boxes.c: (symlink_dialog): Move dialog misaligned elements

* src/cmd.c (get_random_hint): Look for localized hint files

* lib/mc.hint.es: NEW FILE. Hints in Spanish flavour.


1999-08-15  Norbert Warmuth  <nwarmuth@privat.circular.de>

* src/cmd.c (guess_message_value): New function. Determine locale used
for messages

(get_random_hint): use guess_message_value

* lib/Makefile.in: added mc.hint.es to LIBFILES_CONST
1999-08-16 05:31:23 +00:00
Norbert Warmuth
972271c9e2 1999-08-06 Norbert Warmuth <nwarmuth@privat.circular.de>
* gnome/gconf.h (PORT_STATIC_IN_STRING_FILE_XTIME): new port specific
feature. The Gnome edition first calls all string_file functions
and then uses the return values of these functions. Therefore additional
static buffers in string_file_[acm]time are needed.

* src/screen.c (string_file_[amc]time): These three functions use
file_date which returns a pointer to a static buffer. In the
Gnome edition this buffer has to be coppied to a static buffer
which isn't used in the other two functions (Fix Bug #1766).

* src/util.c, util.h: Moved some constants to util.h

* vfs/tar.c (read_header): Don't segfault when a symlink points to the
root directory.


1999-08-04  Norbert Warmuth  <nwarmuth@privat.circular.de>

* src/widget.c (push_history): Add SMB Link to the list of input dialogs
where urls are input without vfs prefix.

Translate the titles of these input dialogs only once.

Removed Gnome specific code because the Gnome edition doesn't use
the input history any more.

* src/util.c (strip_password): Add /#smb: to the list of urls which might
be input with password.
1999-08-06 19:24:04 +00:00
Norbert Warmuth
fc05bf2408 1999-08-01 David Martin <dmartina@usa.net>
* gnome/gcmd.c (gnome_about_cmd): Change strings in gmc "about" to
static as they only translated once.

* src/menu.c (create_menu, menubar_drop_compute, menubar_paint_idx):
Discount '&' for hotkeys when checking menu widths to avoid the
extra blank space.
Moved this accounting from the drawing to the creating function.

* src/widget.c: Translate History box tittle.

* po/es.po, po/es_ES.po: added translation for history box title



1999-08-01  Norbert Warmuth  <nwarmuth@privat.circular.de>

* src/vfs.c: Don't close a function definition with "};". SunCC from
2.5.1 chokes on the extra semicolon.

(mc_munmap): Don't dereference function pointer when checking for
NULL (this check is supposed to prevent a segfault instead of
causing one). This haven't got noticed up to now becaue there's no
file system with mmap but without munmap.
1999-08-01 11:37:25 +00:00
Timur Bakeyev
04d8d238d4 Tue Jul 6 11:22:40 1999 Timur I. Bakeyev <mc@bat.ru>
* samba/include/config.h: Removed. Should be generated.
1999-07-06 09:26:44 +00:00
Timur Bakeyev
81a3cb3c24 Tue Jul 6 11:18:45 1999 Timur I. Bakeyev <mc@bat.ru>
* Make-mc.in(XCPPFLAGS): Add necessary paths to allow compile sambafs
	when builddir != srcdir. Removed some junk after not coherent patching.
1999-07-06 09:21:39 +00:00
Miguel de Icaza
a87e7cbff9 Fixety fix - Federico 1999-07-04 10:21:43 +00:00
Miguel de Icaza
7e2b19b2ea 1999-07-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
* configure.in (VERSION): Bumped version number to 4.5.34.

1999-07-04  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* Make-mc.in (distcopy): Added a bunch of new lists of files for
	the directories in vfs/samba.  Use them in this rule, because
	plain wildcards will not work right.
	(SAMBA_DIST_TOPLEVEL): Added configure to the list of distributed
	files.
1999-07-04 08:16:31 +00:00
Tuomas J. Lukka
495c2ad6d7 Fix Make-mc.in to compile without samba 1999-07-02 15:06:21 +00:00
Miguel de Icaza
560b322111 1999-06-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* smbfs.c 	(get_remote_stat): Change debug level.
1999-06-25 22:24:50 +00:00
Miguel de Icaza
f913bef583 1999-06-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* smbfs.c (get_stat_info): 2 line fixes from Wayne to check the
	cache properly.  WOOOOHOOOO!  Works like a charm.
1999-06-25 22:22:31 +00:00
Miguel de Icaza
2a8730b21c 1999-06-01 Robert Brady <rwb197@ecs.soton.ac.uk>
* file.c (move_dir_dir): Give an error when an attempt is made to
	move an empty directory into itself.

1999-06-14  Wayne Roberts <wroberts1@cx983858-b.orng1.occa.home.com>

	* vfs/smbfs.c: New file.  Implements the Samba-based file system.

	* vfs/vfs.h: Declare vfs_smbfs_ops, vfs_file_is_smb.

	* vfs/vfs.c (vfs_file_is_smb): implemented.
	(vfs_init) register smbfs.

	* vfs/samba: Incorporate SAMBA source code required for smbfs

1999-05-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* Make.common.in (confdir): Define confdir as sysconfdir.  This
	should fix the problem we had with FSSTND distributions.
1999-06-22 19:56:36 +00:00
Norbert Warmuth
d32e4e77e6 Fri Jun 18 11:29:56 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* src/user.c (user_menu_cmd): Allow national characters as hotkeys.
Don't dump core when the menu file contains only empty lines

* src/view.c (search, block_search): Use the correct column for the
percent display while searching.


Fri Jun 18 11:49:05 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/ftpfs.c (resolve_symlink_with_ls_options): Some ftp servers don't
make a difference between "LIST -la" and "LIST -lLa". If we find such
a server don't use -lLa when resolving symbolic links.
1999-06-18 22:25:24 +00:00
Miguel de Icaza
05a386254b Update ChangeLog 1999-05-17 23:14:35 +00:00
Pavel Machek
049c75b6c0 Quote string properly. 1999-04-30 14:39:28 +00:00
Miguel de Icaza
449bee9014 1999-04-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* extfs/uzip.in (nam): Handle new unzips.
1999-04-25 19:34:47 +00:00
Norbert Warmuth
52d700b4b0 Fri Apr 23 21:02:32 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* vfs/ftpfs.c (retrieve_dir): If we don't get any valid directory entry
(i.e. not even "." and "..") check whether the directory is empty
or not existend (instead of failing with "ftpfs: failed").
1999-04-24 05:40:11 +00:00
Pavel Machek
58dbdc168e It is _never_ good idea to ignore errors. People than expect
everything is going ok.

Ok, I've now limited number of "could not parse" error messages to 5
per session. Lower this limit if it makes you crazy, but DO NOT REMOVE
those messages.
1999-04-23 11:32:53 +00:00
Pavel Machek
bd8f6266b7 Fix for solaris using 'l' instead of 'S'. 1999-04-23 10:38:13 +00:00
Norbert Warmuth
2b862fe4f1 Wed Apr 21 21:47:15 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* src/ext.c (exec_extension): Use tempnam instead of tmpnam (AIX doesn't
like the lattern when compiled with -mthreads).

* src/user.c (execute_menu_command): ditto.


Wed Apr 21 22:04:30 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* gtkedit/editcmd.c (edit_save_file): MAD knows about tempnam, no
need to fool it by strdup'ing the return value of tempnam.


Wed Apr 21 21:59:50 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/extfs.c (extfs_open): tempnam returns a malloced string, no need
to strdup it

(various places): use free instead of g_free to free string returned
by tempnam.
1999-04-22 04:36:11 +00:00
Pavel Machek
27a09e8635 Roll in changes from "christian.gennerat" <christian.gennerat@vz.cit.alcatel.fr> 1999-04-21 10:55:07 +00:00
Miguel de Icaza
e67b78b16c 1999-04-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
* extfs.c (get_path_from_entry): Fix a crash here.
1999-04-19 03:33:56 +00:00
Andrew T. Veliath
9e7e543cef src/
* main.c (_do_panel_cd): If we are using GNOME, and the panel is a
	desktop panel, open up a new panel for the contents.

gnome/
	* gdesktop.c (create_panel_from_desktop): Assign selected_index
	when we find the last selected icon.
	(desktop_icon_info_open): Desktop directory open case moved to
	main.c to handle both general and action cd commands.

vfs/
	* extfs.c (extfs_unlink):
	(extfs_mkdir):
	(extfs_rmdir):
	(remove_entry): New functions.
	(vfs_extfs_ops): Add unlink, mkdir and rmdir functions to table.
	Add descriptions for these to the extfs README.
1999-04-13 02:05:15 +00:00
Pavel Machek
544e039e34 Add unarj into distribution 1999-04-12 09:16:03 +00:00
Pavel Machek
1218816a58 Distribute callback.h and README files with midnight. 1999-04-12 08:56:40 +00:00
Owen Taylor
c0820900e4 1999-04-08 Owen Taylor <otaylor@redhat.com>
* extfs/deb.in extfs/ulha.in extfs/ucpio.in: Fix
	up sections marked "TMP RACE" comments so they are
	at least secure.
1999-04-08 17:16:58 +00:00
Miguel de Icaza
a762d74873 Sync ChangeLog 1999-04-01 17:59:07 +00:00
Miguel de Icaza
b3bb157ad5 These are a bunch of changes to fix CORBA and session management. They
are almost complete (i.e. to handle all nitty gritty cases), but they
seem to be working OK right now.  SM should be much more stable now.
Please tell me if you find any weird behavior - Federico

1999-03-30  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gdesktop-icon.c (desktop_icon_realize): Remove the
	WM_CLIENT_LEADER property from icon windows so that window
	managers will not store SM information for them.

	* gnome-open-dialog.c: Added missing #includes.

	* gdesktop-init.c (desktop_init_at): Removed an unused variable.

	* gdesktop.h: Added some missing prototypes.

	* gmain.h: Added some missing prototypes.

	* Makefile.in: Added gsession.[ch] to the list of sources.

	* gmain.c (create_panels): Consider whether we have a CORBA server
	and session management.

	* gdesktop.c: #include "gdesktop-init.h"
	* gdesktop.c: Added a missing cast to GNOME_DIALOG.

	* gmain.c (create_panels): Removed the run_desktop global
	variable.

	* glayout.c (create_container): Set the wmclass of the panel to
	include its unique ID.

	* gsession.[ch]: New file with the functions that deal with
	session management.

	* glayout.c (gnome_exit): Use session_set_restart().

	* gcorba.c (corba_init): Now returns an int with an error value.
	(corba_init_server): Initialize the server properly.
	Fixed all the object implementation code.
	(corba_create_window): New function used to create a window with
	the CORBA server.

	* gmain.c (gnome_check_super_user): Now the check for running as
	root is done here.  There should be no GUI code in src/.

1999-03-30  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* dlg.c (dlg_run_done): Do not call the callback of a NULL current
	widget.

	* setup.h: Added missing prototype for setup_init().

	* filegui.c (check_progress_buttons): Added a missing return
	value.

	* dlg.c (remove_widget): Added a missing return value.

	* main.c: Removed the global directory_list variable.
	Removed the main_corba_register_server() function.

	* main.h: Removed the global run_desktop variable.

	* panel.h: Now the panel structure has a unique numerical ID used
	for session management.

	* screen.c (panel_new): Maintain a unique ID for each panel.

	* main.c (maybe_display_linksdir): Handle display of the desktop
	init dir here.
	(main): Call gnome_check_super_user().
	(init_corba_with_args): Call corba_init_server().

	* main.c (init_corba_with_args): Do CORBA initialization here.  Also
	removed the global force_activation option.

1999-03-30  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* vfs.c (vfs_add_current_stamps): Only do stamping of the panels
	if they exist.

	* mcserv.c: #include <sys/wait.h>
	(get_client): Put `#ifdef __EMX__' around an otherwise-unused
	variable.

	* utilvfs.c (vfs_split_url): Fix NULL <-> 0 confusion when
	comparing characters.

	* ftpfs.c (retrieve_dir): Removed unused variable dot_dot_found.

	* extfs.c (extfs_init): Assign `key' to c, not `&key'.
1999-03-30 06:09:56 +00:00
Norbert Warmuth
bfa7724f00 Sun Mar 28 23:39:48 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* configure.in: Deleted duplicate VFS checks. GNOME_VFS_CHECKS
now contains all VFS checks.

* src/util.c (is_printable): Character 155 is non printable even when
full eight bit output is enabled (on the linux console 155 is
interpreted as "ESC [").

* vfs/vfs.h (vfs_translate_url): Fixed the macro which is used when
compiling without vfs.

* macros/gnome-vfs.m4: Add --with-vfs option. GNOME_VFS_LIBS still needs
to be fixed but that's not a problem because there's no libvfs, yet.
1999-03-29 05:06:50 +00:00
Miguel de Icaza
ff1a8f6a3b Ok, I am finally back.
Basically, I had to setup an ssh tunnel to be able to use CVS.  After
5 hours trying to get the damn thing to cvs update it was clear to me
why the .es people do not like to use the gnome cvs.

We really need a tunnel for .es hackers (as they have excellent connectivity
to the rest of Europe, they are just routed trough a 2 byte link to the US).

1999-03-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* treestore.c (process_special_dirs): Free memory here.

	Fix test: Skip only "." and "..", before it could skip "?.".

1999-03-22  David Martin <dmartina@mailexcite.com>

	* wtools.c (real_input_dialog_help): Do a strncmp with the lenght
	of th same translated "Password:" string.

1999-03-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* glayout.c (create_new_menu_from): closedir after running.

1999-03-20  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gnome-file-property-dialog.c (apply_metadata_change): Fix the
	test for setting the icon.  It was being done incorrectly and thus
	it was never possible to change the icon.

	* glayout.c (gnome_launch_mime_editor): Add mime-type-edit command
	to the menu: this launches mime-type-capplet

1999-03-22  David Martin <dmartina@mailexcite.com>

	* ftpfs.c: Internationalize the messages that are displayed as
	hints.

1999-03-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* extfs.c (extfs_init): Fix the code here:  If the key is empty or
	only contains a new line, C would be pointing into an invalid location.
1999-03-24 12:16:52 +00:00
Timur Bakeyev
1ea69877f7 s/$(libdir)\/extfs/$(extfsdir)/ 1999-03-21 23:52:33 +00:00
Timur Bakeyev
4504f6153c Mon Mar 22 02:00:16 1999 Valery Kornienkov <vlk@st.simbirsk.su>
* extfs/uha.in: Add support for ha archives.
1999-03-21 22:56:20 +00:00
Miguel de Icaza
8cb5ff2882 New mc.spec from Paul E. Johnson 1999-03-12 22:11:07 +00:00
Miguel de Icaza
67f787b786 1999-03-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
* vfs.h: Make it compile in AIX.  Boy do those guys polute the
	name space.
1999-03-11 19:01:53 +00:00
Andras Timar
b6fa9e2a63 Shooby Ban <bansz@szif.hu>
* extfs.ini: Julian7 found a bug at this file,
rpms vfs needs :
1999-03-09 23:54:01 +00:00
Miguel de Icaza
112a82e7ee 1999-03-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
* vfs.c (parse_ls_lga): kill the messages on each error.
1999-03-09 07:35:12 +00:00
Paul Sheer
9e4cd04ea1 mcserv and mcfs exchange st_dev instead of st_rdev. This makes stats on
device files useless. Fixing this does not break anything, but adds the
ability to copy device files properly. Ideally, both st_dev and st_rdev
should be returned for those programs that use the vfs to properly
recreate hardlinks. Used idea was it to only return one if these???

mcserv also does not return the amount written in a write - fixed

mc should now interface correctly with secure-mcserv in basic non-secure
mode
1999-02-16 10:16:59 +00:00
Miguel de Icaza
2bdb98051d Fixes for LHA fs 1999-02-12 22:06:27 +00:00
Norbert Warmuth
2441189d12 Sat Feb 6 23:44:28 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* vfs/tar.c (read_header): Treat hardlinks correctly.
1999-02-06 23:52:11 +00:00
Norbert Warmuth
04ebcebc1b Wed Feb 3 22:27:04 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* src/util.c (strip_password): Extented to find the url in the first
parameter. The second parameter tells whether it should search the
url (indicated by known prefixes) in the first parameter or whether
the first parameter is a url without a prefix ("ftp://", "/#ftp:",
"/#mc:").

* src/main.c (directory_history_add): Strip the password (if any) from
the freshly added value.

* src/widget.c (push_history): ditto. There's a ugly special casing
necessary for the network and ftp link dialogs (urls are entered
with out prefix).

* src/widget.c (history_put): Restrict read and write access to the
history file to the owner (Just in case I forgot to strip passwords
somewhere).


Mon Feb  1 19:32:12 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/ftpfs.c (insert_dots): renamed from insert_dot. We have to
insert ".." as well or directories from ftp servers which don't
list "." and ".." are displayed with an additional "/".
1999-02-03 23:19:40 +00:00
Timur Bakeyev
3bc60d00b2 tcputil.c: One more bug with '\0' -> NULL. 1999-02-01 01:02:44 +00:00
Timur Bakeyev
4dce2ac60a setuid()/setreuid() in mcserv.c
Mon Feb  1 01:45:08 1999  Timur I. Bakeyev <mc@bat.ru>

	* mcserv.c: If setuid() is avaliable, use it, even, streuid() also
	present. (BTW, bsdi uses it's own auth system..)
1999-02-01 00:21:43 +00:00
Norbert Warmuth
d56f703957 Sun Jan 31 21:09:38 1999 Alexander Savelyev <fano@vcom.kiev.ua>
* po/Makefile.in.in: use DESTDIR (makes it possible to move
installation path with "make DESTDIR="...")

Sun Jan 31 20:51:17 1999  Alexander Savelyev <fano@vcom.kiev.ua>

* vfs/mcserv.c (do_auth): mcserv never auth properly on bsdi.
(mc/vfs/mcserv.c do_auth() on bsdi we must use setuid() not
setreuid()).

* vfs/tcputil.c: use correct signal handler (void func(int)) on BSDI


Sun Jan 31 20:41:00 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* mcserv.c (do_link): Removed duplicate invokation of link. Thanks
to Grzegorz Makarewicz <mak@mikroplan.com.pl> for spotting this.
1999-01-31 22:17:14 +00:00
Norbert Warmuth
f75a6470ca Rerun configure when you have problems with missing slang.h.
Sun Jan 31 20:04:13 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/vfs.c (vfs_strip_suffix_from_filename): Whoever replaces every
occurance of 0 with NULL should stop this stupidy. And replacing '\0'
with NULL is plain wrong!!. Reverted this replacement.

* vfs/ftpfs.c (load_no_proxy_list): ditto


Fri Jan 29 22:55:56 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* slang/slang.h: renamed to slang-mc.h

* slang/Makefile.in: delete slang.h on "make clean"

* configure.in: link slang/slang-mc.h to slang/slang.h when the
included slang is used. Problem was that MC's slang.h was used
when we compiled with an already installed SLang and the systems
header file were included with <slang/slang.h>.
Unfortunatly I can't use AC_LINK_FILES to make the links because
if we needn't make any links AC_LINK_FILES makes a link from
srcdir to top_builddir (builddir != srcdir).

Temporary add $LGPM to $LIBS when checking for the resizeterm
and keyok functions (ncurses might be linked against GPM).

Substitude PACKAGE (intl/Makefile makes use of it)


Sun Jan 31 19:42:47 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* gnome/Makefile.in (install_mx): make it work with srcdir != builddir
(gmc.gnorba is located in $srcdir)

* src/hotlist.c (add_new_entry_input, add_new_group_input): Make the
quick_widget arrays static and various changes needed because they
are now static. add_widgets_i18n recalculates button positions
which get lost when the quick_widget arrays are non static.

* src/screen.c (to_buffer): nul terminate string when using strncpy

* src/setup.c: Save and restore new option ftpfs_first_cd_then_ls.


Sun Jan 31 19:57:24 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/ftpfs.c (insert_dot): New function. Insert a "." into the linked
list. Stat'ing the root directory of a ftpfs fails if the dot is
missing.

(retrieve_dir): insert "." into the linked list if the ftp server
haven't send it.

Sun Jan 31 19:50:24 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* The following changes make ftpfs work with a remote AmiTCP
server are the result of somehow longish EMail debugging session. I
don't know any public server of this kind but I was told the
combination Unix/Amiga boxes are often used in intranets.

* vfs/ftpfs.c (translate_path): New function. Translate a Unix path,
i.e. MC's internal path representation (e.g. /somedir/somefile) to
a path valid for the remote server. Every path transfered to the
remote server has to be mangled by this function right prior to
sending it. Currently only Amiga ftp servers are handled in a
special manner.

* vfs/ftpfs.c (various places): use translate_path

* vfs/ftpfs.c (login_server): Assume we have to mangle pathnames if
the greatings string from the server contains the word Amiga. If
this assumption is wrong I have to find another way to turn on
path translation.

* vfs/ftpfs.c (ftpfs_get_current_directory): Prepend a leading slash
if it is missing. MC needs it as seperator between hostname and
path in its internal url representation.
1999-01-31 20:28:13 +00:00
Pavel Machek
f2197f6bc2 This _could_ repair ftp parsing against nowell 4 servers. Test it if you can. 1999-01-28 17:28:11 +00:00
Timur Bakeyev
e57da1f7b3 Glibing....
Wed Jan 27 03:09:48 1999  Timur I. Bakeyev <mc@bat.ru>

	* All around the source: Changed copy_strings() to g_strconcat(). Modi-
	fy last parameter in concat_dir_and_file() to "" - to prevent stack from
	disbalancing.
1999-01-27 00:49:11 +00:00
Miguel de Icaza
9c81ea49fd 1999-01-25 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdnd.c (get_action): Sensitize the menu items based on the
	allowed actions in the drag context.
	(actions): Add some underlined accelerators for the action menu.

	* gdesktop.c (icon_drag_motion): Use S_ISDIR() in addition to
	fe->f.link_to_dir.

	* gscreen.c (panel_file_list_scrolled): Removed this function, as
	it was not used for anything useful.

	* gdnd.c (gdnd_drop_on_directory): Duh.  Use context->action, not
	context->suggested_action.

1999-01-25  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* Makefile.am (libvfs_la_SOURCES): Added utilvfs.h.
	* Make-mc.in (VFSHDRS): Likewise.
1999-01-25 16:50:38 +00:00
Miguel de Icaza
07a0ea5305 1999-01-21 Federico Mena Quintero <federico@nuclecu.unam.mx>
* utilvfs.c (append_path_sep): Fixed, it was broken for paths
	which already have a / at the end.
1999-01-22 02:23:43 +00:00
Timur Bakeyev
6f7a1992e7 Fri Jan 22 01:41:25 1999 Timur I. Bakeyev <mc@bat.ru>
* undelfs.c: Found one more unconverted realloc() call.
1999-01-21 22:41:36 +00:00
Miguel de Icaza
a4cd04032f Sync changelog 1999-01-21 03:55:42 +00:00
Timur Bakeyev
bf81009392 Actually commit all my changers. Fear :> 1999-01-20 22:01:11 +00:00
Timur Bakeyev
8cdf4d3f6f add new header file - utilvfs.h. this intended to be a stock include, which
provides proper order for common include files.
1999-01-19 02:23:30 +00:00
Timur Bakeyev
b37abf7e28 *** empty log message *** 1999-01-18 20:20:30 +00:00
Miguel de Icaza
44f75f14ec 1999-01-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
* vfs.h: The correct thing to use is PATH_SEP and PATH_SEP_STR
1999-01-18 16:55:58 +00:00
Paul Sheer
7c8bdadb4b updates 1999-01-17 13:48:36 +00:00
Miguel de Icaza
fbb3d4d90f VFS does not assert on small buffers in getwd, it now truncates.
Drops on the desktop are now always links.  If you want copy or move,
then use middle button to get the ask dialog box.

Miguel.
1999-01-12 23:49:37 +00:00
Miguel de Icaza
85f17a4dc6 Lots of changes:
- SFS-based file systems now work on GNOME edition, I was
	  not waiting for child process to finish decompressing.

	- VFS code cleanup.  I am going to eventually get rid of all
	  the macro-mania that has creeped into the vfs layer.

Miguel
1999-01-11 00:48:23 +00:00
Norbert Warmuth
749d16ba30 Sat Jan 9 19:15:00 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
* vfs/vfs.c (vfs_timeout_handler): Guard from recursive invocation.

Sat Jan  9 19:13:28 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/sfs.c (sfs_free): Fixed wrong linked list handling (head was
lost after the first iteration).

(sfs_getid): dito, return value was wrong.
1999-01-09 23:08:41 +00:00
Timur Bakeyev
23155b3f8b Rewrite parse_ls_lga() function. It became more stright and robust. 1999-01-09 19:55:31 +00:00
Miguel de Icaza
ca39a2e6ee Windows NT portability fixes from Ilya.
Added create directory option to gnome menu.
Removed debugging messages

Miguel.
1999-01-08 20:38:27 +00:00
Norbert Warmuth
4b2f456f69 Fri Jan 8 20:03:36 1999 Andrej Borsenkow <borsenkow.msk@sni.de>
* vfs.c (vfs_parse_filedate): I forgot to set got_year in one place
(where YY-MM-DD is parsed).
1999-01-08 18:59:51 +00:00
Norbert Warmuth
d6a8e538fc Thu Jan 7 06:24:25 1999 Andrej Borsenkow <borsenkow.msk@sni.de>
* vfs/vfs.c (vfs_parse_filedate): If the date is less than 6 months
in the past, it is shown without year. In this case MC assumed
the current year which is wrong from Jan to Jun.
1999-01-07 05:54:16 +00:00
Timur Bakeyev
53d59fab98 Just a fix of Y2K typo, pointed by Alex. 1999-01-07 00:55:20 +00:00
Norbert Warmuth
e4c8a9d060 Thu Dec 31 08:47:15 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* sfs.c (sfs_nothingisopen): Assume for now it's always save to free
this filesystem and delete temporary files. This needs further
investigation.

* tar.c: deleted unused empty struct tar_super.

Thu Dec 31 08:40:44 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* direntry.c: Split fd_usage into fd_usage and ino_usage. fd_usage
was used for external and internal reference count. This was wrong
because we can free resources taken up by the vfs as soon as the
external reference count (now fd_usage) is zero. The internal
reference count (ino_usage) mustn't matter because the vfs has to
clean up itself in the correct order.
1998-12-31 15:54:49 +00:00
Norbert Warmuth
d2b1a29c91 Fri Dec 25 21:48:51 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* vfs/direntry.c (vfs_s_new_inode): Moved initialization of st_ino
and st_dev from vfs_s_default_stat.

(vfs_s_default_stat): initialize st_ino and st_dev to zero

* vfs/tar.c (tar_open_archive): Make a new MEDATA->rdev for every
new archive.
1998-12-28 10:27:07 +00:00
Norbert Warmuth
7f3a7ac4d7 Mon Dec 21 22:26:34 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* mountlist.c: Define xBSD on FreeBSD.

* doc/mc.sgml, mc.1.in: Deleted obsolete information about
tar_gz_memlimit. Partially rewrote the section about the
Virtual FS.. configuration dialog.

* main.c (parse_an_arg): New function, popt callback. Option
parsing in gmc was broken. The gnome*_init_with_popt_table free
the option tables and gmc tried to use the option tables later.

* main.c (handle_args): In the Gnome edition don't parse the
options a second time.

* boxes.c (configure_vfs), setup.c: Deleted obsolete options.
tar.gz files are now always unzipped to a temporary file on disk.

* gnome/layout: Deleted obsolete widgets from the Virtual FS configuration
dialog.

* vfs/tar.c: Deleted global variable tar_gzipped_memlimit.

Mon Dec 21 14:28:55 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* filenot.c (my_mkdir_rec): Someone broke this function completely by deleting
a line. Funny things happen if you use an already freed pointer.
Improved error handling: try to make directories recursivly until
mkdir succeeds or fails with errno != ENOENT. Now you will get the
correct error message when you don't have permission to create a
directory.

* mountlist.c: Deleted function prototypes for strdup and strstr,
they might conflict with definitions in the system header files.
1998-12-21 23:30:53 +00:00
Norbert Warmuth
549fecfff7 Wed Dec 16 06:47:47 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* screen.c (Xtry_to_select): Don't select a similar file when
"name" can't be found in the panel (when deleting files the
selection jumpped from the deleted "file" to a directory which
started with the same character as "file", annoying).
Strip known vfs suffixes from "name" before trying to select
(I think Timur made this suggestion a few months ago). Know the
vfs is mature enough to do this.

* vfs/vfs.c (vfs_strip_suffix_from_filename): New function which strips
known vfs suffixes from a filename and returns a malloced string
which has to be freed. Possible improvement: strip vfs suffix from
last path component.

* vfs/extfs/*: added "umask 077" to every script.
1998-12-16 06:16:13 +00:00
Pavel Machek
965880696c Security (inspired by Norbert Warmuth): make /tmp files 0600 and
create them with O_EXCL for sfs and extfs.
1998-12-15 15:57:39 +00:00
Pavel Machek
3e1a72d64d Some fixes in src/ part (want_stale_data is now done right) and more
daring code in vfs/ (errors are now reported instead of silently
ignored)
1998-12-09 20:22:53 +00:00
Pavel Machek
b3876e6f41 Rpm should now handle names with spaces well 1998-12-09 11:29:54 +00:00
Pavel Machek
fc5a9c57c2 Small fixes, now fish should actually work. Dropped ELAST hack. 1998-12-07 10:15:17 +00:00
Raja R Harinath
8366acf5cd * Makefile.am (EXTRA_DIST): Distribute files that the
BUILT_SOURCES depend on.
(mad.c, mad.h): Don't use GNU make specific features in rule.
(libvfs_la_SOURCES): Update from Make-mc.in.
1998-12-04 01:51:26 +00:00
Miguel de Icaza
301e7fbfc3 Many changes:
- Beginning of the CORBA support for the file manager.
	- Tk and XView code dropped.

Miguel
1998-12-02 23:44:06 +00:00
Sebastian Wilhelmi
8b8a943b6e 1998-12-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* fish.c (FISH_OP): changed snprintf to g_snprintf, as glib is
        used anyway.

        * xdirentry.h (LINK_NO_FOLLOW):
        * tar.c (read_header):
        * direntry.c (vfs_s_resolve_symlink):
        (vfs_s_inode_from_path):
        (vfs_s_open): renamed NO_FOLLOW and FOLLOW to LINK_NO_FOLLOW and
        LINK_FOLLOW resp. to avoid problems on solaris, where FOLLOW and
        NO_FOLLOW are defined in an enum.

        * vfs.h (ELAST): define it to 300, if not already defined, thats a
        bad hack, but what can we do....
1998-12-02 13:17:24 +00:00
Sung-Hyun Nam
af1a952ea0 * direntry.c (vfs_s_new_super): Added the missing return value. 1998-12-02 05:11:48 +00:00
Timur Bakeyev
9522710547 Fix to not portable error codes in vfs.h. Instead of using existing values,
create new ones - by means ELAST+offset. Maybe, the better way for libvfs..
1998-11-28 23:56:59 +00:00
Norbert Warmuth
414c7569f2 Tue 24 Nov 12:43:20 1998 Peter Kleiweg <kleiweg@let.rug.nl>
* vfs/vfs.c (vfs_parse_ls_lga): ignore trailing + in permission string
which indicate a file with extented attributes (ACL)


Wed Nov 25 22:16:19 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* src/cmd.c (dirsizes_cmd): Quote characters with a special meaning
when passing it to du.
1998-11-25 23:34:00 +00:00
Norbert Warmuth
42e0c7ef84 We got some complaints about much slower ftpfs in 4.1.36 (ok, maybe a bit
exaggerated because I only saw two complaints). I added the old method
to resolve symlinks and made it the default. When someone complains about
4.5.2 we can change defaults at will ;-).


Mon Nov 23 21:19:43 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/ftpfs.c (resolve_symlink_with_ls_options): that's resolve_symlinks
we used up to release 4.1.35. It uses LIST -lLa to get symlink stats.

(resolve_symlink_without_ls_options): that's resolve_symlinks
we used in release 4.1.36 and 4.5.[01]. It gets symlink stats from the
directory cache fetching directories if necessary. We got some
complaints about slower ftpfs in the above releases. Now this methode
is no longer the default methode to resolve symbolic links. It is still
needed for ftp servers which don't understand the LIST -lLa command.

(resolve_symlink): Dispatch between the two methods to
resolve symlinks.
1998-11-23 21:13:08 +00:00
Pavel Machek
4029fef2f3 Small bugfixes, killing of debuging hacks that escaped me. 1998-11-22 16:17:42 +00:00
Pavel Machek
4706638b22 Big merge: fish now uses proper caching, small fixes almost
everywhere. I hope I did not break it too much.
1998-11-21 19:36:01 +00:00
Pavel Machek
e59271dfb8 Better error handling in parse_ls_lga 1998-11-16 15:52:27 +00:00
Pavel Roskin
5305f827ed Fix to display files belonging to users with excessively long usernames
in RPM packages
1998-11-12 11:32:59 +00:00
Miguel de Icaza
f15ee9faf9 Increased version number to 4.5.2
Documentation update.

1998-10-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* fish.c (command): Replace vnsprintf with g_strdup_vprintf.  This
	is both safe and more correct, as there is no limit on the
	pathname.

	* ftpfs.c (command): Same as above.

	* util-alone.c (print_vfs_message): Same as above.

1998-10-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* layout.c (print_vfs_message): Use g_snprintf instead of
	vnsprintf.
1998-10-30 17:45:43 +00:00
Pavel Machek
86300fb4a4 Make ftpfs work even with NT. 1998-10-28 16:39:53 +00:00
Pavel Machek
d46834bc3f Fix ftp with nowell server 1998-10-28 16:23:03 +00:00
Pavel Machek
226c2fcc4d Bugfixes 1998-10-28 16:07:55 +00:00
Norbert Warmuth
5bcfa822f9 Mon Oct 26 00:31:53 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* configure.in, Make.common.in: Split CPPFLAGS into CPPFLAGS and
MCCPPFLAGS. The last one contains references to variables which are
not available in every Makefile.in (namely intl/Makefile.in). Without
the split `-I ' was passed to the compiler (the compiler on DU 4.0
interprets -I as "don't search include files in /usr/include").

Mon Oct 26 00:38:30 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/Make-mc.in: added xdirentry.h to VFSHDRS
1998-10-26 00:38:32 +00:00
Pavel Machek
652cd17475 Do not segfault when you can not open archive. 1998-10-23 11:19:52 +00:00
Pavel Machek
f51a940aec Removed debugging messages and fixed Makefile.in. 1998-10-23 10:38:22 +00:00
Pavel Machek
37e364fe67 BIG changes: tar now uses brand-new direntry.c. Hope it does not hurt
too much.
1998-10-23 08:26:25 +00:00
Norbert Warmuth
96f4d6c760 Thu Oct 22 20:41:50 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
*  configure.in (subshell): Don't define inline to be empty
when compiling with non-gcc compiler. AC_C_INLINE (invoked in
AM_GETTEXT_GNU) already defines inline if necessary.

Thu Oct 22 20:41:16 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* panelize.c (do_external_panelize): Not zeroing some fields
in cpanel led sometimes to segfaults.

Thu Oct 22 20:30:28 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/ftpfs.c (resolve_symlink, retrieve_dir): Don't timeout and
free dcache while resolving symlinks (i.e. don't free some
pointers which are in use by resolve_symlink).
1998-10-22 20:17:49 +00:00
Pavel Machek
2f1692a46e Trivial bugfix in mcfs. 1998-10-19 09:55:24 +00:00
Pavel Machek
feef616e63 Small bugs... 1998-10-15 15:18:12 +00:00
Pavel Machek
269500c1f5 ChangeLog entry for security holes marking 1998-10-14 19:47:49 +00:00
Miguel de Icaza
d6fcd9c2b7 VFS source code cleanup.
MC now depends on glib (currently only the assertions are used).
VFS structure declaration fixes.
Uses the new icon list (it is dog slow, need to fix this tonight at home).
1998-10-14 02:56:18 +00:00
Pavel Machek
f699107608 Minor fix 1998-10-13 16:45:00 +00:00
Pavel Machek
29e3c314bf Namespace conflict cleaned up. 1998-10-13 10:45:02 +00:00
Pavel Machek
176dc1f70d static's added, do_reget hack removed 1998-10-12 22:07:53 +00:00
Pavel Machek
937fc9a607 Missing entry from prev. commit 1998-10-06 17:09:34 +00:00
Pavel Machek
f6b74c679c Disable BROKEN_PATHS by default. 1998-10-06 13:37:12 +00:00
Norbert Warmuth
b920b0b1c4 Sat Oct 3 14:28:57 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* vfs/ftpfs.c (resolve_symlink): fixed cut'n paste error in my last commit,
i.e. make it compile)
1998-10-03 12:30:03 +00:00
Norbert Warmuth
b0280fd397 Sat Oct 3 00:54:23 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* gtkedit/Makefile.in (EDITOBJS): removed one wrong \\ (line
continuation)

Sat Oct  3 01:03:37 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/ftpfs.c (resolve_symlink): minor speed enhancement
1998-10-02 23:01:16 +00:00
Pavel Roskin
ef0f6d00fc vfs_force_expire() was incorrectly defined in vfs.h 1998-10-01 17:42:05 +00:00
Pavel Machek
136006707c Fixed cursor positioning so that it does not call any vfs code, few
statics added to vfs layer, no longer use '0' in place of NULL.
1998-09-29 16:01:16 +00:00
Norbert Warmuth
c10ecb8b0f Now gmc, tkmc and mc build one my glibc2 system (builddir != srcdir).
Mon Sep 28 21:55:13 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* src/find.c: Changed hotkey of the continue-button (both Chdir and
Continue used `C').

* po/*.po: remade because one msgstr in find.c changed

* src/Makefile.in: search config.status in builddir and not in rootdir,
i.e. make it compile for builddir != srcdir

* vfs/vfs.h (struct vfs): renamed errno to verrno because glibc2
defines errno as macro (#define errno (*__errno_location ()))

* vfs/Makefile.in: search config.status in builddir and not in srcdir/..,
i.e. make it compile for builddir != srcdir
1998-09-28 20:41:28 +00:00
Pavel Machek
a92e6f3ea8 Changed license to LGPL, added passing of vfs * (acting as self), so
we can do OOP-like trics.
1998-09-27 19:27:58 +00:00