Commit Graph

493 Commits

Author SHA1 Message Date
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 62559ce828 * autogen.sh: Create vfs/samba/include/stamp-h.in.
* vfs/samba/include/stamp-h.in: Remove.
2001-02-08 00:01:21 +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
Pavel Roskin 3d37d84984 * configure.in: Check for ext2 libraries only if VFS is enabled. 2001-01-11 20:54:50 +00:00
Miguel de Icaza 994667ad86 Fixety fix 2001-01-06 19:24:12 +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 871ce41fe0 * smb.h (param_struct): enum_list constified
* loadparam.c: enum_protocol, enum_security, enum_printing, enum_announce_as,
  enum_case, enum_lm_announce, enum_map_to_guest and enum_ssl_version
  constified
2000-12-14 01:28:44 +00:00
Andrew V. Samoilov 8a4ae931d4 * extfs/urar.in (LC_ALL): set to C to prevent localization,
(mcrarfs_list): directories placed first to prevent duplication
2000-12-14 01:21:52 +00:00
Andrew V. Samoilov 2f76be3354 :) 2000-12-14 01:21:04 +00:00
Andrew V. Samoilov 94bcfc289d * ftpfs.c (vfs_ftpfs_ops): typo fixed 2000-12-04 19:14:52 +00:00
Marco Ciampa 7ec9da5952 just some minor changes in docs... 2000-11-27 01:41:56 +00:00
Pavel Machek 55e56a1426 Fixes from Roland: we may not g_free() strdup-ed text. 2000-10-31 15:43:49 +00:00
Marco Ciampa 68443a745c added bpp file support 2000-10-27 02:30:36 +00:00
Marco Ciampa 5d94e04e8b added bpp file 2000-10-27 02:29:23 +00:00
Marco Ciampa e58e4acb2e New distro package - first version 2000-10-27 02:28:42 +00:00
Marco Ciampa 74d32915a0 :aaa 2000-10-26 14:00:24 +00:00
Marco Ciampa 160248c7af some corrections ... 2000-10-26 13:46:25 +00:00
Andrew V. Samoilov 49afc747d1 nmb_header_opcode_names constified, lookup_opcode_names rewritten to avoid warnings 2000-10-22 15:37:33 +00:00
Andrew V. Samoilov c5ec3ea3d9 :) 2000-10-22 15:06:21 +00:00
Andrew V. Samoilov 75928247d3 2000-10-22 Andrew V. Samoilov <sav@bcs.zp.ua>
* samba/libsmb/nterr.c (nt_errs): constified

	* samba/libsmb/smberr.c (dos_msgs, server_msgs, hard_msgs,
	err_classes): ditto

	(smb_errstr): err constified to avoid warnings
2000-10-22 15:04:41 +00:00
Marco Ciampa cfa9226b2b First revision... 2000-10-19 02:08:30 +00:00
Andrew V. Samoilov a1e4132357 * ftpfs.c (open_data_connection): don't generate //filename, some
ftp servers can't store it;

	(command): g_strdup_vprintf() and g_strconcat() replaced
	by g_strdup_vprintf(), g_realloc() and strcpy()
	to reduce memory usage when trailing "\r\n" added;

	(ftpfs_set_debug, ftp_data): ftp_data.logfile assigned with logfile
	value to log servers replies
2000-10-16 18:37:54 +00:00
Andrew V. Samoilov 6f10b0fdb3 :) 2000-10-16 18:35:21 +00:00
Andrew V. Samoilov 1f6dc4fe5a 2000-10-09 Andrew V. Samoilov <sav@bcs.zp.ua>
* sfs.c (redirect): temporary file unlinked on error;

	(sfs_init): warnings are localized
2000-10-09 22:45:50 +00:00
Andrew V. Samoilov ed0753665b :) 2000-10-09 22:44:51 +00:00
Pavel Roskin 2558168fb9 * gnome/Makefile.in, src/Makefile.in, vfs/Make-mc.in: Required
flags moved out of CFLAGS as recommended by GNU coding
        standards.
        * configure.in: Don't add GLIB_CFLAGS to CFLAGS.
        * Make.common.in: XINC eliminated. GLIB_CFLAGS is now added to
        XCPPFLAGS.
        * INSTALL (Random notes on porting to other architectures):
        Completely rewritten. Recommended using CFLAGS instead of XINC.
2000-10-06 06:49:45 +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 c69627ffdd * configure: Always include Make.common as file, otherwise
"make distclean" breaks.
        * edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
        slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: $(RMF)
        replaced with "rm -f" - the stangard says that "rm" is portable.
        Ditto $(MV). Adjusted *clean targets to match those in
        Automake. Removed "cross" target.
2000-09-23 05:14:31 +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 Roskin 769b082e1b * Make.common.in: Added installcheck to placate "make distcheck"
* configure.in, Make.common.in, doc/Makefile.in,
        edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
        slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: Replacing
        variable MKINSTALLDIRS and builddir with Automake-compatible
        mkinstalldirs and top_builddir.
        * doc-gnome/C/Makefile.am: Only maintainers regenerate html
        files. Added uninstall-local target.
2000-09-18 04:57:29 +00:00
Pavel Roskin 7b7cb9878d * doc/Makefile.in, edit/Makefile.in, gnome/Makefile.in,
gtkedit/Makefile.in, slang/Makefile.in, src/Makefile.in,
vfs/Make-mc.in: preserve timestamp on "make distdir", otherwise
mc.pot becomes out of date in the tarball.
2000-09-15 06:05:22 +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 91e7526108 * configure.in, Make.common.in, doc/Makefile.in,
edit/Makefile.in, gnome/Makefile.in, gtkedit/Makefile.in,
slang/Makefile.in, src/Makefile.in, vfs/Make-mc.in: rootdir
changed to top_srcdir for Automake compatability
2000-09-14 15:12:00 +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 89e4039a91 Added Makefile and Makefile.in 2000-09-01 22:00:10 +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 95b52b597c * Make.common.in: removed hack for "make distcopy"
* doc/Makefile.in, edit/Makefile.in, gnome/Makefile.in,
gtkedit/Makefile.in, slang/Makefile.in, src/Makefile.in,
vfs/Make-mc.in: added "distdir" target. Now "make dist" works
for external builds.
* edit/Makefile.in, slang/Makefile.in: added "Makefile" target
2000-08-28 18:51:22 +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 e828211662 Updated address of Free Software Foundation 2000-08-22 22:50:00 +00:00
Pavel Roskin 5b11ed2900 Adjusted lists of distributed files
Fixed rules for rebuilding makefiles
2000-08-18 05:18:47 +00:00
Pavel Roskin 9ae68cd8bc * Makefile.in, */Makefile.in: Fail if $(RMF) fails - it may
indicate serious problems. Fixes for uninstall.
* doc/Makefile.in: Rebuild if it is out of date.
2000-08-15 16:56:33 +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 Roskin dd81cee533 Added:
Makefile
config.log
config.status
2000-08-08 14:15:37 +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
Kjartan Maraas 626ff3f252 Quiet 2000-05-03 22:58:20 +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
Chris Toshok 749789cdf8 include sys/types.h 2000-03-20 01:57:58 +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 fff243a9db 2000-02-18 Andrew V. Samoilov <sav@bcs.zp.ua>
* vfs.c (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;
       * vfs.[ch] (vfs_canon, mc_open, vfs_file_is_local,
         mc_(un)?getlocalcopy): added const qualifier
2000-02-24 12:00:30 +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
Pavel Machek 0de889ce6f Applied changes by "Andrew V. Samoilov" <sav@bcs.zp.ua>
Fixed files with names like "1900" (or broken them other way), minor
coding style fixes.
2000-01-05 14:13:57 +00:00
Miguel de Icaza 9c5426060c Include new files in distribution 2000-01-04 01:42:17 +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
Havoc Pennington 57afe70496 well, I guess it has to be auto-genned in mc
this is broken...
1999-11-28 20:55:01 +00:00
Havoc Pennington 5d6966ed55 keep autogen.sh out of here 1999-11-28 20:53:53 +00:00
Pavel Machek 976775e802 Applied change by rebel@atrey.karlin.mff.cuni.cz: fixed number of
right parenthesis.
1999-11-22 15:49:15 +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 098040d52b Typo fix 1999-10-19 18:34:48 +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 ba4dd794f5 Make it compile (sorry, this shouldn't happen at all). 1999-09-15 04:24:22 +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
Timur Bakeyev 1fac7f8e35 Add 2 .cvsignore's to vfs layef structure... 1999-09-04 03:04:31 +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
Elliot Lee 0bd6d7504a Have 'make dist' work with builddir != srcdir. 1999-08-19 20:17:40 +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
Jonathan Blandford 37efb6b935 updated bugs 1999-08-12 22:52:32 +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
Miguel de Icaza 6c564a5f4e Bug fixes from Wayne for smbfs.c 1999-07-13 02:36:32 +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 cefa0871a8 mc 4.5.34 1999-07-05 08:43:35 +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 ea6b8036f5 1999-07-01 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gcorba.c (corba_create_window): Ensure that the directory we
	pass to the CORBA server is not NULL.

	* gscreen.c: Removed a bunch of unused functions for filters.
1999-07-01 23:15:08 +00:00
Miguel de Icaza 974ba91591 Start of work to distribute samba file 1999-06-25 23:11:47 +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