* samba/lib/util.c (tmpdir): Use MC_TMPDIR environment variable.
[midnight-commander.git] / vfs / ChangeLog
blob935fe6597c7c3d21994931446a1a010cc5c1aa64
1 2004-08-21  Pavel S. Shirshov  <pavelsh@mail.ru>
3         * samba/lib/util.c (tmpdir): Use MC_TMPDIR environment variable.
4         (automount_lookup): More secure code.
6 2004-08-19  Roland Illig  <roland.illig@gmx.de>
8         * extfs/deb.in (mcdebfs_list): Separated the use of quoted and
9         unquoted variables. (mcdebfs_copyout): likewise.
10         (mcdebfs_run): likewise.
11         
12         From Leonard den Ottolander <leonard@den.ottolander.nl>
14 2004-08-19  Roland Illig  <roland.illig@gmx.de>
16         * extfs/deba.in (list): Separated the use of quoted and unquoted
17         variables. (copyout): likewise. (run): likewise.
18         
19         From Leonard den Ottolander <leonard@den.ottolander.nl>
21 2004-08-19  Roland Illig  <roland.illig@gmx.de>
23         * extfs/deba.in (bt): deleted. (ft): deleted. (fm): deleted.
24         (ls): deleted. (list): correctly quoted shell command arguments.
25         (copyout): likewise. (run): likewise.
26         
27         From Leonard den Ottolander <leonard@den.ottolander.nl>
29 2004-08-19  Roland Illig  <roland.illig@gmx.de>
31         * smbfs.c: Modified smbfs_convert_path based on a patch sent by
32         Andrew V. Samoilov. Adjusted the calls to smbfs_convert_path.
33         Simplified string handling by using free_after from src/util.h.
34         Fixed one memory leak and one accidental modification.
36 2004-08-18  Pavel S. Shirshov  <pavelsh@mail.ru>
38         * extfs/rpm: Command line parameters fix for UPGRADE.
39         Fix mcrpmfs_copyout for INFO/OBSOLETES and INFO/LICENSE 
41         From Leonard den Ottolander <leonard@den.ottolander.nl>
43 2004-08-16  Pavel S. Shirshov  <pavelsh@mail.ru>
45         * extfs/deb.in: Security fix patch. Fix insecure temporary file and 
46         directory creations. (CAN-2004-0231).
48         * extfs/uar.in: Likewise.
49         * extfs/uha.in: Likewise.
50         * extfs/ulha.in: Likewise.
51         * extfs/urar.in: Likewise.
52         * extfs/uzip.in: Likewise.
53         * extfs/uzoo.in: Likewise.
55 2004-08-14  Andrew V. Samoilov  <sav@bcs.zp.ua>
57         * extfs.c (extfs_init): Fix possible off-by-one buffer underflow
58         for empty lines in extfs.ini.
59         * sfs.c (sfs_init): Fix possible buffer overflows for invalid sfs.ini.
61 2004-06-14  Pavel Roskin  <proski@gnu.org>
63         * tar.c: Eliminate struct hstat, use stack arguments instead.
65 2004-03-07  Andrew V. Samoilov  <sav@bcs.zp.ua>
67         * utilvfs.c (vfs_parse_ls_lga): Handle device without whitespace(s)
68         between major and minor.
70         * direntry.c (vfs_s_resolve_symlink): Check vfs_s_fullpath()
71         return value to avoid NULL dereference.
72         Reported by wwp <subscript@free.fr>.
74         * vfs.c (mc_def_ungetlocalcopy): Fix missed "%s".
75         * utilvfs.c (vfs_parse_ls_lga): Likewise.
77         * samba/lib/debug.c (Debug1): Don't try to open/create logfile
78         if debugf is empty string.
80 2004-01-27  Pavel Roskin  <proski@gnu.org>
82         * smbfs.c (smbfs_reconnect): Revert changes in a translated
83         message.
85 2004-01-23  Andrew V. Samoilov  <sav@bcs.zp.ua>
87         * extfs/rpm: Workaround for spaces and single quotes in the path
88         name.
90 2004-01-22  Pavel Roskin  <proski@gnu.org>
92         * mcserv.c: Use HAVE_CRYPT instead of USE_CRYPT.  Remove
93         references to HAVE_LIBCRYPT and HAVE_LIBCRYPT_I.  Reported by
94         Christian Laubscher <christian.laubscher@tiscalinet.ch>
96         * samba/configure.in: Rename to ...
97         * samba/configure.ac: ... this.  Adjust dependencies.
99 2003-12-05  Andrew V. Samoilov  <sav@bcs.zp.ua>
101         * fish.c (fish_open_archive_int): Save some stack and place -C
102         flag before host.
104 2003-11-28  Pavel Roskin  <proski@gnu.org>
106         * undelfs.c: Use ext2fs/ext2_fs.h instead of linux/ext2_fs.h
107         when possible.
109 2003-11-26  Pavel Roskin  <proski@gnu.org>
111         * gc.c (vfs_ncs_getid): Merge with vfs_getid().
113         * gc.c: Eliminate all code for timestamping parent filesystems.
114         It's broken and undocumented.  Adjust all dependencies.
116 2003-11-24  Andrew V. Samoilov  <sav@bcs.zp.ua>
118         * direntry.c (vfs_s_resolve_symlink): Eliminate
119         g_strdup_printf().
120         (vfs_s_fullpath): Likewise.
122 2003-11-21  Pavel Roskin  <proski@gnu.org>
124         * ftpfs.c (ftpfs_login_server): Explicit password should have
125         priority over the netrc password and the anonymous password.
126         Reported by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
128 2003-11-14  Andrew V. Samoilov  <sav@bcs.zp.ua>
130         * undelfs.c (undelfs_loaddel): Use g_try_malloc()/g_try_realloc()
131         since we want to recover and not abort the program if we don't
132         have enough memory.
133         (com_err): Fix implementation.
135 2003-11-14  Pavel Roskin  <proski@gnu.org>
137         * vfs.c (vfs_split): Deconstify.
138         * direntry.c (vfs_s_get_path_mangle): Likewise.  "mangle" is in
139         the name for a reason.  Use vfs_s_get_path() instead where the
140         path should be preserved.
141         * extfs.c (extfs_get_path_mangle): Likewise.
142         * sfs.c (sfs_vfmake): Protect against changes in vfs_split().
144 2003-11-13  Pavel Roskin  <proski@gnu.org>
146         * vfs.h: Constify chdir() and opendir() methods.  Adjust all
147         dependencies.
148         * vfs.c (mc_chdir): Constify, eliminate protection against
149         broken implementations of chdir() method.
150         (mc_opendir): Constify.
152         * direntry.c (vfs_s_stamp_me): Generalize and move ...
153         * gc.c (vfs_stamp_create): ... here.  Use whenever possible.
155 2003-11-12  Pavel Roskin  <proski@gnu.org>
157         * gc.c: Use NULL instead of -1 for empty vfsid.  Adjust all
158         dependencies.
159         * undelfs.c (undelfs_get_path): Don't shadow static ext2_fname.
160         (undelfs_getid): Likewise.  Use fs for non-empty vfsid.
162 2003-11-12  Andrew V. Samoilov  <sav@bcs.zp.ua>
164         * cpio.c (cpio_create_entry): Fix possible buffer underflow
165         and memory leak.
167 2003-11-08  Pavel Roskin  <proski@gnu.org>
169         * gc.c: Make getid(), nothingisopen() and free() methods
170         optional.  Eliminate trivial implementations.
171         (vfs_getid): New function - safe wrapper around getid().  Use
172         it everywhere.
173         (vfs_ncs_getid): Remove dead code, improve readability.
175 2003-11-07  Pavel Roskin  <proski@gnu.org>
177         * vfs.c: Split garbage collection code into ...
178         * gc.c: ... this.
179         * vfs.h: Corresponding code moved ...
180         * gc.h: ... here.
181         * Makefile.am: Adjustments for the above.
183 2003-11-05  Pavel Roskin  <proski@gnu.org>
185         * vfs.c: Eliminate MC_OP.  Reorder other MC_* macros for
186         readability.
188         * vfs.c: Move all parsing code, vfs_die() and vfs_get_password()
189         to utilvfs.c, vfs_print_stats() to direntry.c.
190         * utilvfs.c (vfs_parse_ls_lga): Disable caching current date,
191         it's done incorrectly.
193 2003-11-04  Pavel Roskin  <proski@gnu.org>
195         * vfs.c: Allocate handles dynamically.
196         (get_bucket): Rewrite as vfs_new_handle().
197         (vfs_op): Make a function.
198         (vfs_info): Likewise.
199         (vfs_free_bucket): Replace with vfs_free_handle().
200         (mc_readdir): Expand, eliminate MC_DIROP.
202 2003-10-30  Pavel Roskin  <proski@gnu.org>
204         * HACKING: New file - technical documentation for VFS.
205         * Makefile.am: Distribute it.
207         * vfs.c (vfs_rmstamp): Rescan the tree after the parents have
208         been removed.  Otherwise using old data causes data corruption
209         in some combinations (e.g. extfs inside tarfs).
211 2003-10-29  Pavel Roskin  <proski@gnu.org>
213         * extfs.c: Remove current_dir field, its role was purely
214         decorative.  Rename names starting with underscore.
216         * extfs.h: Merge ...
217         * extfs.c: ... here.
218         * Makefile.am: Remove extfs.h.
220         * ftpfs.c: Use HAVE_STRUCT_LINGER_L_LINGER instead of
221         HAVE_STRUCT_LINGER.
223         * Makefile.am: Compile utilvfs.c even without USE_VFS_NET.
224         * utilvfs.c (vfs_split_url): Only compile with USE_NETCODE
225         defined.
227 2003-10-28  Pavel Roskin  <proski@gnu.org>
229         * fish.c (fish_fh_open): Use vfs_mkstemps() for write buffers as
230         well, since the file can be reopened for reading later.
231         * ftpfs.c (ftpfs_fh_open): Likewise.
233         * utilvfs.c (vfs_mkstemps): New function - create temporary file
234         with the name resembling the original, but safe for scripts.
235         * direntry.c (vfs_s_open): Use it.
236         (vfs_s_retrieve_file): Likewise.
237         * extfs.c (extfs_open): Likewise.
238         * sfs.c (sfs_redirect): Likewise.
240         * vfs.c (mc_ungetlocalcopy): Free local path here, not in class
241         implementations.
242         * vfs.h (struct vfs_s_class): Constify "local" argument for
243         ungetlocalcopy.  Adjust all implementations.
245         * direntry.c (vfs_s_init_class): Use our getlocalcopy for remote
246         filesystems that cache files, not for archives.
247         (vfs_s_getlocalcopy): Corresponding changes.
249         * direntry.c (vfs_s_init_class): Improve interface to allow more
250         code reuse.  Change all callers.
251         (vfs_s_getlocalcopy): New implementation.  Don't use
252         mc_def_getlocalcopy().  Use vfs_s_open() to create local copy.
253         (vfs_s_ungetlocalcopy): New function.
254         * xdirentry.h: Add new field "flags" to struct vfs_s_subclass.
255         * extfs.c (extfs_ungetlocalcopy): Don't use
256         mc_def_ungetlocalcopy() in the dead branch.
257         * vfs.c (mc_def_getlocalcopy): Make static.
258         (mc_def_ungetlocalcopy): Likewise.
260 2003-10-27  Pavel Roskin  <proski@gnu.org>
262         * vfs.h: Constify some arguments for many functions.
263         * xdirentry.h: Likewise.  Adjust all dependencies.
265         * *.c: Rename functions that don't have an a prefix indicating
266         what file they are defined in.  This simplifies debugging.
268         * vfs.c (mc_def_getlocalcopy): Use O_LINEAR when retrieving the
269         remote file.  This avoids an extra temporary file.
271         * cpio.c (cpio_ungetlocalcopy): Remove.
272         * tar.c (tar_ungetlocalcopy): Likewise.
273         * vfs.c (mc_def_ungetlocalcopy): Add support for read-only
274         filesystems.
276 2003-10-26  Pavel Roskin  <proski@gnu.org>
278         * direntry.c (vfs_s_find_inode): Only allow search from root.
279         Change second argument to superblock to prevent abuse.
281         * direntry.c (vfs_s_find_entry_tree): Eliminate buffer of fixed
282         size.  Don't prepare path for vfs_s_resolve_symlink().
283         (vfs_s_resolve_symlink): Remove unused argument "path".
285         * direntry.c (vfs_s_add_dots): Remove.  Fix all callers.
286         (vfs_s_free_inode): Remove support for "." and ".." entries.
287         * ftpfs.c (dir_load): Likewise.
288         Support for "." and ".." entries was a hack that could make the
289         cache non-traversable from inodes to the root and cause infinite
290         loop in vfs_s_fullpath().
291         Reported by Frédéric L. W. Meunier <lists1@pervalidus.net>
293 2003-10-25  Pavel Roskin  <proski@gnu.org>
295         * tar.h: Merge into tar.c, as it doesn't provide any external
296         interface.
297         * Makefile.am: Remove tar.h.
299         * vfs.h: Remove redundant declaration of init_localfs().
301         * mcserv.c: Don't use HAVE_CRYPT from extraconf.h.
302         * samba/include/includes.h: Likewise.
304 2003-10-24  Pavel Roskin  <proski@gnu.org>
306         * ftpfs.c: Remove the rest of source routing code.
307         * xdirentry.h: Likewise.
309         * ftpfs.c (setup_source_route): Remove.  It's a badly
310         implemented hack that was never enabled.
312 2003-10-16  Pavel Roskin  <proski@gnu.org>
314         * direntry.c (vfs_s_find_entry_tree): Canonicalize path.
316         * direntry.c (vfs_s_resolve_symlink): Don't use buffers of fixed
317         size.  This fixes a security hole.  Always start from the root.
318         Remove broken code for making symlinks relative.
319         (vfs_s_find_entry_tree): Protect against long path, since this
320         function uses a buffer of fixed size.
321         (vfs_s_fullpath): Implement support for archives (real trees).
323 2003-10-16  Andrew V. Samoilov  <sav@bcs.zp.ua>
325         * vfs.c (mc_open): Fix rare memory leak on failure.
327 2003-10-16  Pavel Roskin  <proski@gnu.org>
329         * direntry.c (vfs_s_setctl): Implement VFS_SETCTL_FLUSH.
330         * ftpfs.c: Remove ftpfs_flushdir.  Use MEDATA->flush.
331         * fish.c: Use MEDATA->flush.
333         * direntry.c (vfs_s_setctl): Add support to VFS_SETCTL_LOGFILE.
334         * ftpfs.c (ftpfs_set_debug): Remove.
336         * names.c: Merge ...
337         * utilvfs.c: ... here.
338         * names.h: Merge ...
339         * utilvfs.h: ... here.
340         * Makefile.am: Remove references to names.c and names.h.
342         * xdirentry.h: Rename vfs_s_data to vfs_s_subclass.
343         * cpio.c: Initialize only non-zero fields in vfs_s_subclass.
344         * fish.c: Likewise.
345         * ftpfs.c: Likewise.
346         * tar.c: Likewise.
348         * vfs.h: Rename commands for mc_ctl() and mc_setctl() to make it
349         clear which function they are used with.
350         * vfs.c (mc_ctl): Change last argument to (void*).
351         (mc_set): Likewise.
352         Adjust all dependencies.
354         * xdirentry.h: Move system includes to the files that need them.
356         * xdirentry.h: Fix typos in field names.
358         * xdirentry.h: Cleanup unused or write-only fields.  Adjust all
359         dependencies.
361         * xdirentry.h: Remove magic numbers.  Move some constants ...
362         * ftpfs.c: ... here.
364 2003-10-15  Pavel Roskin  <proski@gnu.org>
366         * samba/lib/doscalls.c: Remove.  Remove all references to it.
368 2003-10-14  Pavel Roskin  <proski@gnu.org>
370         * vfs.h: Remove all references to seekdir and telldir.  Adjust
371         all dependencies.
373 2003-10-13  Pavel Roskin  <proski@gnu.org>
375         * vfs.c (_vfs_add_noncurrent_stamps): Fix incorrect casts.
377 2003-10-12  Pavel Roskin  <proski@gnu.org>
379         * extfs.c: Switch to self-registration.
380         * mcfs.c: Likewise.
381         * sfs.c: Likewise.
382         * smbfs.c: Likewise.
383         * undelfs.c: Likewise.
384         * vfs.s (_vfs_add_noncurrent_stamps): Temporary disable code
385         that uses vfs_extfs_ops.
386         (vfs_file_is_smb): Remove.
388         * local.c: Switch to self-registration.
389         * vfs.c: Cache localfs class for the use in vfs_get_class().
391 2003-10-11  Pavel Roskin  <proski@gnu.org>
393         * xdirentry.h: Remove all typedefs, there is no need to hide the
394         fact that structures are structures.  Fix all dependencies.
396         * vfs.h: Remove typedef vfs, it's too ambiguous.  Massive
397         changes to use struct vfs_class instead.
399         * vfs.c (vfs_setup_wd): Initialize current_vfs here, not
400         globally.
401         (vfs_type_from_op): Rename to vfs_prefix_to_class(), avoid using
402         vfs_local_fs.
403         (vfs_strip_suffix_from_filename): Don't use vfs_local_fs.
405         * vfs.h (ftpfs_hint_reread): Remove, it's unused.
407         * vfs.c (vfs_add_noncurrent_stamps): Call vfs_rm_parents() at
408         the end.  Change all callers not to call it.
409         (vfs_rm_parents): Make static.
411         * direntry.c: Don't use vfs_local_fs directly, use VFSF_LOCAL.
412         * extfs.c: Likewise.
413         * vfs.c (vfs_addstamp): Likewise.
414         (vfs_init): Register vfs_local_fs like other classes.
416         * direntry.c: Make more functions static.  They are filled in in
417         vfs_s_init_class() now and don't need to be exported.
419         * tarfs.c: Switch to self-registration.
421         * extfs.c: Don't include xdirentry.h.
422         * vfs.c: Likewise.
424         * ftpfs.c: Switch to self-registration.
426         * vfs.h: Remove parts used only when USE_VFS is not defined.
428         * vfs.h: Introduce new VFS flags instead of the old unused ones.
429         * vfs.c (vfs_file_class_flags): New function.
430         (vfs_file_is_ftp): Eliminate.
431         (vfs_file_is_smb): Likewise.
432         (vfs_file_is_local): Likewise.
433         (vfs_current_is_local): Use new VFSF_LOCAL flag.
435         * vfs.c: Constify arguments of many functions.
437         * undelfs.c (undelfs_get_path): Constify first argument.
438         * vfs.h (struct vfs_class): Constify path.  Fix all dependencies.
440         * vfs.c (vfs_release_path): New function, code taken from
441         _do_panel_cd().
442         (vfs_ncs_getid): Make static.
444         * vfs.c (vfs_type): Rename to vfs_get_class().  Fix prototype to
445         avoid using internal vfs type.  Adjust all dependencies.
446         (vfs_rosplit): Rename to _vfs_get_class().
448         * cpio.c (init_cpiofs): Set vfs_cpiofs_ops.setctl to NULL, or
449         bad things happen after unsuccessful deletion.
451         * vfs.h: Remove obsolete code.
453 2003-10-10  Pavel Roskin  <proski@gnu.org>
455         * vfs.c (vfs_flags): Eliminate, it's never assigned a non-zero
456         value.
457         * vfs.h: Eliminate unused VFS flags.
458         * local.c (vfs_nil_ops): Eliminate, it's unused now.
460         * fish.c: Convert to calling vfs_register_class().
461         * fish.h: Eliminate.  Adjust all dependencies.
462         * direntry.c (vfs_s_init_class): Add missing vfs_s_setctl().
464         * vfs.h: Rename "struct _vfs" to "struct vfs_class".  Allow
465         calling vfs_register() in the file defining the VFS class.
466         * vfs.c (vfs_init): Register cpiofs in cpio.c.
467         (vfs_register): Rename to vfs_register_class(), remove "static".
468         * direntry.c (vfs_s_init_class): New function - generic VFS
469         class registration for vfs_s descendants.
470         * cpio.c: Register VFS class locally.
472 2003-10-07  Pavel Roskin  <proski@gnu.org>
474         * direntry.c: Make functions static when possible.
475         * xdirentry.h: Remove unneeded declarations.
477 2003-09-28  Pavel Roskin  <proski@gnu.org>
479         * vfs.c (vfs_type_from_op): Check if vfs->prefix is NULL before
480         calling strlen() on it.
481         (vfs_strip_suffix_from_filename): Likewise.
482         (mc_chdir): Don't panic if no chdir function is defined.  This
483         fixes "cd #gz".
485 2003-09-23  Pavel Roskin  <proski@gnu.org>
487         * vfs.c (vfs_canon): Remove tilde expansion.  mc_chdir() should
488         act like chdir() of localfs, which doesn't expand tilde.
489         Reported by Doncho Gunchev <mr700@globalnet.bg>
491 2003-09-22  Pavel Roskin  <proski@gnu.org>
493         * vfs.c (mc_get_current_wd): Use g_strlcpy() to avoid unneeded
494         padding and silence Valgrind.
496 2003-09-09  Andrew V. Samoilov  <sav@bcs.zp.ua>
498         * samba/libsmb/namequery.c (_interpret_node_status): Comment
499         out.
501 2003-09-03  Pavel Roskin  <proski@gnu.org>
503         * samba/include/charset.h: Remove declaration already present in
504         proto.h.
505         * samba/include/proto.h: Run through uniq.
507 2003-08-30  Pavel Roskin  <proski@gnu.org>
509         * samba/tests/summary.c: Remove.  The test is now included ...
510         * samba/configure.in: ... here.
511         * samba/tests/README: Remove, it's irrelevant.
512         * samba/architecture.doc: Likewise.
513         * samba/include/dlinklist.h: Remove, it's unused.  Adjust
514         dependencies.
515         * samba/libsmb/namequery.c (name_status): Remove, it's unused.
516         * Makefile.am: Remove unused Samba files.
518         * samba/include/smb.h: Remove unneeded includes.
519         * samba/include/ntdomain.h: Remove, it's unused.
520         * samba/include/rpc*.h: Likewise.
521         * samba/lib/util_unistr.c: Remove unused code.
522         * samba/include/proto.h: Regenerate.
523         * Makefile.am: Remove unused Samba headers.
525 2003-08-29  Pavel Roskin  <proski@gnu.org>
527         * samba/lib/system.c: Remove all unused code.
528         * samba/include/proto.h: Remove some unused prototypes.
529         * samba/include/includes.h: Don't include sys/capability.h,
530         it's not needed.
531         * samba/configure.in: Remove tests for capabilities and groups,
532         which are unused now.  Also remove the trivial test.
533         * Makefile.am: Remove unused Samba tests.
535 2003-08-29  Andrew V. Samoilov  <sav@bcs.zp.ua>
537         * direntry.c (vfs_s_dump): Commented out.
538         * extfs.c (s_readlink): Fix return value and possible buffer
539         overflow.
540         * mcfs.c (mcfs_readlink): Fix return value.
541         * mcserv.c (do_readlink):  Fix possible off-by-one.
542         (commands): Make const array and remove needless comma.
544 2003-08-29  Pavel Roskin  <proski@gnu.org>
546         * ftpfs.c (initconn): Use more portable initialization.
547         * xdirentry.h: Use safer definition of ERRNOR.
549 2003-08-18  Oskar Liljeblad  <oskar@osk.mine.nu>
551         * extfs/uzip.in: Fix error in parsing size of files over 9999999
552         bytes long.
554 2003-08-08  Pavel Roskin  <proski@gnu.org>
556         * extfs/audio.in: Further portability fixes.  Use current date
557         for timestamps.
558         Partly from Andrew V. Samoilov <sav@bcs.zp.ua>
560         * extfs/audio.in: Fix non-POSIX constructs.
561         From GoTaR <gotar@poczta.onet.pl>
563 2003-07-28  Andrew V. Samoilov  <sav@bcs.zp.ua>
565         * ftpfs.c (login_server): Undo last change.
567 2003-07-23  Andrew V. Samoilov  <sav@bcs.zp.ua>
569         * ftpfs.c (login_server): Fix memory leak.
570         (linear_abort): Close dsock before reconnect().
571         (ftpfs_done): Release no_proxy list.
573 2003-07-21  Andrew V. Samoilov  <sav@bcs.zp.ua>
575         * ftpfs.c (load_no_proxy_list): Fix infinitive loop if ferror().
576         (initconn): Reset variables if setup_passive() fails.
577         (open_data_connection): Set my_errno to errno before close()
578         syscall.
579         (dir_load): Optimize cd_first calculation.
581 2003-06-24  Andrew V. Samoilov  <sav@bcs.zp.ua>
583         * extfs/lslR.in: Portability fixes.
585 2003-06-21  Jindrich Makovicka  <makovick@kmlinux.fjfi.cvut.cz>
587         * ftpfs.c (command): Fix misuse of the status variable.  Don't
588         cache the value of SUP.sock before reconnect.
590 2003-06-05  Pavel Roskin  <proski@gnu.org>
592         * vfs.c: Rename mc_return_cwd() to _vfs_get_cwd().  Move
593         related functions closer to each other, add comments.
595         * ftpfs.c (ftpfs_done): New function.  Free ftpfs_proxy_host and
596         ftpfs_anonymous_passwd.
598 2003-05-30  Pavel Roskin  <proski@gnu.org>
600         * extfs/trpm: Fix compatibility with the secure temporary
601         filenames used by extfs.  Filter rpm messages from the listing.
603 2003-05-08  Pavel Roskin  <proski@gnu.org>
605         * fish.c (file_store): Use block size 1.  It's slower, but much
606         safer.  GNU dd is not persistent enough when reading data.
608         * extfs/rpm: If rpm doesn't support --info as in Red Hat 9,
609         ignore it and don't show HEADER in the listing.
611 2003-04-29  Michael Shigorin  <mike@osdn.org.ua>
613         * extfs/iso9660.in: Determine presence of Rock Ridge and Joliet
614         extensions by running "isoinfo -R".  Use current charset for
615         Joliet extensions.
617 2003-04-29  Pavel Roskin  <proski@gnu.org>
619         * extfs/iso9660.in: New filesystem for ISO-9660 images.
620         From Michael Shigorin <mike@altlinux.org>
621         * extfs/extfs.ini: Add iso9660.
622         * extfs/Makefile.am: Add extfs/iso9660.in.
624 2003-04-03  Andrew V. Samoilov  <sav@bcs.zp.ua>
626         * smbfs.c (open_readwrite): New function to replace open_read()
627         and open_write().  Use cli_close() if cli_qfileinfo() or
628         cli_getattrE() fail.
630         (smbfs_open): Use open_readwrite(). Free remote_handle if
631         open_readwrite() fails.
633 2003-03-24  Adam Byrtek  <alpha@debian.org>
635         * extfs/patchfs.in: Treat '\ No newline at end of file' line
636         as valid diff contents.
638 2003-03-14  Lorinczy Zsigmond  <lzsiga@mail.ahiv.hu>
640         * ftpfs.c (login_server): Ask user for account if the server
641         asks for it.
643 2003-03-13  Andrew V. Samoilov  <sav@bcs.zp.ua>
645         * samba/libsmb/clientgen.c (cli_session_setup): Convert
646         username from Unix to DOS codepage before sending.
648 2003-03-10  Adam Byrtek  <alpha@debian.org>
650         * extfs/patchfs.in: Minor cleanups.
652 2003-03-10  Pavel Roskin  <proski@gnu.org>
654         * extfs.c (extfs_cmd): Quote localname - it's based on the entry
655         name, so it can contain dangerous symbols like "&".
657 2003-02-26  Adam Byrtek  <alpha@debian.org>
659         * extfs.c (extfs_open): Retain original filename as a suffix
660         for the temporary filename.
661         * vfs.c (mc_def_getlocalcopy): Likewise.
663 2003-02-24  Adam Byrtek  <alpha@debian.org>
665         * extfs/patchfs.in: rm and proper copyin support, more
666         functions to make code more clear.
668 2003-02-19  Andrew V. Samoilov  <sav@bcs.zp.ua>
670         * smbfs.c (smbfs_lseek): Backport from Samba 2.2.7 Suite.
671         (fake_server_stat): Warning fix for SunOS.  Reformat function.
672         (fake_share_stat): Likewise.
673         (smbfs_mkdir): Likewise.
674         * direntry.c (vfs_s_dump): Likewise.
676         * vfs.c (is_localized_month): New function for locale's
677         abbreviated month name as any 3 bytes long string without digits
678         and control characters.
679         (vfs_parse_filedate): Fallback to is_localized_month() if
680         is_month() and is_dos_date() fail and set date to Jan 1 1970.
681         (vfs_parse_ls_lga): Use is_localized_month().
683 2003-01-24  Pavel Roskin  <proski@gnu.org>
685         * smbfs.c (smbfs_nothingisopen): Warning fix for 64-bit systems.
686         (smbfs_free): Likewise.
688 2003-01-24  Andrew V. Samoilov  <sav@bcs.zp.ua>
690         * extfs/urar.in: Search $PATH for unrar, fallback to rar.
692 2003-01-13  Adam Byrtek  <alpha@debian.org>
694         * extfs/patchfs.in: context diff format support, regular
695         expressions precompiled, some minor fixes.
697 2002-12-29  Andrew V. Samoilov  <sav@bcs.zp.ua>
699         * extfs/rpm: Use --nosignature only if rpm supports this.
701 2002-12-25  Pavel Roskin  <proski@gnu.org>
703         * extfs.c (read_archive): Free archive if the "list" command
704         returned non-zero, return -1.
705         Initial implementation from Adam Byrtek <alpha@debian.org>
707 2002-12-24  Pavel Roskin  <proski@gnu.org>
709         * direntry.c (vfs_s_open): If the filesystem is read-only,
710         disable file creation.
712         * vfs.c (mc_chdir): Don't change current directory until the
713         low-level chdir succeeds.
715         * vfs.c (vfs_name): Eliminate - it's unused and wrong.
717 2002-12-24  Andrew V. Samoilov  <sav@bcs.zp.ua>
719         * extfs/mailfs.in: Quote filename when opening mailbox.
721 2002-12-24  Adam Byrtek  <alpha@debian.org>
723         * extfs/apt.in, extfs/dpkg.in: Avoid stat on non-existing file.
725 2002-12-20  Andrew V. Samoilov  <sav@bcs.zp.ua>
727         * smbfs.c: Resurrect and use myumask for generated permissions.
729 2002-12-19  Adam Byrtek  <alpha@debian.org>
731         * extfs/patchfs.in: Fix patch size calculation.  Use bytes to
732         count size in bytes, not characters (in multibyte encodings char
733         can be two or more bytes wide).
735 2002-12-19  Andrew V. Samoilov  <sav@bcs.zp.ua>
737         * extfs/patchfs.in: Don't rely on tell() - it doesn't always
738         work on pipes.  Determine patch size by adding together the line
739         lengths.
741 2002-12-19  Adam Byrtek  <alpha@debian.org>
743         * extfs/patchfs.in: Allow diffs with function names after "@@".
744         Don't consider an empty newline as the end of the diff.
746 2002-12-18  Andrew V. Samoilov  <sav@bcs.zp.ua>
748         * extfs/patchfs.in (openread): Use quoted $archive when opening
749         archives.
750         (list): Set $archive to quoted $_[0].
752 2002-12-16  Pavel Roskin  <proski@gnu.org>
754         * extfs/rpm: Don't check package signatures - it creates a lot
755         of noise on stderr if the signature is missing.
757 2002-12-14  Adam Byrtek  <alpha@debian.org>
759         * extfs/mailfs.in: Fixed bug when opening empty mailbox.  Added
760         proper message size (not number of lines, like before) counting.
762 2002-12-13  Pavel Roskin  <proski@gnu.org>
764         * extfs/uha.in (mchafs_list): Don't parse the month, use
765         DD-MM-YYYY output.
766         (mchafs_copyout): Use cat, not mv, because the files can be on
767         different filesystems.  Use "q" and don't suppress stderr.
769         * extfs/ulha.in: Don't suppress stderr.
771         * extfs/uzoo.in: Always use "q" option to avoid processing junk.
772         Always create symlink, do it in a safer directory.
774         * extfs/uarj.in: New script working with open-source ARJ.
775         Contributed by Viatcheslav Odintsov.
776         * extfs/uarj: Remove.
777         * extfs/hp48: Rename to ...
778         * extfs/hp48.in: ... this.  It needs awk substitution.
779         * extfs/Makefile.am: Adjust for the above.
781         * extfs/ulha.in: Strengthen quoting.
783         * extfs/uha.in: Strengthen quoting.  Remove unnecessary space
784         after filename.  Update URL.  Use safer temporary directory.
786         * extfs/uarj: New list-only implementation that doesn't need
787         patched unarj.
788         * extfs/unarj.diff: Remove.
789         * extfs/Makefile.am: Remove extfs/unarj.diff.
791 2002-12-13  Adam Byrtek  <alpha@debian.org>
793         * extfs/patchfs.in: "copyin" method added (with compressed files
794         support).  Files inside archive now have '.diff' extension.
795         Temporary file not needed any more.  Proper handling of
796         "/dev/null" filenames, filename heuristics based on diff info
797         page.  Set files owner and group as the archive.
798         * extfs/audio.in: CDDB_TIMEOUT variable added.
800 2002-12-12  Pavel Roskin  <proski@gnu.org>
802         * vfs.c (is_dos_date): Allow 4-digit years.
803         (vfs_parse_filedate): Don't limit length of the year field for
804         DOS dates, subtract 1900 if necessary.
806         * extfs/apt.in: Fix Y2K bug.
807         * extfs/deba.in: Likewise.
808         * extfs/debd.in: Likewise.
809         * extfs/dpkg.in: Likewise.
810         Reported by Adam Byrtek <alpha@debian.org>
812         * extfs/patchfs.in: Print 4-digit year.  If str2time is not
813         available, use current time, not 0.
815 2002-12-12  Andrew V. Samoilov  <sav@bcs.zp.ua>
817         * extfs/urar.in: rar lists directories after files, so sort "list"
818         command output by names to prevent duplications.
820 2002-12-12  Pavel Roskin  <proski@gnu.org>
822         * extfs/urar.in: Strengthen quoting.  Don't use full path to rar
823         and unrar.  Don't redirect stderr to /dev/null.
825         * extfs/uar.in: Simplify "list" command, don't use current year.
826         Use more careful quoting.
828 2002-12-12  Adam Byrtek  <alpha@debian.org>
830         * extfs/apt.in: Add non-interactive remove using dpkg.
832 2002-12-11  Adam Byrtek  <alpha@debian.org>
834         * extfs/apt.in: Add 1 to the month number.  Perl localtime()
835         uses range 0..11 while extfs expects range 1..12.
836         * extfs/deba.in: Likewise.
837         * extfs/debd.in: Likewise.
838         * extfs/dpkg.in: Likewise.
840         * extfs/audio: Move ...
841         * extfs/audio.in: ... here.  Add CDDB support.
842         * extfs/Makefile.am: Adjust for the above.
844 2002-12-11  Pavel Roskin  <proski@gnu.org>
846         * extfs/mailfs: Try using UnixDate() from Date::Manip if it's
847         available.  Warning fix.
849 2002-12-11  Andrew V. Samoilov  <sav@bcs.zp.ua>
851         * extfs/patchfs: Use quotemeta() before giving filename to
852         shell.
854         * vfs.c (mc_stat): Make first argument const.
855         (mc_lstat): Likewise.
856         * vfs.h: Adjust declarations and remove some useless defines.
858 2002-12-10  Pavel Roskin  <proski@gnu.org>
860         * extfs/a: Enable Perl warnings.  Ignore entries without a date.
861         Warning fixes.  Don't redirect stderr to /dev/null - it doesn't
862         mess the screen now.
864 2002-12-09  Adam Byrtek  <alpha@debian.org>
866         * extfs/patchfs: Rewritten in Perl.  File size is now displayed
867         properly.
869 2002-12-09  Pavel Roskin  <proski@gnu.org>
871         * extfs/ftplist.in: Remove, it's obsoleted by the hotlist.
872         * extfs/ucpio.in: Remove, it's obsoleted by cpio.c.
873         * extfs/Makefile.am: Remove all references to them.
874         * extfs/extfs.ini: Likewise.
876         * extfs.c (__find_entry): When creating entries for regular
877         files, set initial permissions to S_IFREG | 0666.  This fixes
878         problems with viewing and editing newly added files.
880         * extfs/bpp: Fix file sizes, contents of INSTALL and UPGRADE.
882 2002-12-08  Pavel Roskin  <proski@gnu.org>
884         * extfs/uar.in: Fix "copyin" command.
886 2002-12-06  Pavel Roskin  <proski@gnu.org>
888         * extfs.c (extfs_open): Don't run "copyout" if the file just has
889         been created or O_TRUNC is given in the flags.
890         Reported by Adam Byrtek 'alpha' <alpha@irc.pl>
892         * extfs/uar.in: Implement "copyin" and "rm" commands.
894 2002-12-06  Andrew V. Samoilov  <sav@bcs.zp.ua>
896         * extfs.c: Don't include ../src/profile.h.
897         (extfs_open): Remove local_filename if copyout fails.
899 2002-12-05  Pavel Roskin  <proski@gnu.org>
901         * extfs.h: Remove "extfsstat" from struct archive - it's unused
902         outside open_archive().  Adjust the dependencies.
903         * extfs.c: Make hstat local variable.
905         * sfs.c: Remove "uid" from struct cachedfile - it's unused now.
907         * vfs.h: Remove vfs_uid and vfs_gid.  Fix all dependencies.
909 2002-12-05  Andrew V. Samoilov  <sav@bcs.zp.ua>
911         * extfs.c (open_archive): Use open_error_pipe before popen() and
912         close_error_pipe() if popen() fails to handle stderr.
913         (read_archive): Use close_error_pipe() after pclose().
915 2002-12-05  Pavel Roskin  <proski@gnu.org>
917         * ftpfs.c: Define INADDR_NONE if it's not already defined.
918         Needed for Solaris 9.
919         Reported by Roman Dorokhin <dorokhin@cybermail.net>
921 2002-12-03  Andrew V. Samoilov  <sav@bcs.zp.ua>
923         * extfs.c (open_archive): Don't use open_error_pipe() and
924         close_error_pipe() - it gets stuck on output that exceeds 4
925         kilobytes.
927 2002-12-01  Andrew V. Samoilov  <sav@bcs.zp.ua>
929         * extfs.c (open_archive): Use open_error_pipe() and
930         close_error_pipe() to prevent stderr from extfs scripts pollute
931         the screen.
932         (extfs_cmd): New function to run extfs scripts and handle stderr
933         in one place.
934         (extfs_open): Use extfs_cmd().
935         (extfs_close): Likewise.
936         (extfs_unlink): Likewise.
937         (extfs_mkdir): Likewise.
938         (extfs_rmdir): Likewise.
940 2002-12-01  Pavel Roskin  <proski@gnu.org>
942         * extfs/Makefile.am: Add uzip to EXTFS_OUT.
944 2002-11-16  Pavel Roskin  <proski@gnu.org>
946         * mcserv.c (do_classic_auth): Restore support for shadow
947         passwords.  Use crypt() instead of pw_encrypt() - the later is
948         missing on Slackware 8.0.  Reported by
949         Christian Laubscher <christian.laubscher@tiscalinet.ch>
951         * Makefile.am: Consolidate mcserv libraries into MCSERVLIBS.
953 2002-11-15  Pavel Roskin  <proski@gnu.org>
955         * mcserv.c: Include getopt.h, don't redefine optarg.
957         * names.c: Only leave actually used functions.
959         * ftpfs.c (ftpfs_open_socket): Use INADDR_NONE, not -1.
961 2002-11-12  Pavel Roskin  <proski@gnu.org>
963         * fish.c (fish_which): Remove.
965 2002-11-12  Andrew V. Samoilov  <sav@bcs.zp.ua>
967         * ftpfs.c (linear_abort): Close data socket dsock.
969 2002-11-11  Pavel Roskin  <proski@gnu.org>
971         * vfs.h [USE_VFS] (mc_setctl): Specify argument types.
973         * cpio.c (cpiofs_data): Warning fix in initialization.
974         * tar.c (tarfs_data): Likewise.
976         * vfs.c: Leave only necessary includes from ../src.
978 2002-11-10  Pavel Roskin  <proski@gnu.org>
980         * vfs.c: Make the last argument to MC_OP non-empty in the
981         definition of MC_HANDLEOP.  Needed for Mac OS X.
982         Reported by Wim Rijnders <wimrijnders@home.nl>
984 2002-11-08  Pavel Roskin  <proski@gnu.org>
986         * extfs/a: Set environment to force date and time format
987         suitable for VFS.  Fix support for long filenames with spaces.
989 2002-11-06  Andrew V. Samoilov  <sav@bcs.zp.ua>
991         * smbfs.c (new_dir_entry): Initialize st_ino, so recursive
992         directory copying is possible now.
993         * vfs.c (mc_get_current_wd): Make sure returned string is null
994         terminated.
996 2002-11-03  Pavel Roskin  <proski@gnu.org>
998         * vfs.c: Remove unused code.
999         * vfs.h: Define vfs_uid and vfs_gid as 0, they never change.
1001 2002-11-01  Andrew V. Samoilov  <sav@bcs.zp.ua>
1003         * fish.c: Use name_quote() to quote filenames.
1004         (file_store): Close localname on error.
1006 2002-10-25  Jindrich Makovicka  <makovick@kmlinux.fjfi.cvut.cz>
1008         * ftpfs.c (linear_abort): Close data socket, ProFTPD 1.2.6
1009         expects the client to close it.
1011 2002-10-13  Pavel Roskin  <proski@gnu.org>
1013         * vfs.h: Remove tar_gzipped_memlimit.
1014         From Christian Laubscher <christian.laubscher@tiscalinet.ch>
1016 2002-10-11  Andrew V. Samoilov  <sav@bcs.zp.ua>
1018         * smbfs.c (fake_share_stat): Make sure share exists by
1019         smbfs_get_path() and fill buf with realistic data
1020         if current_share_info is NULL.  Reformat function.
1021         (smbfs_get_path): Add const qualifier to path.
1023 2002-10-09  Andrew V. Samoilov  <sav@bcs.zp.ua>
1025         * smbfs.c: Allow username in URL (/#smb:[user@]machine) and
1026         reformat changed functions.
1027         (smbfs_get_host_and_username): Fix comment.
1028         (smbfs_fill_names): Add username@ before hostname.
1029         (smbfs_open_link): Use IPC$ if share is empty.
1030         (smbfs_get_path): Pass remote_path to smbfs_open_link().
1031         (smbfs_stat): Copy username@ to server_url if passed.
1033 2002-10-07  Jindrich Makovicka  <makovick@kmlinux.fjfi.cvut.cz>
1035         * ftpfs.c (linear_abort): Add a timeout after which a reconnect
1036         is performed instead of further fetching of the remaining data.
1038 2002-10-07  Pavel Roskin  <proski@gnu.org>
1040         * direntry.c (vfs_s_resolve_symlink): Use g_snprintf() instead
1041         of non-portable snprintf().
1042         Reported by Xu Qiang <Xu.Qiang@xssc.sgp.xerox.com>
1044 2002-10-04  Pavel Roskin  <proski@gnu.org>
1046         * mcfs.c (mcfs_lseek): Explicitly cast offset to int.  This fixes
1047         viewing and editing files on mcfs.
1049         * tcputil.c: Split mcfs-specific part to
1050         * mcfsutil.c: ... this.
1051         * tcputil.h: Split mcfs-specific part to
1052         * mcfsutil.h: ... this.
1053         * Makefile.am: Add mcfsutil.c and mcfsutil.h.
1054         * mcserv.c: Define own got_sigpipe, which is always 0, since
1055         mcserv doesn't call tcp_init().
1057         * Makefile.am: Don't link mcserv with glib.  It's unreasonable
1058         to require a glib port for embedded systems mcserv may run on.
1059         * mcserv.c: Replace all glib calls with standard libc calls.
1060         * tcputil.c (rpc_get): Likewise.
1062         * mcserv.c (get_client): Don't try to find the address family
1063         from the hostname.  Always use AF_INET, because everything else
1064         is unsupported.
1066 2002-10-04  Andrew V. Samoilov  <sav@bcs.zp.ua>
1068         * sfs.c (vfmake): Use open_error_pipe() and close_error_pipe().
1070 2002-10-01  Andrew V. Samoilov  <sav@bcs.zp.ua>
1072         * xdirentry.h: Comment out magic field everywhere.
1074 2002-10-01  Pavel Roskin  <proski@gnu.org>
1076         * Makefile.am (VFSHDRS): Remove container.h.
1078         * tcputil.c (check_hooks): Remove, it does nothing.  Also remove
1079         all related data structures.
1081         * tcputil.c (get_remote_port): Move to mcfs.c.
1082         (send_string): Move to mcserv.c.
1083         (rpc_add_get_callback): Remove, it's unused.
1085         * container.h: Remove, it's unused.
1087         * utilvfs.c: Remove tests, since get_host_and_username() is
1088         missing.
1089         * mcfs.c (open_tcp_link): Make static.
1090         * tcputil.h: Remove unused definitions.
1092 2002-09-29  Pavel Roskin  <proski@gnu.org>
1094         * direntry.c (vfs_s_retrieve_file): Allow interrupt by Ctrl-C.
1095         From Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>
1097 2002-09-26  Pavel Roskin  <proski@gnu.org>
1099         * sfs.c (sfs_init): Parametrize sfs.ini to allow reuse of the
1100         messages in other places.
1102 2002-09-25  Pavel Roskin  <proski@gnu.org>
1104         * vfs.c (vfs_parse_filemode): Fix parsing for filenames that
1105         begin with a number.
1106         From Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
1108 2002-09-24  Andrew V. Samoilov  <sav@bcs.zp.ua>
1110         * smbfs.c: Undef USE_NCURSES - no needs to include *curses.h.
1111         (smbfs_loaddir): Fix warning.
1113 2002-09-21  Pavel Roskin  <proski@gnu.org>
1115         * mcfs.c: Move config.h to the beginning.
1117 2002-09-19  Andrew V. Samoilov  <sav@bcs.zp.ua>
1119         * tcputil.c [!WITH_MCFS]: Disable mcfs related code.
1120         * mcfs.c [!WITH_MCFS]: Disable all code.
1122 2002-09-16  Andrew V. Samoilov  <sav@bcs.zp.ua>
1124         * smbfs.c: Don't define BOOL_DEFINED to fix compilation on
1125         SunOS 5.8.
1127 2002-09-13  Andrew V. Samoilov  <sav@bcs.zp.ua>
1129         * (get_stat_info): Fix some possible NULL dereferences.
1130         * smbfs.c (smbfs_set_debugf): New function to specify
1131         logfile.
1132         * smbfs.h: Declare smbfs_set_debugf().
1134 2002-09-12  Pavel Roskin  <proski@gnu.org>
1136         * mcserv.c: Declare crypt if crypt.h is missing and we are not
1137         using PAM.
1139 2002-09-11  Andrew V. Samoilov  <sav@bcs.zp.ua>
1141         * smbfs.c (statfile_helper): Merge with loaddir_helper().
1142         (get_remote_stat): Use loaddir_helper().  Care about
1143         single_entry instead of eliminated statfile_helper().
1145         * samba/libsmb/clientgen.c (cli_NetServerEnum): Add void*
1146         parameter to (*fn)() and void *state parameter.
1147         (cli_list): Likewise.
1148         (cli_RNetShareEnum): Likewise.  Return int.
1149         * samba/include/proto.h: Adjust declarations.
1150         * smbfs.c: Adjust all helpers and dependencies.
1151         From Samba patchsets.
1153         * smbfs.c (loaddir_helper): Remove write permissions if file
1154         has readonly attribute.  Add execute permissions for directory.
1155         Reformat whole function.
1156         (statfile_helper): Likewise.
1157         (server_browsing_helper): Add execute permissions.  Reformat.
1158         (browsing_helper): Likewise.
1160 2002-09-10  Pavel Roskin  <proski@gnu.org>
1162         * vfs.h: Remove BROKEN_PATHS, it's unused.
1164         * Make-alone.am: Get rid of all standalone code, it has been
1165         unmaintained for years.
1167 2002-09-05  Pavel Roskin  <proski@gnu.org>
1169         * direntry.c [!USE_NETCODE]: Disable functions used in networked
1170         filesystems only.
1172         * vfs.c (vfs_init) [!USE_NETCODE]: Don't register fish.
1174         * ftpfs.c: Check for existence of arpa/inet.h when using it.
1175         * mcfs.c: Likewise.
1176         * mcserv.c: Likewise.
1177         * tcputil.c: Likewise.
1178         * utilvfs.c: Likewise.
1180 2002-09-03  Pavel Roskin  <proski@gnu.org>
1182         * vfs.c (vfs_get_password): Use INPUT_PASSWORD to request a
1183         password reliably.
1185 2002-09-02  Andrew V. Samoilov  <sav@bcs.zp.ua>
1187         * smbfs.c (smbfs_close): Return -1 if cli->outbuf is NULL and
1188         set my_errno to EINVAL - temporary fix.  Reformat function.
1190 2002-09-01  Andrew V. Samoilov  <sav@bcs.zp.ua>
1192         * samba/param/loadparm.c: Add global_scope variable.
1193         (parm_table): Add netbios scope parameter.
1194         * samba/lib/util.c: Remove scope variable.  Use global_scope instead.
1195         * samba/libsmb/nmblib.c (make_nmb_name): Remove scope parameter and
1196         use global_scope instead.
1197         * samba/libsmb/namequery.c: Adjust make_nmb_name() calls.
1198         * samba/include/proto.h: Adjust make_nmb_name() declaration.
1200         From samba 2.0.7 patchset.
1202         * samba/param/loadparm.c (lp_adduser_script): Commented out.
1203         (lp_deluser_script): Likewise.
1204         (lp_add_printer): Likewise.
1205         (lp_add_one_printer): Likewise.
1206         * samba/lib/util.c (reduce_name): Likewise.
1207         (transfer_file): Likewise.
1209         * smbfs.c (smbfs_do_connect): Adjust make_nmb_name() calls.
1211 2002-08-26  Pavel Roskin  <proski@gnu.org>
1213         * extfs/urar.in: Use rar if unrar is missing.
1214         From PLD Linux Distribution.
1216         * extfs/a: Use more portable way to redirect all output to
1217         /dev/null.  From PLD Linux Distribution.
1219 2002-08-24  Pavel Roskin  <proski@gnu.org>
1221         * vfs.c (vfs_parse_ls_lga): Better error message, avoid empty
1222         error messages.
1224 2002-08-23  Pavel Roskin  <proski@gnu.org>
1226         * Makefile.am: Use mcserv_LDFLAGS, not mcserv_LDADD for the
1227         libraries.
1229 2002-08-22  Pavel Roskin  <proski@gnu.org>
1231         * mcserv.c: Remove old-style Linux-only support for shadow
1232         passwords.
1233         * Makefile.am: Remove reference to SHADOWLIB.
1235 2002-08-21  Andrew V. Samoilov  <sav@bcs.zp.ua>
1237         * ftpfs.c (dir_load): Don't handle empty remote_path in special
1238         way.
1240 2002-08-19  Pavel Roskin  <proski@gnu.org>
1242         * direntry.c (vfs_s_get_line): Fix off-by-one buffer overflow.
1244         * fish.c (pipeopen): Use _exit(), not vfs_die() to terminate the
1245         child if execvp() fails.
1247         * sfs.c: Don't use flag EXECUTE_SETUID because it's being
1248         removed as insecure and EXECUTE_WAIT because it has no effect.
1249         * extfs.c: Likewise.
1251         * mcfs.c [!WITH_MCFS]: Disable most code.
1253 2002-08-18  Pavel Roskin  <proski@gnu.org>
1255         * vfs.h: Declare vfs_timeout and tar_gzipped_memlimit.
1257 2002-08-15  Pavel Roskin  <proski@gnu.org>
1259         * vfs.c (mc_def_getlocalcopy): Preserve existing extension.
1261         * direntry.c (vfs_s_getlocalcopy): Fix potentially dangerous
1262         strcpy().
1264         * extfs.c (s_readdir): Simplify.
1265         * direntry.c (vfs_s_readdir): Use vfs_dirent.
1266         * mcfs.c (mcfs_readdir): Likewise.
1267         * smbfs.c (smbfs_readdir): Likewise.
1268         * undelfs.c (undelfs_readdir): Use vfs_dirent and
1269         compute_namelen().
1271         * vfs.h: Introduce union vfs_dirent to ensure that we have
1272         enough space for the filename.
1273         * extfs.c (s_readdir): Use vfs_dirent.  Avoid strcpy().
1275         * direntry.c (vfs_s_readdir): Use compute_namelen().
1276         * extfs.c (s_readdir): Likewise.
1277         * mcfs.c (mcfs_readdir): Likewise.
1278         * smbfs.c (smbfs_readdir): Likewise.
1280 2002-08-14  Pavel Roskin  <proski@gnu.org>
1282         * vfs.h [!USE_VFS]: Declare mc_setctl as static inline function
1283         to fix warnings.
1285 2002-08-06  Andrew V. Samoilov  <kai@cmail.ru>
1287         * smbfs.c (myumask): Removed. It is only written and never read.
1288         (smbfs_init): Use PATH_SEP_STR and reformat.
1290 2002-08-01  Pavel Roskin  <proski@gnu.org>
1292         * mcserv.c: Remove all references to MAD.
1293         * vfs.c: Likewise.
1295 2002-07-31  Andrew V. Samoilov  <kai@cmail.ru>
1297         * samba/libsmb/clientgen.c (cli_send_tconX): Add missing
1298         unix_to_dos() call.
1299         (cli_printjob_del): Commented out.
1300         (cli_print_queue): Ditto.
1301         * samba/lib/system.c (sys_waitpid): Ditto.
1302         * samba/lib/util.c (reg_split_key): Ditto.
1303         (reg_get_subkey): Ditto.
1305 2002-07-29  Andrew V. Samoilov  <kai@cmail.ru>
1307         * samba/configure.in: Don't check for union semun.
1308         * samba/include/includes.h [!HAVE_UNION_SEMUN]: Don't
1309         declare union semun.
1311 2002-07-26  Pavel Roskin  <proski@gnu.org>
1313         * direntry.c (vfs_s_find_entry_linear): Canonicalize path before
1314         searching.
1316 2002-07-25  Andrew V. Samoilov  <kai@cmail.ru>
1318         * xdirentry.h (vfs_s_fh.u.fish): Add append field.
1319         * fish.c (fish_fh_open): Care about append.
1320         (linear_open): Likewise.
1321         (fish_store): Append data to target file if append is true.
1323         * mcserv.c [HAVE_MAD]: Include "../src/mad.c" at the end of
1324         file to fix compilation.
1325         (main): Add mad_init() and mad_finalize().
1327 2002-07-19  Pavel Roskin  <proski@gnu.org>
1329         * ftpfs.c: Don't use SUP.home, use SUP.cwdir.
1330         * fish.c: Likewise.
1331         (dir_load): Update SUP.cwdir.
1332         * xdirentry.h: Remove "home" field for fish and ftpfs.
1334         * xdirentry.h: Get rid of ifree(), it's equivalent to g_free().
1335         * direntry.c: Likewise.
1336         * fish.c: Likewise.
1337         * ftpfs.c: Likewise.
1339         * fish.c (fish_fill_names): New function, replacement for
1340         generic vfs_s_fill_names() which didn't work right with fish.
1342         * undelfs.c (undelfs_opendir): Use parametrized messages without
1343         VFS name for success and failure.
1344         * fish.c (dir_load): Use new messages from undelfs.c, indicate
1345         success by printing "done".
1346         * ftpfs.c (dir_load): Likewise.
1348 2002-07-15  Pavel Roskin  <proski@gnu.org>
1350         * cpio.c (cpio_read_crc_head): Undo change in the error message.
1352         * ftpfs.c: Replace bzero and bcopy with memset and memcpy.
1353         * mcfs.c: Likewise.
1354         * mcserv.c: Likewise.
1355         * smbfs.c: Likewise.
1356         * tar.c: Likewise.
1358 2002-07-14  Pavel Roskin  <proski@gnu.org>
1360         * fish.c (open_archive_int): Don't combine "export" and
1361         assignment into one command - it's not portable.  Set LC_TIME
1362         to "C" as well.
1364         * fish.c (open_archive_int): Set remote locale to C, otherwise
1365         timestamps cannot be parsed in some locales.
1367 2002-07-12  Pavel Roskin  <proski@gnu.org>
1369         * fish.c (file_store): Reduce input block size to 256 bytes,
1370         otherwise dd gets partial blocks.
1372         * ftpfs.c (login_server) [HSC_PROXY]: Fix crash.
1374         * ftpfs.c (ftp_split_url): Implement looking up password in
1375         .netrc for known user.
1377         * ftpfs.c (ftp_split_url): Don't expect lookup_netrc() to always
1378         return a username.
1379         (netrc_has_incorrect_mode): Don't free anything, it can result
1380         in freeing some variables twice.
1381         (find_machine): New function to find matching "machine" or
1382         "default" token.
1383         (lookup_netrc): Eliminate external loop - scan for login and
1384         password, but don't fallback to another string in case of
1385         trouble.
1387         * ftpfs.c: Introduce enum keyword_t to improve readability.
1388         (netrc_next): Fix return value for unknown keywords.
1389         (lookup_netrc): Remove special processing of "*netrc*".
1391         * ftpfs.c (ftp_split_url): Move protection against pass being
1392         NULL ...
1393         (lookup_netrc): ... here.
1395 2002-07-11  Pavel Roskin  <proski@gnu.org>
1397         * xdirentry.h: Eliminate use_proxy field.
1398         * ftpfs.c (open_archive_int): Use SUP.proxy instead of
1399         SUP.use_proxy.
1400         (open_archive): Set SUP.proxy to ftpfs_proxy_host.
1401         * ftpfs.h: Eliminate unused structures.
1403         * vfs.h: Rename URL_DEFAULTANON to URL_ALLOW_ANON.
1404         * utilvfs.c (vfs_split_url): Return NULL as username if
1405         URL_ALLOW_ANON is set and no username is found in the URL,
1406         otherwise use current name.
1407         * ftpfs.c (ftp_split_url): New function - split URL and look up
1408         username and password if needed.
1409         (login_server): Use ftp_split_url().
1410         (archive_same): Likewise.
1412 2002-07-10  Pavel Roskin  <proski@gnu.org>
1414         * tcputil.h: Move use_netrc declaration ...
1415         * vfs.h: ... here.
1416         * ftpfs.c: Implement .netrc support unconditionally.
1417         (lookup_netrc): Make static.
1418         * utilvfs.c: Initialize default_is_netrc.
1419         From Thomas Zajic <zlatko@gmx.at>
1421         * direntry.c (vfs_s_open): Don't pass O_LINEAR to open() -
1422         this flag is for VFS only, and causes side effects in Cygwin.
1423         * extfs.c (extfs_open): Likewise.
1424         * sfs.c (sfs_open): Likewise.
1425         Reported by Pavel Tsekov <ptsekov@gmx.net>
1427 2002-07-03  Pavel Roskin  <proski@gnu.org>
1429         * ftpfs.c (setup_passive): Cast arguments to isdigit() to
1430         unsigned char for compatibility with non-GNU libc.
1431         * tar.c (from_oct): Likewise with isspace().
1432         Reported by Roland Illig <1illig@informatik.uni-hamburg.de>
1434 2002-07-03  Andrew V. Samoilov  <kai@cmail.ru>
1436         * extfs.c (extfs_fill_names): Generate filename#vfsname/dir
1437         instead of #vfsname/filename/dir.  Use PATH_SEP_STR.
1439         * sfs.c (sfs_free): Fix memory leak.
1440         (sfs_init): Use PATH_SEP_STR.
1442 2002-07-03  Pavel Roskin  <proski@gnu.org>
1444         * cpio.c (cpio_open_cpio_file): Fix type initialization.
1445         From Andrew V. Samoilov <kai@cmail.ru>
1447 2002-07-02  Pavel Roskin  <proski@gnu.org>
1449         * Makefile.am: Add samba to SUBDIRS.  Forcedly set DISTDIRS to
1450         extfs.  Remove parts that are now handled by samba/Makefile.
1451         * samba/Makefile.in: Add more empty targets for Automake
1452         compatibility.
1454         * ftpfs.c (send_ftp_command): Use "anonymous@" as default
1455         anonymous password.
1456         From Eduardo Perez Ureta <eperez@it.uc3m.es>
1458 2002-06-25  Pavel Roskin  <proski@gnu.org>
1460         * vfs.c: Add protection against NULL strings to all is_*()
1461         functions.
1463 2002-06-21  Andrew V. Samoilov  <kai@cmail.ru>
1465         * smbfs.c: Undefine PACKAGE_BUGREPORT, PACKAGE_NAME,
1466         PACKAGE_STRING, PACKAGE_TARNAME and PACKAGE_VERSION
1467         before including "samba/include/config.h" to prevent warnings.
1468         (smbfs_init): Set DEBUGLEVEL to 0.
1469         (do_connect): Rename to ...
1470         (smbfs_do_connect): ... this to avoid namespace clash and
1471         make static.  Make server const. Adjust all callers.
1472         (smbfs_add_dots): Remove.
1473         (smbfs_stat): Remove code duplication.
1474         (smbfs_lstat): Define as smbfs_stat.
1476         * samba/lib/system.c (sys_ftruncate): Commented out.
1477         * samba/lib/util.c (set_filelen): Likewise.
1478         (setbuffer): Likewise.
1480         * Makefile.am (SAMBA_DIST): Remove tests/ftruncate.c
1481         * samba/tests/ftruncate.c: Removed.
1482         * samba/configure.in: Don't check if ftruncate() can
1483         extend a file.
1485 2002-06-06  Andrew V. Samoilov  <kai@cmail.ru>
1487         * cpio.c (cpio_read_oldc_head): Use char[] for buf instead
1488         of char*[].  Remove unneeded casts.  Fix error message.
1489         (cpio_create_entry): G_free name.  Fix offset calculation
1490         for symbolic links.
1492 2002-05-22  Pavel Roskin  <proski@gnu.org>
1494         * Makefile.am (mcserv_SOURCES): Remove $(top_srcdir)/src/mad.c,
1495         it breaks "make distcheck".
1497         * Makefile.am: Set samba_libsamba_a_SOURCES to an empty value
1498         to override the default.
1500 2002-05-22  Andrew V. Samoilov  <kai@cmail.ru>
1502         * xdirentry.h (vfs_s_fh.u.ftp): Add append field.
1503         (vfs_s_data.file_store): Change second argument
1504         to (vfs_s_fh *fh).
1505         * direntry.c (vfs_s_close): Adjust.
1506         * fish.c (file_store): Likewise.
1507         * ftpfs.c (file_store): Likewise.  Use "APPE" if
1508         fh->u.ftp.append is true.
1509         (linear_start): Care about fh->u.ftp.append.
1510         (ftpfs_fh_open): Likewise.
1512         * fish.c (fish_fh_open): Generate fh->ino->localname
1513         if this one is NULL and file is opened for writing only.
1514         * ftpfs.c (ftpfs_fh_open): Likewise if control_connection_buzy
1515         is true.
1517 2002-05-21  Andrew V. Samoilov  <kai@cmail.ru>
1519         * direntry.c (vfs_s_retrieve_file): Please, care about
1520         fish.local_stat ...
1521         * fish.c (linear_close): ... here.
1523         * ftpfs.c (linear_read): Unset control_connection_buzy on EOF.
1524         (ftpfs_fh_close): Call vfs_s_invalidate ().
1526         * fish.c (fish_fh_open): Don't retrieve file if it is
1527         opened for writing only.
1529 2002-05-17  Andrew V. Samoilov  <kai@cmail.ru>
1531         * xdirentry.h (vfs_s_super): Add control_connection_buzy
1532         field to ftp struct.
1534         * ftpfs.c (linear_start): Set control_connection_buzy.
1535         (linear_abort): Unset control_connection_buzy.
1536         (ftpfs_fh_open): Don't retrieve file if it is
1537         opened for writing only.  Open data connection as
1538         fh->handle and unlink/unset local temporary file
1539         if control connection isn't buzy.
1540         (ftpfs_fh_close): New function to serve opened in
1541         ftpfs_fh_open() data connection.  Unset fh->changed
1542         to prevent MEDATA->file_store() call from vfs_s_close().
1544         * direntry.c (vfs_s_read): Move MEDATA->linear_start() ...
1545         (vfs_s_open): ... here.
1547         * samba/include/includes.h: Eliminate all references to
1548         HAVE_LIBREADLINE.
1550 2002-05-14  Andrew V. Samoilov  <kai@cmail.ru>
1552         * Makefile.am (noinst_LIBRARIES): Add samba/libsamba.a
1553         if USE_SAMBA_FS is true.
1554         (libvfs-mc.a): Don't merge object files with libsamba.a.
1556 2002-05-13  Andrew V. Samoilov  <kai@cmail.ru>
1558         * Makefile.am (mcserv_SOURCES): Add $(top_srcdir)/src/mad.c.
1560         * vfs.c (MC_RENAMEOP): Make arguments const.
1561         * vfs.h (mc_rename): Adjust declaration.
1562         (mc_link): Likewise.
1564 2002-05-11  Andrew V. Samoilov  <kai@cmail.ru>
1566         * samba/configure.in: Add AC_SYS_LARGEFILE.
1567         Don't check atexit, setreuid, setregid, setegid and setluid.
1569 2002-04-31  Pavel Roskin  <proski@gnu.org>
1571         * samba/acconfig.h: Remove.
1572         * Makefile.am: Remove references to samba/acconfig.h.
1573         * samba/Makefile.in: Likewise.
1574         * samba/aclocal.m4: Remove unused test AC_DIRENT_D_OFF.
1575         * samba/configure.in: Add descriptions to AC_DEFINE calls.
1576         Remove unused tests.
1577         * samba/include/includes.h: Cleanup for the symbols that
1578         samba/configure.in doesn't define.
1579         * samba/lib/netmask.c: Likewise.
1581         * samba/include/includes.h: Eliminate all references to
1582         HAVE_EXPLICIT_LARGEFILE_SUPPORT.
1583         * samba/lib/system.c: Likewise.
1585 2002-04-24  Andrew V. Samoilov  <kai@cmail.ru>
1587         * vfs.c (vfs_print_stats): s/transfered/transferred/
1589         * samba/lib/signal.c: Remove.
1591         * samba/lib/debug.c (sig_usr2): Commented out.
1592         (sig_usr1): Likewise.
1593         * samba/lib/util_file.c (gotalarm): Commented out.
1594         (gotalarm_sig): Likewise.
1595         (do_file_lock): Likewise.
1596         (file_lock): Likewise.
1597         (file_unlock): Likewise.
1598         (startfilepwent): Likewise.
1599         (endfilepwent): Likewise.
1601         * samba/Makefile.in (SAMBAFILES): Remove lib/signal.o.
1602         * Makefile.am (SAMBA_DIST): Remove lib/signal.c.
1604 2002-04-19  Andrew V. Samoilov  <kai@cmail.ru>
1606         * vfs.c (vfs_init) [!WITH_MCFS]: Don't register mcfs.
1608 2002-04-12  Pavel Roskin  <proski@gnu.org>
1610         * extfs/trpm: update to work with rpm 4.x.
1611         Reported by m.lusini@palazzochigi.it
1612         https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=62306
1614 2002-04-12  Andrew V. Samoilov  <kai@cmail.ru>
1616         * cpio.c (cpio_skip_padding): Handle old ASCII format.
1618 2002-04-08  Pavel Roskin  <proski@gnu.org>
1620         * samba/configure.in: Require Autoconf 2.52 to make Debian
1621         wrapper around Autoconf happy.
1622         From Björn Eriksson <bjorn@bjornen.nu>
1624 2002-03-06  Andrew V. Samoilov  <kai@cmail.ru>
1626         * direntry.c (vfs_s_resolve_symlink): Comment out buggy code.
1627         (vfs_s_retrieve_file): Set fh->handle to -1.
1628         (vfs_s_read): Don't manipulate with FH->handle if it is -1.
1629         (vfs_s_write): Likewise.
1630         (vfs_s_close): Likewise.
1632 2002-02-27  Andrew V. Samoilov  <kai@cmail.ru>
1634         * samba/lib/debug.c: Remove syslog support.
1636 2002-02-19  Pavel Roskin  <proski@gnu.org>
1638         * Makefile.am: Don't compile mcserv if VFS is disabled.
1639         * extfs/Makefile.am: Don't install anything if VFS is disabled.
1641         * extfs.c (extfs_open): Only create a new entry if it has not
1642         been found and O_CREAT is set.  Consider file as changed only
1643         if it has been successfully created.
1644         (extfs_getlocalcopy): Open file only for reading.  This prevents
1645         marking file as changed.  Actually use the has_changed argument.
1646         Reported by Nerijus Baliunas <nerijus@users.sourceforge.net>
1648 2002-02-12  Pavel Roskin  <proski@gnu.org>
1650         * extfs/lslR.in: Fix parsing of old entries (with year number).
1651         From Daniel Skarda <0rfelyus@atrey.karlin.mff.cuni.cz>
1653 2002-02-08  Andrew V. Samoilov  <kai@cmail.ru>
1655         * direntry.c (vfs_s_retrieve_file): Use off_t for total
1656         and stat_size.
1657         (vfs_s_resolve_symlink): Use snprintf instead of sprintf.
1659         * vfs.c (vfs_print_stats): Use off_t for have and need.
1660         Cast `have' to double to eliminate negative percent(s).
1661         Fix print_vfs_message string formats.
1663         * vfs.h (vfs_print_stats): Adjust declaration.
1665         * ftpfs.c (file_store): Use off_t for total.
1666         Fix print_vfs_message string format.
1668 2002-02-07  Andrew V. Samoilov  <kai@cmail.ru>
1670         * ftpfs.c (dir_load): Speed up cd_first calculation.
1671         (ftpfs_flushdir): Resurrect.
1673 2002-02-06  Andrew V. Samoilov  <kai@cmail.ru>
1675         * ftpfs.c (dir_load): Use "LIST -la" instead of "LIST -la ."
1676         to eliminate problem with wu-ftpd.
1677         Close sock on error. Eliminate goto.
1679         (ftpfs_chmod): Don't ignore errors.
1681         (reconnect): Restore cwdir if login_server fails.
1683 2002-02-01  Andrew V. Samoilov  <kai@cmail.ru>
1685         * ftpfs.c (translate_path): Remove leading slash(es) more
1686         carefully.
1687         (initconn): Check getsockname() return value.
1688         Eliminate goto.
1689         (linear_abort): Make ipbuf const array.
1691 2002-01-29  Andrew V. Samoilov  <kai@cmail.ru>
1693         * ftpfs.c (reconnect): New function to restore closed connection.
1694         (command): Use reconnect if EPIPE received.
1695         (dir_load): Eliminate recursion.
1696         (login_server): Constify netrcpass parameter.
1697         (is_same_dir): Constify path parameter.
1699         * samba/lib/charset.c (cp_850): Make const array.
1700         (cp_932): Ditto.
1701         (codepage_p): Likewise.
1702         * samba/lib/debug.c (priority_map): Make const array.
1703         * samba/lib/username.c (get_home_dir): Make pass auto.
1704         * samba/lib/util.c (become_daemon): Commented out.
1705         (yesno): Likewise.
1707 2002-01-24  Pavel Roskin  <proski@gnu.org>
1709         * cpio.c: Don't include glib.h directly.
1711 2002-01-22  Pavel Roskin  <proski@gnu.org>
1713         * extfs/uzip: Fix unsafe printf.
1714         Reported by Jari Karppinen <jakarppi@mail.student.oulu.fi>
1716 2002-01-22  Andrew V. Samoilov  <kai@cmail.ru>
1718         * ftpfs.c (ftpfs_chmod): Add missed '/'.
1720 2002-01-21  Pavel Roskin  <proski@gnu.org>
1722         * vfs.h: Remove all tricks with system headers, they all should
1723         be in global.h.
1724         * cpio.c: Include utilvfs.h earlier.
1725         * tar.c: Likewise.
1727         * vfs.h: Include dirent.h only if it's present.
1729 2002-01-21  Andrew V. Samoilov  <kai@cmail.ru>
1731         * vfs.h: Spelled.
1732         * vfs.c (mc_return_cwd): Fix comment.  Check whatever mc_stat
1733         returns.  Make mc_return_cwd static const char *.
1734         Reorder if statement to eliminate unneeded mc_stat calls.
1736 2002-01-17  Pavel Roskin  <proski@gnu.org>
1738         * vfs.h: Remove OS/2 specific code.
1740 2002-01-11  Andrew V. Samoilov  <kai@cmail.ru>
1742         * Makefile.am (AM_CFLAGS): Add -DCONFIGDIR=\""@configdir@"\"
1743         if smbfs support is enabled.
1745         * smbfs.c (smbfs_init): Use CONFIGDIR for smb.conf.
1747 2002-01-02  Pavel Roskin  <proski@gnu.org>
1749         * Makefile.am: Add *clean-local targets to take care of the
1750         samba directory.
1752         * samba/configure.in: Use explicit AC_CONFIG_AUX_DIR because
1753         this setting is not inherited from the top-level configure.
1755 2001-12-31  Pavel Roskin  <proski@gnu.org>
1757         * Make-mc.in: convert to ...
1758         * Makefile.am: ... this.
1760         * Makefile.am: rename to ...
1761         * Make-alone.am: ... this.  Automake 1.5b doesn't allow Makefile
1762         and Makefile.am to coexist peacefully unless the former is
1763         generated from the later.
1764         * Make-mc.in: Remove all references to the standalone VFS.
1766 2001-12-18  Pavel Roskin  <proski@gnu.org>
1768         * extfs/ulha.in: Support for "[unknown]" and other permissions
1769         in brackets.  Pass the date unchanged - mc can now deal with it.
1770         Use "lha lq" to list the archive and don't remove headers and
1771         footers of the listing.
1773 2001-11-14  Pavel Roskin  <proski@gnu.org>
1775         * undelfs.c: Use ext2_ino_t to avoid warnings with e2fsprogs
1776         1.20 and newer.
1778 2001-11-13  Andrew V. Samoilov  <kai@cmail.ru>
1780         * samba/acconfig.h: Remove WITH_SYSLOG.
1781         * samba/lib/system.c (sys_chroot): Removed.
1782         * samba/configure.in: Remove RUNPROG.  Don't check
1783         for chroot and execl functions.
1784         Remove syslog logging support.
1785         Add --with-codepagedir and --with-configdir from samba 2.2.2.
1787         * samba/Makefile.in: Use configdir and codepagedir.
1789 2001-11-08  Pavel Roskin  <proski@gnu.org>
1791         * Make-mc.in (SAMBA_DIST): Remove lib/getsmbpass.c.
1793 2001-11-05  Andrew V. Samoilov  <kai@cmail.ru>
1795         * smbfs.c (smbfs_add_dots): New function. Insert a "." and ".."
1796         entries into the linked list.
1797         (smbfs_loaddir): Call smbfs_add_dots() for shares or servers.
1798         (smbfs_get_free_bucket): Eliminate time.
1799         (fake_share_stat): Make path const.
1801         * samba/configure.in: Don't check whether getpass
1802         should be replaced.
1804 2001-11-02  Andrew V. Samoilov  <kai@cmail.ru>
1806         * vfs.c (mc_return_cwd): Memory leak fixed.
1808 2001-11-01  Andrew V. Samoilov  <kai@cmail.ru>
1810         * samba/smblib/pwd_cache.c (pwd_read): Commented out.
1811         * samba/Makefile.in (SAMBAFILES): Remove lib/getsmbpass.o.
1812         * samba/lib/getsmbpass.c: Removed.
1814 2001-10-30  Andrew V. Samoilov  <kai@cmail.ru>
1816         * smbfs.c: Include <config.h> before everything else.
1817         Don't include "tcputil.h".
1818         (myhostname): Declare extern.
1820         (loaddir): Simplify.
1821         (fake_share_stat): Declare server_url const.
1822         Use "%4o" for st_mode.
1823         (fake_server_stat): Likewise.  Return -1 if server_list != True.
1825         (get_master_browser): Declare ipzero extern.
1826         By David Kaelbling <drk@sgi.com>.
1827         http://bugzilla.gnome.org/show_bug.cgi?id=60933
1829         * cpio.c (cpio_read_bin_head): Release name if mc_read() fails.
1830         (cpio_read_crc_head): Likewise.
1832 2001-10-25  Andrew V. Samoilov  <kai@cmail.ru>
1834         * cpio.c (cpio_read_crc_head): Fix buffer overflow.
1835         (cpio_read_oldc_head): Likewise.
1836         By David Kaelbling <drk@sgi.com>.
1837         http://bugzilla.gnome.org/show_bug.cgi?id=60933
1839         * (cpio_read_oldc_head): Release name if mc_read() fails.
1841 2001-10-24  Andrew V. Samoilov  <kai@cmail.ru>
1843         * tcputil.c (rpc_get): Add missing va_end()s.
1844         Fix memory leaking.
1845         * smbfs.h: Declare smbfs_set_debug().
1847 2001-10-20  Pavel Roskin  <proski@gnu.org>
1849         * ftpfs.c (command): Declare with the printf attribute.
1850         * undelfs.c: Remove declaration of print_vfs_message().
1852         * fish.c (file_store): Fix incorrect format string
1853         for print_vfs_message().
1854         * ftpfs.c (file_store): Likewise.
1856 2001-10-19  Pavel Roskin  <proski@gnu.org>
1858         * fish.c (command): Declare with the printf attribute to enable
1859         warnings in gcc.
1860         (file_store): Cast all expressions with file sizes to unsigned
1861         long.  This should fix uploading when large file support is on.
1862         File size is limited to 4096 * ULONG_MAX for now.
1864 2001-10-18  Andrew V. Samoilov  <kai@cmail.ru>
1866         * samba/configure.in: Don't check readline.h, history.h and
1867         libreadline.
1869 2001-10-16  Andrew V. Samoilov  <kai@cmail.ru>
1871         * samba/libsmb/clientgen.c (cli_RNetShareEnum): Fix Win2k
1872         "out of server memory" error. From samba 2.0.7 patchset.
1874 2001-10-07  Pavel Roskin  <proski@gnu.org>
1876         * vfs.c (vfs_parse_filetype): Fix fallback to fifo if sockets
1877         are not supported locally.  Support Solaris doors, also fall
1878         back to fifo.
1880 2001-10-02  Andrew V. Samoilov  <kai@cmail.ru>
1882         * sfc.c (sfs_getid): Don't use vfs_die(), return (vfsid)(-1)
1883         instead.
1885 2001-10-01  Pavel Roskin  <proski@gnu.org>
1887         * vfs.h [!USE_VFS]: Define macros with no effect to an empty
1888         statement "do { } while (0)".
1890 2001-09-30  Pavel Roskin  <proski@gnu.org>
1892         * samba/acconfig.h: Only leave symbols required by Autoconf-2.52.
1894 2001-09-17  Pavel Roskin  <proski@gnu.org>
1896         * vfs.c: Manually expand macros for mc_stat(), mc_lstat() and
1897         mc_fstat() because they don't expand correctly on Solaris 8 with
1898         large file support.
1900 2001-09-10  Pavel Roskin  <proski@gnu.org>
1902         * Make-mc.in: Use USE_VFS conditional instead of relying on
1903         LIBVFS.
1905 2001-09-07  Pavel Roskin  <proski@gnu.org>
1907         * Make-mc.in: Include necessary parts of Make.common to
1908         eliminate the later.
1910 2001-08-23  Pavel Roskin  <proski@gnu.org>
1912         * names.c (finduname): Don't use HAVE_GETPWUID - it's never
1913         defined.  Don't redeclare getpwuid().
1914         (findgname): Don't use HAVE_GETGRGID - it's never defined.
1915         Don't redeclare getgrgid().
1917         * fish.c: Remove useless semicolons after functions.
1919 2001-08-19  Pavel Roskin  <proski@gnu.org>
1921         * vfs.c (vfs_parse_ls_lga): Warning fix if st_nlink is unsigned.
1922         Disallow st_nlink = 0.
1924 2001-08-18  Pavel Roskin  <proski@gnu.org>
1926         * cpio.c (cpio_read_head): Check return value of cpio_find_head,
1927         because it's not equal to super->u.cpio.type in case of errors.
1929 2001-08-16  Pavel Roskin  <proski@gnu.org>
1931         * direntry.c (vfs_s_free_super): Remove i18n on commented out
1932         developer-only code.
1934         * extfs.c (extfs_init): Internationalize error message, it's
1935         already in sfs.c.
1937 2001-08-11  Pavel Roskin  <proski@gnu.org>
1939         * sfs.c (sfs_init): Use g_free(), not free() on mc_sfsini.
1941 2001-08-07  Pavel Roskin  <proski@gnu.org>
1943         * extfs.h: Move private structures ...
1944         * extfs.c: ... here.
1946         * extfs.h (struct entry): Remove unused `has_changed' field.
1947         It's only written but never read.
1948         (struct inode): Likewise.
1949         * extfs.c: All dependencies changed.
1950         (extfs_open): Mark file as changed if it's open for writing.
1952 2001-08-07  Oskar Liljeblad  <osk@hem.passagen.se>
1954         * extfs/uzip: Update to version 1.4.0.
1955         * extfs/README.uzip: Likewise.
1957 2001-08-06  Andrew V. Samoilov  <kai@cmail.ru>
1959         * smbfs.c: Eliminate smbfs_get_free_bucket_init().  convert_path()
1960         gives malloc()ed filename, so this memory must be released after use.
1962         (reconnect): Fix segmentation fault.
1963         (smbfs_loaddir): Don't g_stirrup() path.
1964         (smbfs_get_free_bucket): Eliminate smbfs_get_free_bucket_init() and
1965         smbfs_connections initialization.
1966         (smbfs_open_link): Likewise. Release host after get_master_browser().
1967         (get_stat_info): Fix unneeded g_startup/g_free calls.
1968         (smbfs_mkdir): Release path after use.
1969         (smbfs_mkdir): Likewise.
1970         (smbfs_open): Fix memory leak.
1971         (smbfs_unlink): Likewise. Fix error message.
1972         (smbfs_rename): Fix memory leaks.
1973         (smbfs_stat): Fix url parsing.
1975         * samba/lib/charging.c (unix2dos_format): Fix possible buffer overflow.
1976         (dos2unix_format): Likewise.
1978         * ftpfs.c (ftpfs_fill_names): New function.
1979         (vfs_ftpfs_ops): Use ftpfs_fill_names instead of vfs_s_fill_names.
1981 2001-08-03  Andrew V. Samoilov  <kai@cmail.ru>
1983         * utilvfs.c, vfs.h (vfs_split_url): Make path parameter const.
1985         * xdirentry.h (struct vfs_s_super): Remove u.ftp.result_pending field.
1986         * ftpfs.h (struct connection): Remove result_pending field.
1988         * samba/libsmb/clientgen.c (cli_chkpath): Fix possible buffer overflow.
1989         * smbfs.c (new_dir_entry): New function with repeated code from
1990         browsing_helper(), loaddir_helper() and server_browsing_helper().
1991         (browsing_helper): Use new_dir_entry().
1992         (loaddir_helper): Likewise.
1993         (server_browsing_helper): Likewise.
1995         (cached_lstat_info): Eliminated.
1996         (smbfs_readdir): Make dirent_dest static const.
1997         Eliminate cached_lstat_info.
1998         (smbfs_open_link): Make user parameter const. Fix memory leak.
1999         (fake_server_stat): Make path parameter const. Simplify.
2000         (smbfs_fstat): Set my_errno to EFAULT before return.
2002 2001-08-01  Pavel Roskin  <proski@gnu.org>
2004         * Make-mc.in: Make it possible to run "make install" before
2005         "make all".  Use more Automake-compatible target names.
2007 2001-08-01  Andrew V. Samoilov  <kai@cmail.ru>
2009         * smbfs.c: Undefine VERSION to prevent warning. Comments fixes.
2010         (do_connect): Simplify.
2011         (get_stat_info): Simplify. Eliminate another fake_stat.
2012         (smbfs_chdir): Release remote_dir after use.
2013         (smbfs_stat): Likewise. Fix another 2 memory leaks.
2014         (smbfs_mkdir): Release remote_file after use.
2015         (smbfs_rmdir): Likewise.
2016         (smbfs_open): Likewise. Indentation fixes.
2017         (smbfs_unlink): Likewise.
2018         (smbfs_rename): Release rb and ra after use.
2019         (search_dir_entry): Make text parameter const.
2020         (smbfs_get_host_and_username): Make macro.
2022 2001-07-20  Pavel Roskin  <proski@gnu.org>
2024         * extfs.c (extfs_init) [GTK]: Use mc_home instead of LIBDIR.
2025         From Ludovic Drolez <ludovic.drolez@freealter.com>.
2027 2001-07-17  Pavel Roskin  <proski@gnu.org>
2029         * vfs.c (mc_return_cwd): Use g_get_current_dir().
2031 2001-07-15  Pavel Roskin  <proski@gnu.org>
2033         * smbfs.c: Rename authinfo to smb_authinfo and
2034         authinfo_get_authinfo_from_user() to vfs_smb_get_authinfo()
2035         and remove their definitions.
2036         * vfs.h: Declare smb_authinfo and vfs_smb_get_authinfo().
2038 2001-07-10  Pavel Roskin  <proski@gnu.org>
2040         * extfs.c: Include contents of shared_tar_ext.c - it's no
2041         longer shared.
2042         * shared_tar_ext.c: Remove.
2043         * Make-mc.in (VFSSRCS): Remove shared_tar_ext.c.
2045         * smbfs.c (vfs_smbfs_ops): Use short name "smbfs" for the
2046         filesystem. Don't translate it.
2048 2001-07-09  Pavel Roskin  <proski@gnu.org>
2050         * tar.c (ReadStatus): Fix compilation on AIX.
2051         From Dan McNichol <mcnichol@austin.ibm.com>.
2053         * extfs/mailfs: Strip trailing DOS newlines from mail files.
2054         From Christian Gennerat <christian.gennerat@vz.cit.alcatel.fr>
2056         * fish.c (fish_chown): Do nothing and return success if
2057         getpwuid() or getgrgid() fails.
2059 2001-07-05  Pavel Roskin  <proski@gnu.org>
2061         * README.fish: Spelling fixes.
2063 2001-06-29  Pavel Roskin  <proski@gnu.org>
2065         * Make-mc.in: Don't ever link mcserv with libintl - it must not
2066         depend on it.
2068 2001-06-27  Andrew V. Samoilov  <sav@bcs.zp.ua>
2070         * smbfs.c: Include <config.h>. Make all internal variables static.
2071         (get_stat_info): Eliminate fake_stat, memory leak fixed.
2072         (IPC, URL_HEADER): Make static const.
2073         (smbfs_stat): Fix segmentation violation.
2074         (statfile_helper): Allocate memory for single_entry once. It is never
2075         freed now, and only my_stat element of this structure is used.
2077 2001-06-26  Pavel Roskin  <proski@gnu.org>
2079         * vfs.h: Don't include <config.h>.
2081 2001-06-25  Pavel Roskin  <proski@gnu.org>
2083         * cpio.c: Include <config.h> before everything else.
2084         * direntry.c: Likewise.
2085         * fish.c: Likewise.
2086         * ftpfs.c: Likewise.
2087         * local.c: Likewise.
2088         * tar.c: Likewise.
2089         * utilvfs.h: Don't include <config.h> - it should be included
2090         in all C files instead.
2091         * xdirentry.h: Likewise.
2093 2001-06-19  Pavel Roskin  <proski@gnu.org>
2095         * local.c (local_telldir): Warn and abort if telldir() is not
2096         available.
2097         (local_seekdir): Warn and abort if seekdir() is not available.
2099 2001-06-18  Pavel Roskin  <proski@gnu.org>
2101         * tcputil.c (sig_pipe): Use the same declaration with one int
2102         argument - it's used everywhere else and it fixes a warning on
2103         systems unlisted in the ifdef, e.g. OpenBSD.
2105 2001-06-14  Pavel Roskin  <proski@gnu.org>
2107         * ftpfs.c: Declare functions without declarations static. Don't
2108         omit `void' in declarations.
2109         * cpio.c: Likewise.
2110         * direntry.c: Likewise.
2111         * extfs.c: Likewise.
2112         * mcfs.c: Likewise.
2113         * tar.c: Likewise.
2114         * vfs.c: Likewise.
2115         * vfs.h: Likewise.
2116         * mcserv.c: Likewise. Remove unused functions.
2118         * util-alone.c: Use indented #error.
2119         * vfs.h: Use indented #warning instead of hiding it from non-gcc
2120         compilers.
2122 2001-06-11  Pavel Roskin  <proski@gnu.org>
2124         * cpio.c (vfs_cpiofs_ops): Use short name for the filesystem.
2125         This avoids creating long filenames in dirent.c when the "name"
2126         field is used.
2127         * extfs.c (vfs_extfs_ops): Likewise.
2128         * fish.c (vfs_fish_ops): Likewise.
2129         * ftpfs.c (vfs_ftpfs_ops): Likewise.
2130         * local.c (vfs_local_ops): Likewise.
2131         (vfs_nil_ops): Likewise.
2132         * mcfs.c (vfs_mcfs_ops): Likewise.
2133         * sfs.c (vfs_sfs_ops): Likewise.
2134         * tar.c (vfs_tarfs_ops): Likewise.
2135         * undelfs.c (vfs_undelfs_ops): Likewise.
2137 2001-06-07  Pavel Roskin  <proski@gnu.org>
2139         * sfs.c (sfs_init): Change some warning messages to simplify
2140         their translation.
2142 2001-06-06  Pavel Roskin  <proski@gnu.org>
2144         * shared_ftp_fish.c: Remove.
2145         * Make-mc.in: Remove shared_ftp_fish.c.
2146         * Makefile.am: Likewise.
2148 2001-06-02  Pavel Roskin  <proski@gnu.org>
2150         * vfs.c (vfs_canon): s/canonize/canonicalize/.
2152 2001-06-01  Andrew V. Samoilov  <sav@bcs.zp.ua>
2154         * ftpfs.h: Declare use_netrc, ftpfs_retry_seconds,
2155         ftpfs_first_cd_then_ls, ftpfs_use_passive_connections and
2156         ftpfs_use_unix_list_options.
2158         * vfs.c [VFS_STANDALONE]: Undefine WITH_SMBFS, they are mutually
2159         exclusive now.
2160         (is_week): Unmade week static.
2161         (is_month): Unmade month static.
2162         (vfs_parse_ls_lga): Optimize memory usage.
2164         * .cvsignore: *.sor added.
2165         * sfs.c (sfs_init): Optimized.
2167         * vfs/samba/lib/util_sock.c (socket_options): Made static const.
2169 2001-05-30  Ludovic Drolez  <ludovic.drolez@freealter.com>
2171         * sfs.c (sfs_init): Don't hardcode location of sfs.ini,
2172         use mc_home to make mc relocatable.
2173         * util-alone.c (shell): ... here
2175 2001-05-27  Pavel Roskin  <proski@gnu.org>
2177         * fish.c: Redirect stderr of all commands to /dev/null.
2179 2001-05-25  Pavel Roskin  <proski@gnu.org>
2181         * sfs.c (vfs_sfs_ops): Typo fix.
2183 2001-05-22  Pavel Roskin  <proski@gnu.org>
2185         * vfs.c (vfs_split_text): Fill `columns' with zeroes before
2186         writing new data into it.
2188         * fish.c (free_archive): Use `exit' instead of `logout' - the
2189         later fails under non-login shells.
2190         (pipeopen): Redirect stderr of ssh to /dev/null.
2191         From Rich Roth:
2192         (dir_load): Redirect stderr of ls to /dev/null.
2193         (linear_start): Likewise.
2195 2001-05-22  Andrew V. Samoilov  <sav@bcs.zp.ua>
2197         * Make-mc.in (mostlyclean): Remove $(VFSSOOBJS).
2198         (clean): Remove *.so.
2200         * smbfs.c: Include utilvfs.h instead of ../config.h, ../src/main.h,
2201         ../src/tty.h and ../src/global.h.
2203         (password, username): Made static.
2204         (is_error): Commented out.
2205         (loaddir_helper): Don't ignore hidden files, style fixes.
2206         (browsing_helper): typestr declared as char *, fstrcpy replaced by =.
2208         (do_connect): Call cli_shutdown() and authinfo_remove() if
2209         cli_session_setup() fails. It is not good idea to remember
2210         wrong username/password.
2212         (smbfs_free_dir): Nested between #ifdef SMBFS_FREE_DIR ... #endif.
2213         (smbfs_readdir): #ifdef SMBFS_FREE_DIR used instead of C comment.
2215 2001-05-22  Pavel Roskin  <proski@gnu.org>
2217         * sfs.c (redirect): Don't free the filename after failed
2218         mc_mkstemps() - it's not needed anymore.
2220 2001-05-21  Pavel Roskin  <proski@gnu.org>
2222         * direntry.c (vfs_s_open): Use mc_mkstemps. Create and close
2223         temporary file to reserve its name on the filesystem.
2224         (vfs_s_retrieve_file): Use mc_mkstemps().
2225         (g_tempnam): Remove.
2226         * extfs.c (extfs_open): Use mc_mkstemps().
2227         * sfs.c (redirect): Likewise.
2228         * shared_ftp_fish.c (_get_file_entry): Likewise.
2229         (retrieve_file): Likewise.
2230         * vfs.c (mc_def_getlocalcopy): Likewise.
2231         * xdirentry.h: Remove declaration of g_tempnam().
2233 2001-05-18  Pavel Roskin  <proski@gnu.org>
2235         * vfs.c (vfs_addstamp): Rename st1 to last_stamp. Initialize it
2236         with NULL to suppress compiler warning.
2238 2001-05-14  Pavel Roskin  <proski@gnu.org>
2240         * ftpfs.c: Warning fixes.
2242         * utilvfs.h: Include background.h.
2243         * cpio.c: Include utilvfs.h.
2245 2001-05-14  Pavel Machek  <pavel@bug.ucw.cz>
2247         * Make-mc.in: add possibility to build libvfs.so
2249 2001-04-19  Pavel Roskin  <proski@gnu.org>
2251         * extfs/rpm (mcrpmfs_list): Use cpio for the listing since the
2252         rpm output varies between versions.
2253         (mcrpmfs_copyout): Fix processing of CONTENTS.cpio. Match
2254         filenames beginning with "./" - they are used in the version 4
2255         packages.
2257 2001-04-17  Pavel Roskin  <proski@gnu.org>
2259         * fish.c (open_archive_int): Redirect stderr of start_fish_server
2260         to stdout so we don't get confused if it doesn't exist.
2262 2001-04-09  Andrew V. Samoilov  <sav@bcs.zp.ua>
2264         * samba/includes/proto.h, samba/libsmb/nterr.c (get_nt_error): return
2265         NULL when suitable error message can't be found as it is expected
2266         in cli_errstr(). Return type changed to const char *
2268         * smbfs.c (smbfs_fill_names): implemented
2270         (smbfs_stat): unneeded g_strdup/g_free calls removed
2271         (smbfs_loaddir): memory leaking fixed
2273         * samba/libsmb/clientgen.c (rap_errmap, prots): constified
2275 2001-04-06  Pavel Roskin  <proski@gnu.org>
2277         * Make-mc.in: Use a single variable SAMBA_DIST to hold all
2278         distributable samba files.
2280 2001-03-15  Andrew V. Samoilov  <sav@bcs.zp.ua>
2282         * samba/libsmb/smbdes.c: Undefine uchar before redefine it
2284         * smbfs.c (smbfs_close): Honor changed semantics for return value
2285         (on error -1 is expected).
2287         * (fs): It is at least strange use char * for counter. Changed to int
2289 2001-03-14  Pavel Roskin  <proski@gnu.org>
2291         * Make-mc.in: Use Automake conditional USE_SAMBA_FS.
2292         Remove any knowledge of SAMBAFILES. Merge object files with
2293         libsamba.a if USE_SAMBA_FS is true. Propagate "mostlyclean"
2294         to the `samba' directory. Don't ignore errors from ranlib.
2296         * samba/Makefile.in: Make *clean targets Automake-compatible.
2297         Don't ignore errors from `rm'.
2299         * samba/configure.in: Use AC_CHECK_TOOL to find AR.
2300         * samba/Makefile.in: Remove useless rules, including defunct
2301         dependency tracking. Create libsamba.a from the object files.
2303 2001-03-07  Pavel Roskin  <proski@gnu.org>
2305         * cpio.c (cpio_skip_padding): Warning fix.
2306         * fish.c (dir_load): Likewise.
2307         * mcfs.c: Likewise.
2309         * extfs/uzip: New file from Oskar Liljeblad.
2310         * extfs/README.uzip: Likewise.
2311         * extfs/Makefile.am: Adjust for constant uzip.
2313 2001-03-07  Pavel Machek  <pavel@bug.ucw.cz>
2315         * extfs/*uzip*: replace uzip with perl version by
2316         Oskar Liljeblad <osk@hem.passagen.se>
2318 2001-03-05  Andrew V. Samoilov  <sav@bcs.zp.ua>
2320         * vfs.[ch] (vfs_parse_ls_lga, vfs_parse_filemode): p constified
2321         (vfs_strip_suffix_from_filename): filename constified
2322         (vfs_parse_ls_lga): memory leaking fixed when line can't be parsed,
2323         chomping unified
2325 2001-03-04  Andrew V. Samoilov  <sav@bcs.zp.ua>
2327         * extfs/patchfs: LANG overrides LC_TIME at least in glibc,
2328         so use LC_ALL=C to override any locale
2329         * smbfs.c (smbfs_open_link): service initialized
2330         * (my_forget): new features of vfs_split_url used
2332 2001-03-01  Pavel Roskin  <proski@gnu.org>
2334         * extfs/uzip.in (mczipfs_list): Allow filenames with colons.
2335         Reported by Christian Gennerat.
2337 2001-02-28  Pavel Machek  <pavel@bug.ucw.cz>
2339         * vfs.c (mc_def_ungetlocalcopy): Cleanup of error handling.
2341 2001-02-27  Pavel Machek  <pavel@bug.ucw.cz>
2343         * vfs.c (mc_ungetlocalcopy): Do not ignore errors. (Courtesy of
2344         "K. Leif D. Van Horn" <leif@kaivo.com>)
2346 2001-02-23  Pavel Roskin  <proski@gnu.org>
2348         * extfs/lslR (mclslRfs_list): Don't use gawk-specific features.
2349         Don't hardcode gawk. Don't rely on the date format occupying a
2350         fixed number of fields.
2352         * extfs/uzip.in (mczipfs_list): Don't check zipinfo support on
2353         the real file - check usage info instead. Use more robust checks
2354         for valid lines. Suppress stderr from unzip. Workaround for jar
2355         files - fix mode for files ending with slash.
2357 2001-02-20  Pavel Roskin  <proski@gnu.org>
2359         * vfs.h: Include sys/timeb.h if it's present. Include time.h and
2360         sys/time.h as recommended by Autoconf documentation.
2361         * cpio.c: Remove all time-related includes - they are in vfs.h.
2362         * extfs.c: Likewise.
2363         * ftpfs.c: Likewise.
2364         * mcfs.c: Likewise.
2365         * mcserv.c: Likewise.
2366         * tar.c: Likewise.
2367         * util-alone.c: Likewise.
2368         * vfs.c: Likewise. Include xdirentry.h.
2370         * extfs.c: Include xdirentry.h. Undefine ERRNOR before
2371         redefining it.
2373 2001-02-19  Pavel Roskin  <proski@gnu.org>
2375         * shared_tar_ext.c (__find_entry): Make sure that the parent is a
2376         directory even if the child is not.
2378         * extfs/mailfs (parse_date): Correctly handle two-digit years
2379         between 1970 and 1999.
2381 2001-02-14  Pavel Roskin  <proski@gnu.org>
2383         * vfs.c (vfs_parse_filedate): Don't reset got_year to 0 while
2384         checking for ctime() format.
2385         From Peter Daum.
2387 2001-02-11  Pavel Roskin  <proski@gnu.org>
2389         * extfs/mailfs (parse_date): Workaround for Y2K bugs. Support
2390         for dates found in AOLMail(SM) messages. Accept single-digit
2391         hours and missing seconds. Provide a fallback if cannot parse
2392         the date.
2393         (process_header): Typo fix. Use \s instead of space in regular
2394         expressions.
2396 2001-02-10  Pavel Roskin  <proski@gnu.org>
2398         * extfs/uzip.in: Preserve permissions of FAT and NTFS archives,
2399         including the directory bit. This fixes crashes on some FAT
2400         archives.
2402 2001-02-09  Pavel Roskin  <proski@gnu.org>
2404         * samba/configure.in: Remove more useless tests.
2405         * samba/tests/crypttest.c: Remove.
2406         * samba/tests/fcntl_lock.c: Likewise.
2407         * samba/tests/shared_mmap.c: Likewise.
2408         * samba/tests/sysv_ipc.c: Likewise.
2409         * samba/samba-files: Likewise.
2410         * samba/smbadduser: Likewise.
2411         * Make-mc.in: Adjust for the above.
2412         * samba/include/includes.h: Removed definitions related to the
2413         above tests.
2415         * Make-mc.in: Eliminate ubiqx.
2416         * samba/Makefile.in: Likewise. Remove some unused variables.
2417         * samba/include/includes.h: Eliminate dependency on ubiqx.
2418         * samba/include/nameserv.h: Likewise.
2419         * samba/include/proto.h: Remove prototypes from nmbd/*.
2420         * samba/ubiqx/*: Remove.
2422         * samba/configure.in: More useless stuff removed.
2423         * samba/Makefile.in: Likewise.
2424         * Make-mc.in: Remove samba/smbwrapper directory.
2425         * samba/smbwrapper/smbw.h: Remove.
2426         * samba/include/includes.h: Don't include smbw.h.
2428         * samba/configure.in: Don't check for things that are unused.
2429         Remove support for building shared libraries.
2430         * samba/Makefile.in: Remove support for shared libraries and
2431         quota.
2433         * samba/configure.in: Don't check for any 64-bit functions and
2434         syscall() - they are not needed.
2436         * samba/configure.in: Remove the test for
2437         HAVE_EXPLICIT_LARGEFILE_SUPPORT, since it's incompatible with
2438         the rest of the source that doesn't use explicit 64-bit calls.
2440         * Make-mc.in: Always check for samba/Makefile before descending
2441         there. Don't ever ignore errors from "cd". Use $(MAKE), not
2442         make. Formatting changes.
2444 2001-02-08  Pavel Roskin  <proski@gnu.org>
2446         * Make-mc.in: Undo previous fix. Don't run "make clean" in
2447         samba/ if samba/Makefile is missing.
2449         * Make-mc.in: Don't run "make clean" in samba/ as samba/Makefile
2450         may be missing. Clean using the rule from samba/Makefile.in.
2452         * cpio.c: Eliminate C++ comments.
2453         * fish.c: Likewise.
2455         * Make-mc.in: Use mkinstalldirs to create $(distdir)/extfs,
2456         since CVS Automake already creates that directory.
2458         * Make-mc.in: Don't add _LARGEFILE64_SOURCE to CFLAGS without
2459         testing - it breaks on HP-UX 10.20.
2461 2001-02-07  Pavel Roskin  <proski@gnu.org>
2463         * Make-mc.in: Don't distribute samba/tests/trapdoor.c and
2464         samba/tests/ftruncroot.c.
2466         * samba/configure.in: Remove tests for setresuid and setresgid.
2467         * samba/include/includes.h: Remove declarations of setresuid and
2468         setresgid.
2470         * samba/configure.in: Don't check for root permissions. Don't
2471         call tests/trapdoor.c and tests/ftruncroot.c.
2472         * samba/tests/trapdoor.c: Remove.
2473         * samba/tests/ftruncroot.c: Likewise.
2474         * samba/tests/summary.c: Don't warn about trapdoor uid systems.
2476         * Make-mc.in: Don't link container.o into libvfs-mc.a - it's
2477         not used.
2479         * samba/aclocal.m4: Fix underquoting.
2480         * samba/configure.in: Fix underquoting. Don't use loff_t as the
2481         second argument to AC_CHECK_TYPE - it's not a builtin type.
2483         * samba/configure.in: Remove checks for statvfs and friends -
2484         they are irrelevant to the client code.
2485         * samba/tests/summary.c: Likewise.
2487 2000-12-15  Andrew V. Samoilov  <sav@bcs.zp.ua>
2489         * extfs/urar.in (list): better solution to prevent duplication
2491 2000-12-14  Andrew V. Samoilov  <sav@bcs.zp.ua>
2493         * extfs/urar.in (LC_ALL): set to C to prevent localization,
2494         (mcrarfs_list): directories placed first to prevent duplication
2496 2000-10-31  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2498         * ftpfs.c (dir_load): From Roland Mainz
2499         <Roland.Mainz@informatik.med.uni-giessen.de>: add '.' and '..'
2500         directories
2502         * *.c: From Roland: it is not possible to g_free() something
2503         allocated by strdup(), because g_malloc might be different for
2504         malloc. Therefore wrapped strdup into g_strdup() wrapper.
2506 2000-10-22  Andrew V. Samoilov  <sav@bcs.zp.ua>
2508         * samba/libsmb/nterr.c (nt_errs): constified
2510         * samba/libsmb/smberr.c (dos_msgs, server_msgs, hard_msgs,
2511         err_classes): ditto
2513         (smb_errstr): err constified to avoid warnings
2515 2000-10-16  Andrew V. Samoilov  <sav@bcs.zp.ua>
2517         * ftpfs.c (open_data_connection): don't generate //filename, some
2518         ftp servers can't store it;
2520         (command): g_strdup_vprintf() and g_strconcat() replaced
2521         by g_strdup_vprintf(), g_realloc() and strcpy()
2522         to reduce memory usage when trailing "\r\n" added;
2524         (ftpfs_set_debug, ftp_data): ftp_data.logfile assigned with logfile
2525         value to log servers replies
2527 2000-10-09  Andrew V. Samoilov  <sav@bcs.zp.ua>
2529         * sfs.c (redirect): temporary file unlinked on error;
2531         (sfs_init): warnings are localized
2533 2000-10-05  Pavel Roskin  <proski@gnu.org>
2535         * extfs/rpm: If rpm indicates an error create a virtual file
2536         ERROR and put error messages there.
2538 2000-09-25  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2540         * extfs/mcunarj.diff: better version from Christian Gennerat
2541         <christian.gennerat@vz.cit.alcatel.fr>
2543 2000-09-21  Pavel Roskin  <proski@gnu.org>
2545         * extfs/uzoo.in: Suppress output from grep. Don't use '~',
2546         use $HOME instead - it's more portable.
2548 2000-08-24  Pavel Roskin  <proski@gnu.org>
2550         * extfs/Makefile.am: all scripts should be executable
2552 2000-09-18  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2554         * extfs/patchfs (LC_TIME): patch by Martin Bialasinski:
2555         override locale for dates
2557 2000-09-14  Pavel Machek  <pavel@bug.ucw.cz>
2559         * vfs.c, extfs/{a,extfs.ini}: Improved /#a filesystem
2561 2000-09-14  Pavel Roskin  <proski@gnu.org>
2563         * Make-mc.in: direntry.c was listed twice in VFSSRCS
2565         * Make-mc.in: removed commands to build standalone libvfs -
2566         they are now in Makefile.am. Create links in the build
2567         directory - source directory may be read-only. Removed hack
2568         with mcservx - it's no longer needed.
2570         * ftpfs.h: include "xdirentry.h" instead of "vfs/xdirentry.h"
2572 2000-09-05  Pavel Roskin  <proski@gnu.org>
2574         * Make-mc.in: don't ignore errors in the distdir target
2576 2000-08-24  Pavel Roskin  <proski@gnu.org>
2578         * extfs/Makefile.am: new file
2579         * Make-mc.in: remove stuff pertinent to the extfs directory
2581 2000-08-24  Pavel Roskin  <proski@gnu.org>
2583         * Make-mc.in: don't ignore error installing mcserv.
2584         Create directories before installing into them.
2586 2000-08-18  Pavel Roskin  <proski@gnu.org>
2588         * Make-mc.in: adjusted lists of distributed files.
2589         Makefile rebuilding fixed.
2591 2000-08-08  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2593         * ftpfs.c (dir_load): taken it out, it needs to correctly provide
2594         parent, this way it breaks things.
2596         * uzip.in: change by Dmitry Borodaenko <d.borodaenko@belcaf.com> to
2597         display zip files in fat and ntf formats
2599 2000-08-04  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2601         * ftpfs.c (dir_load): add . and .. to ftpfs listings, courtesy of
2602         Roland.Mainz@informatik.med.uni-giessen.de
2604         * util-alone.c (message_1s1d): added missing function
2606 2000-08-03  Pavel Roskin  <proski@gnu.org>
2608         * undelfs.h: Removed
2610 2000-08-02  Pavel Roskin  <proski@gnu.org>
2612         * Make-mc.in: Filters apt, audio, deba, debd and dpkg are now
2613         distributed. Added some comments to prevent future errors.
2614         "make distclean" now cleans generated filters.
2616         * samba/configure.in: Fixed sloppy output. The fix also sent to
2617         the Samba team.
2619         * samba/include/stamp-h.in: Added to CVS.
2621 2000-05-23  Andrew V. Samoilov  <sav@bcs.zp.ua>
2623         * vfs.c (mc_[un]def_getlocalcopy): better error handling on writing
2625 2000-05-18  Andrew V. Samoilov  <sav@bcs.zp.ua>
2627         * ftpfs.c: (my_get_host_and_username) space between macro name and
2628           parentheses removed
2630 2000-05-15  Andrew V. Samoilov  <sav@bcs.zp.ua>
2632         * tar.c (read_header): memory leaking for empty symlink's names fixed
2634         * utilvfs.c (vfs_split_url): *host is not assigned if host is null
2636         * ftpfs.c (login_server): new features of vfs_split_url () used,
2637           my_get_host_and_username became macro
2639         * vfs.c (mc_opendir, mc_chdir): unneeded calls to concat_dir_and_file
2640           removed (vfs_canon removes trailing '/')
2642         * sfs.c (vfmake, redirect): allocated memory released on errors
2644 2000-05-10  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2646         * direntry.c (vfs_s_new_inode): Do not leave st_nlink uninitialized.
2648 2000-05-08  Valery Kornienkov  <vlk@dimavb.st.simbirsk.su>
2650         vfs/extfs/uha.in: add HSC type archives
2652 2000-05-01  Pavel Machek  <pavel@bug.ucw.cz>
2654         * direntry.c (vfs_s_inode_from_path): fix for stating / directory
2655         done properly
2657         * vfs.c: == 0 is right test of eof.
2659 2000-04-28  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2661         * direntry.c (vfs_s_internal_stat): added ugly special case for /
2662         of archive to always exist. It seems I'm hiding some underlying
2663         problem :-(.
2665 2000-04-26  Andrew V. Samoilov  <sav@bcs.zp.ua>
2667         * direntry.c (vfs_s_find_entry_tree): segfault fixed when root is NULL
2669         (vfs_s_new_inode, vfs_s_new_entry): g_new replaced by g_new0
2671         * ftpfs.c (dir_load): ent->name is free()d for "." and ".."
2673         (ftpfs_directory_timeout): default value changed to 900
2675         (netrc_next): "const char * const keywords" go to rodata and is shared
2677 2000-04-16  Pavel Machek  <pavel@bug.ucw.cz>
2679         * vfs.c (vfs_type): FL_NO_LOCALHASH for prevention of obscure
2680         deadlocks with podfuk
2682         * direntry.c: fix behavior when stating / directory of ftp
2683         archive
2685 2000-04-15  Timur Bakeyev  <mc@bat.ru>
2687         * ftpfs.c (netrc_next): "const char * keywords" is pretty nice.
2689         * ftpfs.c (dir_load): At last, found place, that broke handling
2690         directories with spaces in name. Problem was in prepending "/"
2691         to "." for current directory. Which was, obviously, wrong. Hacked
2692         to make just "LIST -la ." instead.
2694 2000-04-12  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2696         * extfs/lslR.in: Patch by tnovak@ipex.cz: allow spaces in filenames
2698 2000-04-10  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2700         * extfs/audio: Added a way to browse audio CDs conveniently
2702         * undelfs.c: use NULLs instead of 0s when you assign to pointers!
2704 2000-04-05  Andrew V. Samoilov  <sav@bcs.zp.ua>
2706         * utilfs.c (vfs_split_url): Don't assign *pass if pass is NULL
2707         * fish.c (archive_open, archive_same): memory allocated by
2708           vfs_split_url() must be released after use, don't strdup()
2709           values allocated by vfs_split_url() and NULL passed to
2710           vfs_split_url() when password value is unused
2711         * ftpfs.c (archive_open, archive_same): ditto plus same for
2712           ftpfs_get_proxy_host_and_port()
2714 2000-04-06  Timur Bakeyev  <mc@bat.ru>
2716         * ftpfs.c (netrc_next): Turned strange "const char * const
2717         keywords" into more alike "const char const * keywords". Still,
2718         think, it's too strict.
2720         * smbfs.c: Add #define BOOL_DEFINED before inclusion of samba
2721         headers. Libncurses(or slang?) defines BOOL and that can cause
2722         problems. (In fact, I can't find references to that const, but
2723         sure, I had a reason to do that:)
2725         * util-alone.h: Declare load_anon_passwd() to avoid warnings.
2727 2000-03-31  Andrew V. Samoilov  <sav@bcs.zp.ua>
2729         * vfs.c (mc_def_getlocalcopy): free() replaced by g_free() to prevent
2730         crashes with mad, thanks to Timur I. Bakeyev <timur@bat.ru>
2731         * fish.c (linear_start): Name wasn't freed after usage.
2732         * cpio.c (cpio_ungetlocalcopy): Return type changed to int,
2733         function return 0 now.
2734         * direntry.c (vfs_s_close, vfs_s_resolve_symlink): Memory allocated
2735         by vfs_s_fullpath() is freed after use.
2736         * ftpfs.c (linear_start): Ditto.
2738 2000-04-03  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2740         * ftpfs.c (send_ftp_command): return from vfs_s_get_path_mangle is
2741         not strdupped(), so it must not be g_free'd.
2743 2000-03-29  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2745         * fish.c: Patch by <rebel@atrey.karlin.mff.cuni.cz>: make
2746         fish work better with files files like "this is sentence"
2748 2000-03-28  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2750         * extfs/*rpm: Patch by <rebel@atrey.karlin.mff.cuni.cz>: set
2751         locale to C so that rpm does not confuse us
2753 2000-03-06  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2755         Patch by  Andrew V. Samoilov <sav@bcs.zp.ua>
2757         * vfs.c (vfs_parse_ls_lga): Don't hard code st_ino and st_dev to
2758         0's, these variables must be assigned in vfs_s_new_inode() or
2759         extfs layer, so ftpfs subdirectories now can be copied.
2761 2000-02-25  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2763         Patch by  Andrew V. Samoilov <sav@bcs.zp.ua>
2765         * vfs.[ch] (vfs_canon, mc_open, vfs_file_is_local,
2766           mc_(un)?getlocalcopy): added const qualifier
2767         (mc_def_getlocalcopy): tempnam() returns malloc()ed buffer,
2768           so, free() it, not g_free();
2769         (vfs_canon): prepend filename by cwd when tilde '~' cannot be expanded;
2771 2000-02-23  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2773         * cpio.c: cpio.h is missing, so don't try to include it. (It is
2774         not needed, anyway. Strange.)
2776         * Makefile.in (NONETFILES): cpio added to compilation list
2778 2000-02-23  Norbert Warmuth  <nwarmuth@privat.circular.de>
2780         * ftpfs.c: Definition of PORT changed in the middle of ftpfs.c
2781         with unexpected side effects (only when HSC_PROXY was
2782         defined). Introduce HSC_PROXY_PORT and FTP_COMMAND_PORT and use
2783         where appropriate.
2785         (dir_load): Do not hard code the directory cache timeout to 10
2786         seconds. Instead use the setting from Options/Virtual VFS ...
2788         * fish.c (file_store): Honor changed semantics for return value
2789         (on error -1 is expected).
2791         * ftpfs.c (file_store): ditto
2793 2000-02-22  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2795         * cpio.c: added. Thanx to Jan Hudec <bulb@centrum.cz>, who wrote
2796         it using code from tarfs.
2798 2000-02-21  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2800         * extfs/uzip.in (nam): y2k fixes (workarounds) by
2801         christian.gennerat@vz.cit.alcatel.fr
2803 2000-02-04  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2805         * ftpfs.c (ftpfs_unlink, *): prepend / so that it actually works
2807 2000-02-03  Andrew V. Samoilov  <sav@bcs.zp.ua>
2809         * xdirentry.h: added prototype for vfs_s_retrieve_file
2811 2000-01-31  Andrew V. Samoilov  <sav@bcs.zp.ua>
2813         * direntry.c: (vfs_s_resolve_symlink, vfs_s_readlink) fixed segfaults
2814         for broken symlinks like 2001 -> The Space Oddysea.
2816 2000-01-24  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2818         * ftpfs.c: vfs semantics has some problems with ~s. What will
2819         happen if we just don't go to home directory of user? (We used to
2820         have /#ftp:hobit/~/ mean home directory of anonymous at
2821         hobit. Thats pretty broken.)
2823         * direntry.c (vfs_s_find_entry_linear): don't sleep after showing
2824         message
2826         * ftpfs.c: cosmetic fixes by Andrew V. Samoilov
2828 2000-01-18  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2830         * ftpfs.c: cosmetic fixes + killed ugly infinite loop, patch
2831         from Andrew V. Samoilov
2833 2000-01-13  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2835         * extfs.c (extfs_chdir): removed unneeded statement, plus applied
2836         cosmetics fixes from Andrew V. Samoilov
2838 2000-01-02  Martin Bialasinski  <martin@internet-treff.uni-koeln.de>
2840         * extfs/deb.in: Change to the deb vfs. tar has changed, and
2841         depending on the version, it saves files as "./filename" or
2842         "filename".
2844         * From debian: added deba, debd, dpkg, apt script file systems.
2846 1999-12-28  Andrew V. Samoilov  <sav@bcs.zp.ua>
2848         * vfs.c (vfs_parse_filedate): don't decode last columns as year
2851 1999-12-21  Pavel Roskin  <pavel_roskin@geocities.com>
2853         * vfs/vfs.h: use #warning only for gcc. Not all compilers
2854         understand it
2856 1999-12-15  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2858         * Merged changes by Andrew V. Samoilov <sav@bcs.zp.ua>. They are
2859         mostly internationalization + fixing stupid bugs of mine
2861 1999-12-08  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2863         * ftpfs.c: basically replaced ftpfs with new one. Unlike the
2864         previous one, this uses new direntry.c layer, so shared_ftp_fish.c
2865         can be killed.
2867         This is new code, so beware.
2869 1999-11-11  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
2871         * shared_ftp_fish.c (s_ungetlocalcopy): need to supply some return
2872         value, too. This code is going to be killed, the sooner the better.
2874         * *.c (mc_[un]getlocalcopy): we really need some return value,
2875         because we can have errors
2877         * fish.c: don't use directory expiration, it does not work,
2878                 use retrieve_file from direntry.c
2881 1999-02-17  Pavel Machek  <pavel@bug.ucw.cz>
2883         * direntry.c (vfs_s_getlocalcopy): fixed segfault, getlocalcopy's
2884         name has to be malloced.
2886 1999-10-07  Miguel de Icaza  <miguel@gnu.org>
2888         * ftpfs.c (linear_read): Applied patch from Alexander V. Lukyanov
2889         <lav@yars.free.net> that makes the code compliant to RFC959
2891 1999-08-30  Miguel de Icaza  <miguel@gnu.org>
2893         * ftpfs.c (insert_dots): Use g_new here.
2895         * shared_ftpfs_fish.c: Style fixes and small fixes
2897 1999-09-22  Bjorn Eriksson  <mdeans@algonet.se>
2899         * extfs/uzip.in: Better handling of zip-archives that contain files
2900         which contain spaces.
2902 1999-09-19  Norbert Warmuth  <nwarmuth@privat.circular.de>
2904         * ftpfs.c (ftpfs_set_debug), vfs.h: added const qualifier.
2906         * mcserv.c: removed definition of mad_strconcat which is also
2907         in mad.c.
2909 1999-09-17  Federico Mena Quintero  <federico@redhat.com>
2911         * smbfs.c: #define NO_CONFIG_H before including the samba
2912         includes; this way it will not re=define HAVE_LIBREADLINE.  This
2913         situation sucks.  Should we change the names of the widget.h
2914         history_*() functions?
2916 1999-09-14  Norbert Warmuth  <nwarmuth@privat.circular.de>
2918         * smbfs.c (various places): Store filenames in memory with the unix
2919         character set and convert it back to the dos character set when
2920         filenames are passed back to the samba server. If samba is configured
2921         correctly this will fix the problems with filenames which contain
2922         national characters.
2924         (bucket_set_authinfo): Set domain, username and password which will
2925         be used to log on and authenticate against the samba server and remember
2926         this information on a host/share basis. If set use PASSWD to get the
2927         password. If already authenticated against the host and share use this
2928         information. If already authenticated against host and IPC$ use this
2929         information. If neither of the former is true ask the user how to
2930         log on.
2932         (authinfo_get_authinfo_from_user): New function. Query the user for
2933         domain, username and password to use for authentication.
2935         (authinfo_free): New function. Free memory in authentication structure.
2937         (authinfo_free_all): New function. Free the list used to remember
2938         authentication information.
2940         (authinfo_compare_host_and_share, authinfo_compare_host): New functions.
2941         Helper functions used to search the authentication list.
2943         (authinfo_add): New function. Add one authentication entry to the
2944         authlist.
2946         (authinfo_remove): New function. Remove one entry from the authlist.
2948         (free_bucket): Free memory associated with one bucket.
2950         (smbfs_get_free_bucket): Initialize the complete connection array
2951         with 0. Free the memory allocated for a bucket and initialize the
2952         bucket before reusing it.
2954         (smbfs_open_link): use new functions to get authentication information
2956         (get_stat_info, smbfs_stat): remove unused variables.
2958 1999-08-31  Federico Mena Quintero  <federico@redhat.com>
2960         * extfs/uzip.in: Handle filenames with spaces better.  Thanks to
2961         Spyridon Papadimitriou <Spyridon_Papadimitriou@gs91.sp.cs.cmu.edu>
2962         for the patch.
2964 1999-08-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>
2966         * ftpfs.c (translate_path): Remove static buffer from here.
2967         Return a strdupped string now.
2968         (send_ftp_command): Release translate_path result here.
2969         (open_data_connection): Release translate_path result here.
2970         (ftpfs_chdir_internal): Release it here too.
2972 1999-08-30  Norbert Warmuth  <nwarmuth@privat.circular.de>
2974         * shared_ftp_fish.c (get_line): Fixed off by one error ('\0' might
2975         have been written one slot past the supplied character array).
2977         * ftpfs.c (resolve_symlink_without_ls_options): Don't dump core on
2978         strange symlinks (ls -la doesn't reveal where the symlink points to
2979         and ls -lLa doesn't resolve the symlink either)
2981         Added protection against recursive symbolic links.
2983 1999-08-19  Norbert Warmuth  <nwarmuth@privat.circular.de>
2985         * smbfs.c: added missing include file
2987         (browsing_helper): use g_strdup instead of g_new + pstrcpy
2988         (Btw. this is an example why the handholding of smblib gives a
2989         false security feeling. pstrcpy limits the number of characters
2990         copied and is used with a buffer which is smaller than the hard
2991         coded limit in pstrcpy)
2992         (loaddir_helper): ditto
2993         (server_browsing_helper): ditto
2995         (get_remote_stat): fixed memory leaks
2996         (smbfs_loaddir): ditto
2997         (get_stat_info): ditto
2998         (smbfs_stat): ditto
3000         (convert_path): rewritten, now it's much cleaner what it does.
3001         This rewrite was necessary because gcc -O2 choked on glibc 2.1
3002         systems. In that combination strncat is a macro which expands to
3003         strlen and strcat and in vfs/samba/include/includes.h the latter is
3004         defined to __ERROR__XX__NEVER_USE_STRCAT___;.
3006 1999-08-18  Norbert Warmuth  <nwarmuth@privat.circular.de>
3008         * direntry.c (vfs_s_getlocalcopy): There's an additional strdup
3009         needed. In rare cases a pointer was freed twice. Pavel Machek
3010         pointed this out a while ago but obviously it hasn't been fixed yet.
3012         * sfs.c (vfmake): Quote characters with a special meaning to the
3013         shell in filenames/paths (Fix Bug #1931, VFS will not work if
3014         your full path has the space character in it.).
3016 1999-08-17  Kjartan Maraas  <kmaraas@online.no>
3018         * fish.c: Fix typo.
3020 1999-08-15  David Martin  <dmartina@usa.net>
3022         * vfs.c (vfs_print_stats): Translate vfs stats
3024         * shared_ftp_fish.c (s_read, s_lseek): Mark strings for translation
3026         * fish.c: Translate messages
3028 1999-08-06  Norbert Warmuth  <nwarmuth@privat.circular.de>
3030         * tar.c (read_header): Don't segfault when a symlink points to the
3031         root directory.
3033 1999-08-01  Norbert Warmuth  <nwarmuth@privat.circular.de>
3035         * vfs.c: Don't close a function definition with "};". SunCC from
3036         2.5.1 chokes on the extra semicolon
3038         (mc_munmap): Don't dereference function pointer when checking for
3039         NULL (this check is supposed to prevent a segfault instead of
3040         causing one). This haven't got noticed up to now because there's no
3041         file system with mmap but without munmap.
3043 Tue Jul  6 11:22:40 1999  Timur I. Bakeyev  <mc@bat.ru>
3045         * samba/include/config.h: Removed. Should be generated.
3047 Tue Jul  6 11:18:45 1999  Timur I. Bakeyev  <mc@bat.ru>
3049         * Make-mc.in (XCPPFLAGS): Add necessary paths to allow compile sambafs
3050         when builddir != srcdir. Removed some junk after not coherent patching.
3052 1999-07-04  Federico Mena Quintero  <federico@nuclecu.unam.mx>
3054         * Make-mc.in (distcopy): Added a bunch of new lists of files for
3055         the directories in vfs/samba.  Use them in this rule, because
3056         plain wildcards will not work right.
3057         (SAMBA_DIST_TOPLEVEL): Added configure to the list of distributed
3058         files.
3059         Added smbfs.[ch] to the list of sources.
3061 1999-07-02  Tuomas J. Lukka  <lukka@iki.fi>
3063         * Make-mc.in: $SAMBAFILES -> @SAMBAFILES@ in the rule
3064         as well as the dependencies.
3066 1999-06-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3068         * smbfs.c       (get_remote_stat): Change debug level.
3070         (get_stat_info): 2 line fixes from Wayne to check the
3071         cache properly.  WOOOOHOOOO!  Works like a charm.
3073 1999-06-14  Wayne Roberts  <wroberts1@cx983858-b.orng1.occa.home.com>
3075         * vfs/smbfs.c: New file.  Implements the Samba-based file system.
3077         * vfs/vfs.h: Declare vfs_smbfs_ops, vfs_file_is_smb.
3079         * vfs/vfs.c (vfs_file_is_smb): implemented.
3080         (vfs_init) register smbfs.
3082         * vfs/samba: Incorporate SAMBA source code required for smbfs
3084 Fri Jun 18 11:49:05 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
3086         * ftpfs.c (resolve_symlink_with_ls_options): Some ftp servers don't
3087         make a difference between "LIST -la" and "LIST -lLa". If we find such
3088         a server don't use -lLa when resolving symbolic links.
3090 1999-05-12  Christian GENNERAT  <christian.gennerat@alcatel.fr>
3092         * urar.in, uzip.in: patches to use in #urar and #uzip the new features
3093         added in mc-4.5.31 (unlink, mkdir, rmdir)
3095 1999-04-30  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
3097         * extfs/deb.in (mcdebfs_run): Quote string properly, fix suggested
3098         by debian maintainer
3100 1999-04-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3102         * extfs/uzip.in (nam): Handle new unzips.
3104 Fri Apr 23 21:02:32 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
3106         * ftpfs.c (retrieve_dir): If we don't get any valid directory entry
3107         (i.e. not even "." and "..") check whether the directory is empty
3108         or non-existent (instead of failing with "ftpfs: failed").
3110 1999-04-23  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
3112         * vfs.c (vfs_parse_filemode): fix for solaris which uses 'l'
3113         instead of 'S'.
3114         (vfs_parse_ls_lga): do not silently ignore parsing errors.
3116 Wed Apr 21 21:59:50 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
3118         * extfs.c (extfs_open): tempnam returns a malloced string, no need
3119         to strdup it
3121         (various places): use free instead of g_free to free string returned
3122         by tempnam.
3124 1999-04-21  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
3126         * urar.in, uzip.in: rolled in patches from "christian.gennerat"
3127         <christian.gennerat@vz.cit.alcatel.fr> for better handling of
3128         spaces and copyin-feature-addon.
3130 1999-04-18  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3132         * extfs.c (get_path_from_entry): Fix a crash here.
3134 1999-04-12  Andrew T. Veliath  <andrewtv@usa.net>
3136         * extfs.c (extfs_unlink):
3137         (extfs_mkdir):
3138         (extfs_rmdir):
3139         (remove_entry): New functions.
3140         (vfs_extfs_ops): Add unlink, mkdir and rmdir functions to table.
3141         Add descriptions for these to the extfs README.
3143 1999-04-12  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
3145         * Make-mc.in (DISTVFS): try to distribute files needed for
3146         building libvfs.so alone
3147         (EXTFS_MISC): include uarj and unarj.diff in distribution
3149 1999-04-08  Owen Taylor  <otaylor@redhat.com>
3151         * extfs/deb.in extfs/ulha.in extfs/ucpio.in: Fix
3152         up "TMP RACE" comments so they are at least secure,
3153         if not terribly robust.
3155 1999-03-31  Serge Winitzki  <swinitzk@hotmail.com>
3157         * added copy_in capability to mtools filesystem
3159 1999-03-30  Federico Mena Quintero  <federico@nuclecu.unam.mx>
3161         * vfs.c (vfs_add_current_stamps): Only do stamping of the panels
3162         if they exist.
3164         * mcserv.c: #include <sys/wait.h>
3165         (get_client): Put `#ifdef __EMX__' around an otherwise-unused
3166         variable.
3168         * utilvfs.c (vfs_split_url): Fix NULL <-> 0 confusion when
3169         comparing characters.
3171         * ftpfs.c (retrieve_dir): Removed unused variable dot_dot_found.
3173         * extfs.c (extfs_init): Assign `key' to c, not `&key'.
3175 Sun Mar 28 23:50:47 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
3177         * vfs.h (vfs_translate_url): Fixed the macro which is used when
3178         compiling without vfs.
3180 1999-03-22  David Martin  <dmartina@mailexcite.com>
3182         * ftpfs.c: Internationalize the messages that are displayed as
3183         hints.
3185 1999-03-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3187         * extfs.c (extfs_init): Fix the code here:  If the key is empty or
3188         only contains a new line, C would be pointing into an invalid location.
3190 Mon Mar 22 02:56:23 1999  Timur I. Bakeyev  <mc@bat.ru>
3192         * Makefile-mc.in: s/$(libdir)\/extfs/$(extfsdir)/
3194 Mon Mar 22 02:00:16 1999  Valery Kornienkov  <vlk@st.simbirsk.su>
3196         * extfs/uha.in: Add support for ha archives.
3198 1999-03-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3200         * vfs.c (vfs_parse_ls_lga): Handle stupid servers that send n_link
3201         set to zero.
3203 1999-03-11  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3205         * vfs.h: Make it compile in AIX.  Boy do those guys pollute the
3206         name space.
3208 1999-03-09  Shooby Ban  <bansz@szif.hu>
3210         * extfs/extfs.ini: Corrected rpms -> rpms:
3211         by Balazs Nagy <julian7@kva.hu>
3213 1999-03-09  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3215         * vfs.c (parse_ls_lga): kill the messages on each error.
3217 Tue Feb 16 12:11:04 1999 Paul Sheer  <psheer@obsidian.co.za>
3219         * mcserv.c, mcfs.c: mcserv and mcfs exchange st_dev instead
3220         of st_rdev. This makes stats on device files useless. Fixing
3221         this does not break anything, but adds the ability to copy
3222         device files properly. Ideally, both st_dev and st_rdev should
3223         be returned for those programs that use the vfs to properly
3224         recreate hardlinks. Whose idea was it to only return one of
3225         these???
3227 1999-02-12  Sergey Korshunoff  <seyko@p5.f434.n5020.z2.fidonet.org>
3229         * unlha.in: Fix the problem of having incorrect pathnames when
3230         pulling out files from the LHA file.
3232 Sat Feb  6 23:44:28 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
3234         * tar.c (read_header): Treat hardlinks correctly.
3236 Mon Feb  1 19:32:12 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
3238         * ftpfs.c (insert_dots): renamed from insert_dot. We have to
3239         insert ".." as well or directories from ftp servers which don't
3240         list "." and ".." are displayed with an additional "/".
3242 Mon Feb  1 02:55:07 1999  Timur I. Bakeyev  <mc@bat.ru>
3244         * tcputil.c: One more my bug with '\0' -> NULL. Oops..
3246 Mon Feb  1 01:45:08 1999  Timur I. Bakeyev  <mc@bat.ru>
3248         * mcserv.c: If setuid() is available, use it, even, streuid() also
3249         present. (BTW, bsdi uses it's own auth system..)
3251 Sun Jan 31 20:51:17 1999  Alexander Savelyev  <fano@vcom.kiev.ua>
3253         * mcserv.c (do_auth): mcserv never auth properly on bsdi.
3254         (mc/vfs/mcserv.c do_auth() on bsdi we must use setuid() not
3255         setreuid()).
3257         * tcputil.c: use correct signal handler (void func(int)) on BSDI
3259 Sun Jan 31 20:41:00 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
3261         * mcserv.c (do_link): Removed duplicate invocation of link. Thanks
3262         to Grzegorz Makarewicz <mak@mikroplan.com.pl> for spotting this.
3264 Sun Jan 31 20:04:13 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
3266         * vfs.c (vfs_strip_suffix_from_filename): Whoever replaces every
3267         occurrence of 0 with NULL should stop this stupidity. And replacing
3268         '\0' with NULL is plan wrong!!. Reverted this replacement.
3270         * ftpfs.c (load_no_proxy_list): ditto
3272 Sun Jan 31 19:57:24 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
3274         * ftpfs.c (insert_dot): New function. Insert a "." into the linked
3275         list. Stat'ing the root directory of a ftpfs fails if the dot is
3276         missing.
3278         (retrieve_dir): insert "." into the linked list if the ftp server
3279         haven't send it.
3281 Sun Jan 31 19:50:24 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
3283         * The following changes make ftpfs work with a remote AmiTCP
3284         server are the result of somehow longish EMail debugging session. I
3285         don't know any public server of this kind but I was told the
3286         combination Unix/Amiga boxes are often used in intranets.
3288         * ftpfs.c (translate_path): New function. Translate a Unix path,
3289         i.e. MC's internal path representation (e.g. /somedir/somefile) to
3290         a path valid for the remote server. Every path transfered to the
3291         remote server has to be mangled by this function right prior to
3292         sending it. Currently only Amiga ftp servers are handled in a
3293         special manner.
3295         * ftpfs.c (various places): use translate_path
3297         * ftpfs.c (login_server): Assume we have to mangle pathnames if
3298         the greetings string from the server contains the word Amiga. If
3299         this assumption is wrong I have to find another way to turn on
3300         path translation.
3302         * ftpfs.c (ftpfs_get_current_directory): Prepend a leading slash
3303         if it is missing. MC needs it as separator between hostname and
3304         path in its internal url representation.
3306 1999-01-26  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>
3308         * vfs.c (vfs_parse_ls_lga): attempt to correctly work against
3309         Notwell 4
3311 Wed Jan 27 03:09:48 1999  Timur I. Bakeyev  <mc@bat.ru>
3313         * All around the source: Changed copy_strings() to g_strconcat(). Modi-
3314         fy last parameter in concat_dir_and_file() to "" - to prevent stack from
3315         disbalancing.
3317 1999-01-25  Federico Mena Quintero  <federico@nuclecu.unam.mx>
3319         * Makefile.am (libvfs_la_SOURCES): Added utilvfs.h.
3320         * Make-mc.in (VFSHDRS): Likewise.
3322 Sat Jan 23 18:40:19 1999  Timur I. Bakeyev  <mc@bat.ru>
3324         * utilvfs.c (append_path_sep): Removed - concat_dir_and_file(dir, NULL);
3325         gives the same effect.
3327 1999-01-21  Federico Mena Quintero  <federico@nuclecu.unam.mx>
3329         * utilvfs.c (append_path_sep): Fixed, it was broken for paths
3330         which already have a / at the end.
3332 Fri Jan 22 01:41:25 1999  Timur I. Bakeyev  <mc@bat.ru>
3334         * undelfs.c: Found one more unconverted realloc() call.
3336 1999-01-20  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3338         * undelfs.c (undelfs_loaddel): Fix Timur's changes.
3340 Thu Jan 21 00:58:12 1999  Timur I. Bakeyev  <mc@bat.ru>
3342         * Actually commit all changes :>
3344 Tue Jan 19 05:15:49 1999  Timur I. Bakeyev  <mc@bat.ru>
3346         * Converted all occurrences of DIR_SEP_CHAR and "/" to PATH_SEP and
3347         PATH_SEP_STR. Additional cleanups of the memory code.
3349         * utilvfs.h: Added several definitions for common sizes for buffers.
3350         It seems, most of us experience problems, when inventing size for new
3351         buffer. This is much better and portable way to eliminate the problem.
3353 1999-01-18  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3355         * vfs.h: The correct thing to use is PATH_SEP and PATH_SEP_STR
3357 Sun Jan 17 16:19:48 1999  Timur I. Bakeyev  <mc@bat.ru>
3359         * Converted memory management to Glib. Now we use g_new()/g_malloc()/
3360         g_strdup()/g_free() routings. Also, copy_strings() replaced by
3361         g_strconcat(), and sprintf() by g_snprintf().
3363         * utilvfs.h: New header file. Introduced as a stock header, which keeps
3364         all includes in a right order, to avoid order-dependence mistakes.
3366 Sun Jan 17 15:49:39 1999  Paul Sheer  <psheer@obsidian.co.za>
3368         * direntry.c: vfs_s_find_entry_tree changed to follow
3369         symlinks properly. Symlinks are now always followed
3370         except for the last part of the filename.
3371         vfs_s_resolve_symlink() now converts absolute paths to
3372         ../../file notation so that they can be easily resolved
3373         within the tree.
3375         * tar.c: . and .. are missing from directory entries,
3376         making it impossible to resolve links - fixed.
3378 1999-01-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3380         * vfs.c (mc_get_current_wd): Do not die.  Truncate the pathname.
3382 1999-01-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3384         * sfs.c (redirect): tempnam returns a malloc()ed buffer.
3386 Sat Jan  9 19:15:00 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
3388         * vfs.c (vfs_timeout_handler): Guard from recursive invocation.
3390 Sat Jan  9 19:13:28 1999  Norbert Warmuth  <nwarmuth@privat.circular.de>
3392         * sfs.c (sfs_free): Fixed wrong linked list handling (head was
3393         lost after the first iteration).
3395         (sfs_getid): ditto, return value was wrong.
3397 Sat Jan  9 22:49:02 1999  Timur I. Bakeyev  <mc@bat.ru>
3399         * vfs.c (parse_ls_lga): Rewrite function to make it more straight.
3400         Also, fixed some bugs in parsing (and add new ones:), which disallowed
3401         proper parsing of device major and minor numbers. Some other fixes. Add
3402         several new is_*() functions to make code readable.
3404 1999-01-08  Ilya Zakharevich  <ilya@math.ohio-state.edu>
3406         * vfs.h (vfs_strip_suffix_from_filename): Typo fix.  Include
3407         defines for non-vfs compilation.
3409 Fri Jan  8 20:03:36 1999  Andrej Borsenkow  <borsenkow.msk@sni.de>
3411         * vfs.c (vfs_parse_filedate): I forgot to set got_year in one place
3412         (where YY-MM-DD is parsed).
3414 Thu Jan  7 06:24:25 1999  Andrej Borsenkow  <borsenkow.msk@sni.de>
3416         * vfs.c (vfs_parse_filedate): If the date is less than 6 months
3417         in the past, it is shown without year. In this case MC assumed
3418         the current year which is wrong from Jan to Jun.
3420 Thu Jan  7 03:47:35 1999  Timur I. Bakeyev  <mc@bat.ru>
3422         * vfs.c (parse_ls_lga): Fixed Y2K typo pointed by Alex.
3424 Thu Dec 31 08:47:15 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
3426         * sfs.c (sfs_nothingisopen): Assume for now it's always save to free
3427         this filesystem and delete temporary files. This needs further
3428         investigation.
3430         * tar.c: deleted unused empty struct tar_super.
3432 Thu Dec 31 08:40:44 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
3434         * direntry.c: Split fd_usage into fd_usage and ino_usage. fd_usage
3435         was used for external and internal reference count. This was wrong
3436         because we can free resources taken up by the vfs as soon as the
3437         external reference count (now fd_usage) is zero. The internal
3438         reference count (ino_usage) mustn't matter because the vfs has to
3439         clean up itself in the correct order.
3441 Fri Dec 25 21:48:51 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
3443         * direntry.c (vfs_s_new_inode): Moved initialization of st_ino
3444         and st_dev from vfs_s_default_stat.
3446         (vfs_s_default_stat): initialize st_ino and st_dev to zero
3448         * tar.c (tar_open_archive): Make a new MEDATA->rdev for every
3449         new archive.
3451 Mon Dec 21 22:55:48 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
3453         * tar.c: Deleted global variable tar_gzipped_memlimit.
3455 Wed Dec 16 06:36:42 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
3457         * vfs.c (vfs_strip_suffix_from_filename): New function which strips
3458         known vfs suffixes from a filename and returns a malloced string
3459         which has to be freed. Possible improvement: strip vfs suffix from
3460         last path component.
3462         * extfs/*: added "umask 077" to every script.
3464 Tue Dec 15 16:41:50 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
3466         * extfs.c (extfs_open), sfs.c (redirect): create files 0600 and
3467         safely w.r.t. symlinks in /tmp
3469 Mon Nov 30 23:49:11 1998  Pavel Machek  <pavel@bug.ucw.cz>
3471         * direntry.c: Hopefully got want_stale_data right...
3473 Wed Nov 25 23:54:23 1998  Pavel Machek  <pavel@bug.ucw.cz>
3475         * vfs.h: use ENETUNREACH if EREMOTEIO error code is not defined,
3476         this is necessary for Solaris and probably others
3478 Mon Nov 23 17:39:33 1998  Pavel Machek  <pavel@bug.ucw.cz>
3480         * vfs.c (vfs_type_from_op): removing unnecessary code
3482 Wed Dec  9 12:24:52 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
3484         * extfs/rpm: commit fix for files with spaces in name by Marc
3485         Merlin (marcsoft@merlins.org)
3487 Mon Dec  7 11:04:57 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
3489         * fish.c: default to normal ssh
3490         (open_archive_int): debugging hack killed
3492 1998-12-02  Raja R Harinath  <harinath@cs.umn.edu>
3494         * Makefile.am (EXTRA_DIST): Distribute files that the
3495         BUILT_SOURCES depend on.
3496         (mad.c, mad.h): Don't use GNU make specific features in rule.
3497         (libvfs_la_SOURCES): Update from Make-mc.in.
3499 1998-12-02  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3501         * direntry.c (vfs_s_insert_super): This routine does not return
3502         anything.
3504 1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
3506         * fish.c (FISH_OP): changed snprintf to g_snprintf, as glib is
3507         used anyway.
3509         * xdirentry.h (LINK_NO_FOLLOW):
3510         * tar.c (read_header):
3511         * direntry.c (vfs_s_resolve_symlink):
3512         (vfs_s_inode_from_path):
3513         (vfs_s_open): renamed NO_FOLLOW and FOLLOW to LINK_NO_FOLLOW and
3514         LINK_FOLLOW resp. to avoid problems on solaris, where FOLLOW and
3515         NO_FOLLOW are defined in an enum.
3517         * vfs.h (ELAST): define it to 300, if not already defined, thats a
3518         bad hack, but what can we do....
3520 Wed Dec  2 14:06:49 KST 1998  Sung-Hyun Nam  <namsh@lgic.co.kr>
3522         * direntry.c (vfs_s_new_super): Added the missing return value.
3524 Sun Nov 29 02:54:54 1998  Timur I. Bakeyev  <mc@bat.ru>
3526         * vfs.h: (Temporary?) fix to the compiling error: Some of the error
3527         codes, defined here are Linux specific and unknown to other systems.
3528         Changed to #ifdef's with assigning new codes by means ELAST+offset.
3530 Tue 24 Nov 12:43:20 1998  Peter Kleiweg  <kleiweg@let.rug.nl>
3532         * vfs.c (vfs_parse_ls_lga): ignore trailing + in permission string
3533         which indicate a file with extended attributes (ACL)
3535 Mon Nov 23 21:19:43 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
3537         * ftpfs.c (resolve_symlink_with_ls_options): that's resolve_symlinks
3538         we used up to release 4.1.35. It uses LIST -lLa to get symlink stats.
3540         (resolve_symlink_without_ls_options): that's resolve_symlinks
3541         we used in release 4.1.36 and 4.5.[01]. It gets symlink stats from the
3542         directory cache fetching directories if necessary. We got some
3543         complaints about slower ftpfs in the above releases. Now this method
3544         is no longer the default method to resolve symbolic links. It is still
3545         needed for ftp servers which don't understand the LIST -lLa command.
3547         (resolve_symlink): Dispatch between the two methods to
3548         resolve symlinks.
3550 Sat Nov 21 21:38:08 1998  Pavel Machek  <pavel@bug.ucw.cz>
3552         * vfs.c (vfs_parse_ls_lga): corrected stupid bug in parse_ls_lga,
3553         thanks to Pavel Roskin for reporting
3555         * direntry.c (vfs_s_lseek): -1 is invalid filehandle, not 0
3557         * utilvfs.c (vfs_split_url): initialize variables so that we do
3558         not return garbage
3560 Sat Nov  7 20:19:14 1998  Pavel Machek  <pavel@bug.ucw.cz>
3562         * vfs.c: Converted g_return_if_fail into vfs_dies(), removed them
3563         where unnecessary. I do not see why passing NULL to vfs_add_stamp
3564         should be invalid -> removed check.
3566 Mon Nov  2 23:09:55 1998  Pavel Machek  <pavel@bug.ucw.cz>
3568         * direntry.c, xdirentry.h: should be now prepared to handle
3569         ftp-like filesystems. This is rather BIG change, although it does
3570         not look so. I hope I do not break too many things.
3572 Mon Nov 16 16:39:39 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
3574         * vfs.c (vfs_parse_ls_lga): Report unrecognized lines.
3576 Thu Nov 12 11:28:48 1998  Pavel Roskin  <pavel_roskin@geocities.com>
3578         * extfs/rpm: Fix to display files belonging to users with
3579         excessively long usernames
3581 1998-10-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3583         * fish.c (command): Replace vnsprintf with g_strdup_vprintf.  This
3584         is both safe and more correct, as there is no limit on the
3585         pathname.
3587         * ftpfs.c (command): Same as above.
3589         * util-alone.c (print_vfs_message): Same as above.
3591 Wed Oct 28 17:06:57 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
3593         * ftpfs.c: report which directory you are listing, fix behavior
3594         with servers that don't like LIST //. (Nowell) Fix behavior even
3595         with NT.
3597         * direntry.c (vfs_s_automake): insert newly generated entry
3599         * direntry.c (vfs_s_free_entry): Debugging printf() killed.
3601 Mon Oct 26 00:38:30 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
3603         * Make-mc.in: added xdirentry.h to VFSHDRS
3605 Fri Oct 23 12:29:48 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
3607         * tar.c (tar_open_archive): do not double-free memory if you can
3608         not open archive, better error handling
3610         * Makefile.in: add direntry.o to list of NONETFILES so we actually compile
3612         * sfs.c, tar.c: remove debugging messages (which really should not
3613         escape from my tree)
3615 Thu Oct 22 22:24:44 1998  Pavel Machek  <pavel@bug.ucw.cz>
3617         * README: added. If you are using emacs or hacking libvfs, please
3618         read this one.
3620         * direntry.{c,h}: new library created, so that same entry/inode
3621         code does not have to be copied in every handler.
3623         * tar.c: converted to use direntry.c library, which means BIG changes.
3625         * ftpfs.c: small updates to make code look nicer
3627 Mon Oct 19 19:40:58 1998  Pavel Machek  <pavel@bug.ucw.cz>
3629         * vfs.h (&more): killed ERRNOR() from vfs.h and put it into files
3630         which actually need it.
3632         * extfs.c: extfs_current_dir killed - it was unnecessary.
3634         * mcfs.c (mcfs_get_path): It is possible for path not to begin
3635         with /#mc:, for example if user does /etc/#mc:. (It is not
3636         correct, of course). Return error, but do not vfs_die().
3638 Sun Oct 18 23:48:00 1998  Pavel Machek  <pavel@bug.ucw.cz>
3640         * lib/mc.ext.in: cpio support fixed. It was broken since time we
3641         started to do #ext syntax.
3643 Sat Oct 17 20:43:20 1998  Pavel Machek  <pavel@bug.ucw.cz>
3645         * vfs.c (mc_open): die() if open is unsupported. If filesystem does
3646         not support open, it is probably stupid typo, so we want bug to be
3647         fixed.
3649 Thu Oct 22 20:30:28 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
3651         * ftpfs.c (resolve_symlink, retrieve_dir): Don't timeout and
3652         free dcache while resolving symlinks (i.e. don't free some
3653         pointers which are in use by resolve_symlink).
3655 Mon Oct 19 11:44:47 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
3657         * mcfs.c: prefix is mc:, not mcfs:. So now mcfs actually works.
3659 Thu Oct 15 17:17:17 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
3661         * shared_ftp_fish.c (s_write): stupid bug fixed
3663 Tue Oct 13 00:22:52 1998  Pavel Machek  <pavel@bug.ucw.cz>
3665         * extfs/*: marked obvious security holes with FIXME: TMP RACE
3667         * vfs.c (mc_def_getlocalcopy): creat->open(..,O_EXCL), to prevent
3668         symlink attack, fixed memory leak along the path
3670 1998-10-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3672         * vfs.c, vfs.h: Indentation changes, ugly macros removed.  I am
3673         going to split this file in the future.
3675 Tue Oct 13 18:43:18 1998  Pavel Machek  <pavel@lomikel.karlin.mff.cuni.cz>
3677         * vfs.c (vfs_add_noncurrent_stamps): Fixed typo reported by Andrej
3678         Borsenkow <borsenkow.msk@sni.de>
3680 Tue Oct 13 12:42:10 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
3682         * vfs.h (vfs_struct): renamed to avoid namespace conflict
3684 Mon Oct 12 22:42:30 1998  Pavel Machek  <pavel@bug.ucw.cz>
3686         * sfs.c: reuse mmap from local.c
3688         * ftpfs.c, fish.c, shared_ftp_fish.c: horrible reget hack removed,
3689         and replaced with open(,O_LINEAR); lseek() combination
3691 Sun Oct 11 01:44:37 1998  Pavel Machek  <pavel@bug.ucw.cz>
3693         * mcfs.c (open_tcp_link): Moved: it used to be in utilvfs.c, but
3694         as it deals with portmapper, it is probably useful for mcfs
3696         * vfs.h (MCERR_*): these are no longer needed
3698         * vfs.c (vfs_translate_url): translating of url's moved to vfs
3699         code
3701         * all around: trying to reduce namespace pollution. All special
3702         functions (like extfs_run) should be done using mc_setctl()
3703         interface. At the end, all non-static functions in vfs layer
3704         should begin with vfs_ and should be declared in vfs.h (however
3705         that goal is far away).
3707         * all over the code: replace X_vfs_ops to vfs_X_ops
3709 Mon Oct  5 20:11:01 1998  Pavel Machek  <pavel@bug.ucw.cz>
3711         * vfs.c: added stat to avoid hiding files by naming them
3712         #ftp:localhost and similar. Vfs will not treat files as local if
3713         they already exists, regardless of name.
3715 Tue Oct  6 15:34:22 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
3717         * vfs.h: disable BROKEN_PATHS by default. See if you can live
3718         without cd .. from ftp tree putting you to last directory.
3720 Sat Oct  3 14:28:57 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
3722         * ftpfs.c (resolve_symlink): fixed cut'n paste error in my last
3723         change, i.e. make it compile)
3725 Sat Oct  3 01:03:37 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
3727         * ftpfs.c (resolve_symlink): minor speed enhancement
3729 Thu Oct  1 18:39:52 1998  Pavel Roskin  <pavel_roskin@geocities.com>
3731         * vfs.h: vfs_force_expire() was incorrectly #define'd
3733 Tue Sep 29 17:23:03 1998  Pavel Machek  <pavel@atrey.karlin.mff.cuni.cz>
3735         * extfs.c, sfs.c: added few static's to prevent people from doing
3736         stupid things
3738 Mon Sep 28 21:43:16 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
3740         * vfs.h (struct vfs): renamed errno to verrno because glibc2
3741         defines errno as macro (#define errno (*__errno_location ()))
3743 Mon Sep 28 21:34:03 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>
3745         * Makefile.in: search config.status in builddir and not in srcdir/..,
3746         i. e. make it compile for builddir != srcdir
3748 Sun Sep 27 16:16:52 1998  Pavel Machek  <pavel@bug.ucw.cz>
3750         * COPYING.LGPL, all over the code: code is now under Library
3751         General Public License (instead of GPL), so non-free applications
3752         can link to it.
3754 Wed Sep 23 22:37:40 1998  Pavel Machek  <pavel@bug.ucw.cz>
3756         * all over the code: added (vfs *) as first argument for functions
3757         that have no other way to know what fs they belong to. This will
3758         be used by object-like tricks, which will allow us to do real
3759         code-sharing: I do not like #including of .c files.
3761 1998-09-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3763         * shared_ftp_fish.c: Addaed prototypes for linear_start, linear_read,
3764         linear_close
3766 Wed Sep 23 15:09:55 1998  Tom Tromey  <tromey@cygnus.com>
3768         * vfs.h (MIN, MAX): Only define if not already defined; glib.h
3769         also defines them.
3771 Wed Sep 23 13:33:14 1998  Pavel Machek  <pavel@ucw.cz>
3773         * ftpfs.c: Fixed segfault caused by uninitialized variable.
3775 Wed Sep 23 11:51:12 1998  Pavel Roskin  <pavel_roskin@geocities.com)
3777         * ftpfs.c: Special characters were printed via print_vfs_message.
3778         This caused funny effects if "XTerm hintbar" was on.
3780 Mon Sep 21 11:40:30 1998  Pavel Machek  <pavel@ucw.cz>
3782         * ftpfs.c, fish.c: added O_LINEAR mode to handle linear read of
3783         files in sane way. copy_file_file will make temporary files for a
3784         while (fix pending).
3786         * tar.c: fixed bzip/bzip2 compressed archives
3788 Wed Sep 18 12:51:51 1998  Pavel Machek  <pavel@ucw.cz>
3790         * fish.c, vfs.c: created aliases /#ssh: and /#rsh:
3792         * vfs.h: created ERRNOR() macro which sets my_errno and returns,
3793         which makes vfs's _much_ more readable
3795 Fri Sep 18 10:37:28 1998  Pavel Roskin  <pavel_roskin@geocities.com)
3797         * extfs.c: free() was called twice for the same place in memory
3798         in extfs_open()
3800 Tue Sep 15 20:31:32 1998  Norbert Warmuth  <k3190@fh-sw.de>
3802         * ftpfs.c (ftp_use_unix_list_options): New global variable/option.
3803         If true we try to use 'LIST -la <path>'. When it fails we use the
3804         two commands 'CWD <path>' and 'LIST' instead.
3806         (resolve_symlink): rewritten. Don't get a second directory listing
3807         with `LIST -lLa'. Instead use the cache to get the file stat of
3808         symbolic links. If the directory the symlink points to isn't
3809         already in the cache the directory listing will be fetched and
3810         stored in the directory cache (without resolving symlinks
3811         recursively).
3812         The new method to resolve symlinks is faster if symlinks
3813         the same directory or the directory the symlink points to
3814         is already in the cache.
3815         This function was small and nice until I discovered that it was
3816         broken for symlinks to symlinks. Now it looks ugly and perhaps I
3817         will revert it to use "LIST -lLa" again. With a fast connection it
3818         doesn't matter which method we use but with a slow connection I
3819         wouldn't hesitate to burn more CPU cycles on the client side.
3821         (retrieve_dir): Added parameter to tell whether to resolve
3822         symlinks (don't resolve symlinks in directory listings retrieved
3823         while resolving symlinks).
3824         When we don't get a directory listing with 'LIST -la <path>' then
3825         try to get it with `CWD <path>; LIST'.
3827 Tue Sep 15 20:27:29 1998  Norbert Warmuth  <k3190@fh-sw.de>
3829         * ftpfs.c (login_server): s/ftpfs_get_host/my_get_host/
3831         (retrieve_file_start2): Don't create target file O_EXCL, in
3832         copy_file_file we check existence of the target file and know
3833         that we want to truncate it (this change was already done a
3834         while back but it was reverted with the vfs-split).
3836 Tue Sep 15 20:15:42 1998  Norbert Warmuth  <k3190@fh-sw.de>
3838         * ftpfs.h (struct connection): added boolean which indicates that
3839         the ftp server doesn't understand Unix ls options
3841         * ftpfs.h (struct dir): added enum to store symlink status of the
3842         in memory directory cache (directory has no symbolic links;
3843         symbolic links but not yet resolved; symbolic links which are resolved)
3845 Tue Sep 15 20:02:08 1998  Norbert Warmuth  <k3190@fh-sw.de>
3847         * shared_ftp_fish.c, fish.c: updated references to retrieve_dir to
3848         honor the additional boolean parameter
3850 Tue Sep 15 00:42:15 1998  Timur Bakeyev  <mc@bat.ru>
3852         * vfs.h: add vfs_split() declaration, to make sfs.c happy.
3854         * Make-mc.in, Makefile.am: Updated to include fish.c
3856 1998-09-14  Norbert Warmuth  <k3190@fh-sw.de>
3858         * sfs.c (sfs_free): assignment operator was used to check for equality
3860 Fri Sep 11 22:36:38 1998  Pavel Machek  <pavel@ucw.cz>
3862         * sfs.c: memory leak fixed
3864         * vfs.c: split parse_ls_lga into more functions
3866         * fish.c added, now you can access files over rsh/ssh connection
3868         * shared*.c: reworked a bit not to include so many of ugly X_'s
3870 Wed Sep  2 13:59:47 1998  Pavel Machek  <pavel@ucw.cz>
3872         * ftpfs.c: cleanup of code, few static's added
3874         * extfs/uarj: added, still, you need patches to unarj to make this
3875         work
3877         * util-alone.c: now includes code from libvfs.c, so we can kill
3878         libvfs.c (which is good thing as it was non-standard in Makefiles)
3880 Sun Aug 30 13:19:49 1998  Pavel Machek  <pavel@ucw.cz>
3882         * undelfs.c: fixed, it has been broken for too long
3884         * vfs.c, ../src/cmd.c: necessary minor fixes to make undelfs work
3886         * vfs.c: made more fields in *_vfs_ops optional, cleanup of errno
3887         handling in case of NULL in *_vfs_ops.
3889         * extfs.c, ftpfs.c, tar.c: made use of above change
3891         * vfs.c: cleanup of macros generating mc_*()
3893         * libvfs.c: adding variable mc_home
3895 Thu Aug 27 19:45:31 1998  Pavel Roskin  <pavel_roskin@geocities.com>
3897         * extfs.c: mc_extfsdir was not defined in extfs_open()
3899         * Make-mc.in: sfs.c was not compiled, linked and copied out
3900         extfs/sfs.ini was not installed and copied out
3902         * Makefile.am: sfs.c was not linked to standalone VFS
3904 Tue Aug 25 17:54:17 1998  Pavel Machek  <pavel@ucw.cz>
3906         * Added vfs_uid for use by libvfs.so users (rpc.nfsd)
3908         * Added single file filesystem (sfs)
3910         * Added vfs_flags so library users can disable selected
3911         filesystems
3913         * Minor shuffling of functions so garbage collection works for
3914         library
3916 1998-08-20  Raja R Harinath  <harinath@cs.umn.edu>
3918         * Makefile.am (mad.c, mad.h): Create symlinks to counterparts in
3919         `mc-src'.
3921 Wed Aug 12 19:04:48 1998  Pavel Roskin  <pavel_roskin@geocities.com>
3923         * extfs/patchfs: %k replaced with more portable %H in the format
3924         for "date" command
3926         * extfs/extfs.ini: Added patchfs and mailfs. Some comments
3927         changed
3929 Tue Aug 11 15:25:52 1998  Pavel Roskin  <pavel_roskin@geocities.com>
3931         * extfs/rpm: Fix for buggy "cut" on HP-UX 10.20 which ignores
3932         lines without end-of-line.
3934 Mon Jun 01 03:30:07 1998  Alexander Savelyev  <fano@vcom.kiev.ua>
3936         * tar.c (read_header): Support for linkflag on BSDI tar (pax), it
3937         is always 0.
3939 1998-06-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>
3941         * ftpfs.c (ftpfs_open_socket): Potential security break fix.
3943 1998-08-06  Raja R Harinath  <harinath@cs.umn.edu>
3945         * Makefile.am (BUILT_SOURCES): Make it `make dist' friendly.
3946         Don't try building this, yet.
3948 1998-07-31  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>
3950         * Make-mc.in (install.extfs): Split install of $(EXTFS_CONST)
3951         and $(EXTFS_OUT) because the first must be installed from
3952         $(srcdir) and the second from $(builddir).
3954 Fri Jul 24 00:22:30 1998  Tom Tromey  <tromey@cygnus.com>
3956         * Make-mc.in (DISTVFS): Changed Makefile.in to Make-mc.in.
3958         * Makefile.am: New file.
3959         * Make-mc.in: Renamed from Makefile.in.
3960         * Makefile.in: Removed.
3962 Mon Jun 29 15:12:55 1998  Pavel Roskin  <pavel_roskin@geocities.com>
3964         * Makefile.in: Rewritten stuff concerning extfs files.
3966 Mon Jun 22 22:30:00 1998  Manish Vachharajani  <mvachhar@vger.rutgers.edu>
3968         * Makefile.in: Remove arfs, since it doesn't seem to exist
3970 Wed Jun 17 Pavel Machek  <pavel@ucw.cz>
3971         * Rename helper scripts (extfs/{rar|lha|...}.in), so their names
3972         are more logical (and so that things actually work, because new
3973         names are currently in extfs.ini).
3975 Wed Jun 17 Pavel Machek  <pavel@ucw.cz>
3976         * Modified code to use tempnam() instead of tmpnam(), fixed
3977         tempnam() to use NULL instead of 0.
3979 Wed Jun  3 Pavel Machek  <pavel@ucw.cz>
3981         * libvfs.c: adding libvfs.c which should contain things specific
3982         to stand-alone libvfs.so. (This file was missing from previous
3983         merge.)
3985 Mon Jun  1 16:00:19 1998  Norbert Warmuth  <k3190@fh-sw.de>
3987         * ftpfs.c (ftpfs_fill_names): use right character to separate
3988         prefix and username
3990 Mon Jun  1 14:19:20 1998  Bakeyev I. Timur  <mc@bat.ru>
3991         * vfs.c (parse_ls_lga): allow a bit wider range of listings.
3993         * vfs.c (is_time, is_year): new functions
3995 Mon Jun  1 12:47:50 1998  Norbert Warmuth  <k3190@fh-sw.de>
3997         * ftpfs.c (ftpfs_forget): Use the new ftpfs prefix.
3999 Thu May 28 16:42:31 1998  Pavel Machek  <pavel@ucw.cz>
4001         * extfs.c, shared.c, tar.c: I changed semantics in my previous
4002         patch - _get_path() now modifies strings passed to it. I thought
4003         that I were careful enough not to introduce bugs. You guessed it -
4004         I was not. [Many tar_ and extfs_ functions modify strings passed
4005         to them, but as they are only called from vfs layer, it does not
4006         matter much.]
4007         So I renamed function to alert everyone that semantics changed.
4009         Fixed bugs in timestamping (and segfaults) when you entered tar
4010         inside zip file or similar.
4012         * vfs.c (mc_open): Die if the filesystem doesn't support open
4014 ???         Pavel Machek <pavel@ucw.cz>
4016         * shared.c: Shared parts of extfs.c and tar.c are now in shared.c
4018         * util-alone.*: VFS should be able to compile stand-alone into
4019         libvfs.so usable by anyone. This is first step.
4021         * vfs.c & others: syntax change. We no longer use
4022         tar:/path.tar/file. Now, syntax is /path.tar#utar/file, which has
4023         better defined meaning. Similar changes are done to all other
4024         protocols. This change touched really _many_ places of code.
4027 1998-05-26  Miguel de Icaza  <miguel@nuclecu.unam.mx>
4029         * vfs.c (MC_DIROP): Macro now returns the proper value.
4031 1998-05-18  Tamasi Gyorgy (gt_cosy@usa.net)
4033         * Makefile.in ('install' target): 'mcserv' not installed, if
4034         net-code is not enabled by 'configure'.
4036 Thu May 14 02:05:52 1998  Norbert Warmuth  <k3190@fh-sw.de>
4038         * Makefile.in (LIBS): add @LINTL@
4040 Sun May 10 14:51:03 1998  Norbert Warmuth  <k3190@fh-sw.de>
4042         * ftpfs.c (__ftpfs_chdir): CWD command wasn't sent at all. This
4043         optimization is wrong because for directories containing spaces we
4044         have to "CWD <pathname>" and "LIST -la" instead of
4045         "LIST -la <pathname>".
4046         I implemented a different optimization. Now ftpfs_chdir only stores
4047         the new working directory and sets a flag. __ftpfs_chdir is called
4048         when we really want to change the directory on the ftp server.
4050         (resolve_symlink): Log the directory listing to the logfile.
4052         * ftpfs.h (struct ftpfs_connection): Added a (per connection)
4053         cwd_defered flag.
4055 Mon May  4 10:27:49 1998  Norbert Warmuth  <k3190@fh-sw.de>
4057         * Makefile.in: Links to mad.c and mad.h were created wrong when
4058         srcdir != builddir and directory depth to srcdir and builddir were
4059         different (e.g. srcdir=/src/mc and builddir=/src/compile/mc)
4061         * ftpfs.c (retrieve_file_start2): Don't create target file O_EXCL,
4062         in copy_file_file we check existence of the target file and know
4063         that we want to truncate it.
4065 1998-04-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>
4067         * tar.c (read_header): Mark regular files with S_IFREG.
4069 Tue Apr 28 06:06:03 1998  Norbert Warmuth  <k3190@fh-sw.de>
4071         * extfs.c (extfs_open, extfs_close): Changed my_system(1,...) to
4072         my_system(EXECUTE_AS_SHELL,...), this fixes the broken copyin and
4073         copyout of 4.1.32.
4075 1998-04-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>
4077         * ftpfs.c (retrieve_file_start2): Open file exclusively.
4078         (retrieve_file): likewise.
4080 1998-03-31  Philippe De Muyter  <phdm@macqel.be>
4082         * vfs.h: compilation fix for m68k-motorola-sysv
4084 Wed Mar 25 19:01:48 1998  Norbert Warmuth  <k3190@fh-sw.de>
4086         * extfs/hp48: Added a usage summary
4088 Mon Mar 23 00:42:21 1998  Christofer Edvardsen  <ce@earthling.net>
4090         * Makefile.in, extfs/extfs.ini, extfs/hp48: New external
4091         filesystem to view and copy files to/from the HP48.
4093 Wed Feb 11 14:09:02 1998  Oleg  <oleg@pobox.com>
4095         * extfs.c: Add support for writable external file systems.
4096         Required for the httpfs.
4098 Fri Jan 23 07:27:37 1998  Peter Daum  <gator@cs.tu-berlin.de>
4100         * extfs.c (open_extfs_archive): Pass the quoted argument to the
4101         list command.
4103         * mailfs: new file system.
4105 1997-12-21  Yuri Kuzmenko  <Yuri.Kuzmenko@f169.n463.z2.fidonet.org>
4107         * tar.c: fix the bug which core dumps when trying to view tar file
4108         with many files (over 60000).
4110 Mon Jul 21 18:47:37 1997  Miguel de Icaza  <miguel@athena.nuclecu.unam.mx>
4112         * vfs.c (mc_opendir): Do not make conversions between int/void *
4113         to make the code compile and work on the Alpha correctly.
4114         Allocate a pointer to an int and use that instead.
4116 Thu Jul  3 19:08:43 1997  Michele Marziani  <marziani@axpfe1.fe.infn.it>
4118         * extfs/rpm: Small fix for older RPM files.
4120 Mon Jun  9 19:00:30 1997  Norbert Warmuth  <k3190@fh-sw.de>
4122         * vfs/vfs.c (vfs_canon): Fix for the 'cd a:/somedir/..' problem
4124         * vfs/vfs.c (vfs_add_non_current_stamps): when leaving a mtools fs
4125         free the extfs buffers immediately instead of waiting for the vfs-
4126         timeout
4128 Thu May 29 14:50:41 1997  Miguel de Icaza  <miguel@athena.nuclecu.unam.mx>
4130         * vfs.c (vfs_canon): the "local:" case was consuming one extra
4131         character.  This fixes the bug reported by Andrej.  Also, handle
4132         the non-canonical case of arguments to  local:
4134 Tue May 27 20:38:28 1997  Miguel de Icaza  <miguel@athena.nuclecu.unam.mx>
4136         * mcserv.c (get_client): The parent now waits for the first forked
4137         process, getting rid of the zombies.
4139         * utilvfs.c (open_tcp_link): If we can not contact the remote
4140         portmapper, set the protocol version to 1.
4142 Fri May 16 16:42:18 1997  Tomasz K³oczko,  <kloczek@rudy.mif.pg.gda.pl>
4144         * mc.spec: New spec file, this packages mc, mcserv and tkmc.
4146         * lib/mcserv.init, lib/mc.sh, lib/mcserv.pamd: added
4148         * vfs/ext/rpm: instead using sed and rpm -qpi use rpm queries,
4149         more info currently displayed (ChangeLog, OS, URL, packager).
4151 Tue May 13 18:14:49 1997  Wojtek Pilorz  <wpilorz@bdk.lublin.pl>
4153         * vfs/Makefile.in (INSTALL_PROGRAM): Use -m flag for install to
4154         force vfs scripts to be executable on those systems that use
4155         install.sh
4157         * src/utilunix.c: Implement socketpair for SCO flavored systems.
4159 Mon Mar 17 12:03:50 1997  Norbert Warmuth  <k3190@fh-sw.de>
4161         * configure.in (--with-hsc): fix.
4163         * vfs/ftpfs.c (ftpfs_get_proxy_host_and_port): Fixed wrong parameter
4164         passing (HSC_DEFAULT_PORT was passed as pointer to char instead of
4165         passing it as integer)
4167 Tue Feb 25 20:21:00 1997  Joseph M. Hinkle  <jhinkle@rockisland.com>
4169         * extfs/lha: Updated the lha filesystem and included a command
4170         for running an executable from within an lha archive suggested
4171         by Zdenek Kabelac <kabi@informatics.muni.cz>
4173         * extfs/: Renamed cpio, deb, rar, rpm as *.in files and altered
4174         config.in to create these VFS's for cleaner compilation