1 2007-11-02 Pavel Tsekov <ptsekov@gmx.net>
3 * fish.c (fish_dir_load): Check the exit status of the remote command
4 and fail with EACCES if it was unsuccessful.
5 Fix the value returned on error - must be -1 instead of 1.
7 2007-11-02 Vladimir Nadvornik <nadvornik@suse.cz>
9 * smbfs.c (smbfs_convert_path): Replaced NULL with (char *) NULL.
11 2007-10-29 Pavel Tsekov <ptsekov@gmx.net>
13 * fish.c (FISH_OP): Remove the second argument since it is unused.
14 Fix the macro usage troughout.
15 (XTEST): Remove unused macro.
17 2007-10-26 Pavel Tsekov <ptsekov@gmx.net>
19 * fish.c (fish_linear_start): Fix a hang when retrieving unreadable
20 file. Fixes savannah bug #21331.
22 2007-10-11 Pavel Tsekov <ptsekov@gmx.net>
24 * fish.c (fish_linear_start): Use strtol() or strtoll() to retrieve
25 the size of the file being retrieved.
27 2007-09-24 Andrew Borodin <aborodin@vmail.ru>
29 * direntry.c (vfs_s_free_super): Remove redundant code.
31 2007-08-23 Pavel Tsekov <ptsekov@gmx.net>
33 * fish.c (fish_linear_start) [_LARGE_FILES]: Use format string
34 capable of supporting 64 bit file sizes.
36 2007-05-07 Pavel Tsekov <ptsekov@gmx.net>
38 * fish.c: Remove all references to HAVE_HACKED_SSH.
40 2007-04-26 Pavel Tsekov <ptsekov@gmx.net>
42 * fish.c (fish_linear_start): Use _FILE_OFFSET_BITS to determine which
43 length modifier to pass to sscanf(). Use 'll' length modifier instead
44 of 'L' since 'L' is meant for doubles.
46 2006-11-09 Jindrich Novy <jnovy@redhat.com>
48 * fish.c (fish_file_store): Fix copy of file names with backticks to
51 2006-11-01 Jindrich Novy <jnovy@redhat.com>
53 * extfs/rpm: Recognize CONFLICTS.
54 * extfs/trpm: Likewise.
56 2006-10-15 Leonard den Ottolander <leonard den ottolander nl>
58 * utilvfs.c (is_year): Revert range of valid years to 1900 - 3000 as
59 parsing has been fixed.
61 2006-08-01 Leonard den Ottolander <leonard den ottolander nl>
63 * extfs/rpm: Restore legacy RPM tags. There's no harm in keeping them
64 around for backward compatibility.
65 * extfs/trpm: Likewise.
67 2006-07-25 Denis Vlasenko <vda.linux@googlemail.com>
69 * extfs/urar.in (mcrarfs_copyout): Do not query password
70 when extracting password protected entries.
72 2006-07-25 Denis Vlasenko <vda.linux@googlemail.com>
74 * extfs/audio.in (audiofs_copyout): Quote the track name.
75 * extfs/bpp (mcbppfs_list): Quote the package file name.
76 * extfs/uzoo.in (mklink): Quote MC_TMPDIR.
78 2006-07-19 Egmont Koblinger <egmont@uhulinux.hu>
80 * extfs/iso9660.in (test_iso): Use `locale charmap' to retrieve
81 the current character set. If that fails fallback to using
82 the LC_CTYPE field of `locale' output.
83 When invoking `isoinfo' to test whether it supports a given character
84 set tell it to use /dev/null as the cdrom device so that it will bail
85 out immediatly instead of accessing a real drive.
87 2006-07-18 Egmont Koblinger <egmont@uhulinux.hu>
89 * extfs/deb.in (mcdebfs_list): Do not skip over directory entries.
90 Set the locale to C when executing dpkg-deb.
92 2006-07-13 Marcel Pol <mpol@gmx.net>
94 * extfs/rpm: Remove support for obsoleted RPM tags.
95 * extfs/trpm: Likewise.
97 2006-05-28 Leonard den Ottolander <leonard den ottolander nl>
99 * extfs/mailfs.in (parse_date): Output 3 date fields not 4. Range to
100 output time not year is slightly larger than the range used by
101 file_date() in util.c. Prefer using Date::Parse over Date::Manip as the
102 former is faster. Fix fallback for "light version".
103 (process_header): Match header field names case insensitively.
104 (mailfs_list): Improve match for header start.
105 (mailfs_copyout): Likewise.
107 2006-05-05 Andrew V. Samoilov <andrew@email.zp.ua>
109 * extfs/uzip.in (print_file): Use %8s instead of %8d
110 printf() pattern to print really big "realsize"
112 2006-04-18 Pavel Tsekov <ptsekov@gmx.net>
114 * tar.c: Minor cleanup.
116 2006-04-17 Pavel Tsekov <ptsekov@gmx.net>
118 * tar.c (PREFIX_SIZE): New macro definition.
119 (union unused): New union which describes better the trailing bytes
120 of the tar record header.
121 (union record): Do not assume that all tar archives follow the GNU
123 (tar_open_archive_int): Initialize the variable holding the type fo the
125 (tar_read_header): Try to determine the archive format using the
126 `magic' field of the tar record header. Use the `linkflag' field
128 Add support for pathnames of upto 256 characters as stored in ustar
130 Do not access GNU specific fields of the tar record header if the
131 archive is not a GNU one.
132 (tar_fill_stat): Pass pointer to vfs_s_super instead of pointer ot
133 vfs_class as the first argument.
134 Do not access GNU specific fields of the tar record header if the
135 archive is not a GNU one.
137 2006-04-14 Pavel Tsekov <ptsekov@gmx.net>
139 * tar.c (OLDGNU_MAGIC): New macro definition.
140 (TMAGIC): Set to the ustar format magic. It was erronously set
141 to the gnu format magic value.
142 (tar_fill_stat): Try to use the `uname' and `gname' fields if
143 operating on either ustar or gnu archive.
145 2006-04-04 Pavel Tsekov <ptsekov@gmx.net>
147 * sfs.c (sfs_uptodate): Eliminate - it is a noop.
148 Remove all references to `sfs_uptodate'.
150 2006-03-31 Dmitry Butskoj <buc@odusz.so-cdu.ru>
152 * fish.c (fish_file_store): Do not create the target file before
153 determining which method (`head' or `dd') to use.
154 Do not use `head' to transfer data when resuming a file transfer - it is
157 2006-03-30 Dmitry Butskoj <buc@odusz.so-cdu.ru>
159 * fish.c (fish_file_store): Improve the upload speed by using the
160 `head' utility when possible. Fallback to a new improved `dd' method
161 if `head' is not availaible or just stupid.
163 2006-03-30 Pavel Tsekov <ptsekov@gmx.net>
165 * direntry.c (vfs_s_inode_from_path): Revert last change.
167 2006-03-23 Pavel Tsekov <ptsekov@gmx.net>
169 * extfs.c (extfs_done): Free all live archives.
170 Fixes savannah bug #13953.
171 (extfs_free_entries): Comment out - it is unused.
172 (extfs_free_archive): Use extfs_free_entry () instead of
173 extfs_free_entries ().
174 (extfs_free): Reflect the changes above.
177 2006-03-23 Pavel Tsekov <ptsekov@gmx.net>
179 * direntry.c (vfs_s_inode_from_path): Do not give up if a given path
180 does not exist in the directory cache. In such scenario use the
181 underlying vfs to determine whether the path exists or not.
183 2006-03-19 Leonard den Ottolander <leonard den ottolander nl>
185 * extfs/deb.in (mcdebfs_list): Output three date fields, not four.
187 2006-03-19 Leonard den Ottolander <leonard den ottolander nl>
189 * extfs/deb.in: Patrik Rak is mentioned in the header, no need to
190 specify his code blocks in the comments.
192 2006-03-18 Leonard den Ottolander <leonard den ottolander nl>
194 * extfs/uar.in (mcarfs_list): Parse date reported by ar back to three
195 fields as vfs_parse_filedate() only expects three date fields now.
197 2006-03-08 Pavel Tsekov <ptsekov@gmx.net>
199 * ftpfs.c (ftpfs_dir_load): When retrieving the directory listing
200 by using the LIST command _only_ and the output of the command is
201 empty, retry the operation by sending a CWD command followed by a
204 2006-03-06 Arpad Gereoffy (A'rpi) <arpi@mplayerhq.hu>
206 * ftpfs.c (ftpfs_dir_load): Remove redundant call to
207 `ftpfs_translate_path'.
209 2006-02-23 Pavel Roskin <proski@gnu.org>
211 * Makefile.am: Add fish.h.
213 2006-02-23 Pavel Tsekov <ptsekov@gmx.net>
216 * fish.c (fish_directory_timeout): Define new global variable.
217 (FISH_DIRECTORY_TIMEOUT): Eliminate - this macro is not used
219 (fish_dir_load): Use `fish_directory_timeout' to calculate the
220 expiration time of a newly created directory entries.
222 2006-02-23 Pavel Tsekov <ptsekov@gmx.net>
224 * ftpfs.c (ftpfs_dir_uptodate): Remove.
225 (init_ftpfs): Adjust the code to reflect the removal of
226 `ftpfs_dir_uptodate'.
227 * fish.c (fish_dir_uptodate): Remove.
228 (init_fish): Adjust the code to reflect the removal of
230 * direntry.c (vfs_s_dir_uptodate): New function.
231 (vfs_s_init_class): Initialize the `dir_uptodate' field of
234 2006-02-17 Pavel Tsekov <ptsekov@gmx.net>
236 * ftpfs.c (ftpfs_dir_load): Do not return error on empty directory
237 listings if the ftp server indicates that the LIST command completed
240 2006-02-05 Arpie <arpi@mplayerhq.hu>
242 * ftpfs.c (ftpfs_open_socket): Let the user interrupt ftpfs in
243 hostname lookup / connection state.
245 2006-02-03 Roland Illig <roland.illig@gmx.de>
247 * fish.c: Replaced the printf-like attribute with __printf__,
248 since GNU gettext defines a macro printf on some systems.
251 2006-01-28 Pavel Tsekov <ptsekov@gmx.net>
253 * direntry.c (vfs_s_open): Be less restrictive when
254 O_LINEAR is specified and `linear_start' is not
257 2006-01-27 Roland Illig <roland.illig@gmx.de>
259 * mcserv.c: Made mcserv.c work on NetBSD 3.0/i386 with GNU
260 gettext 0.14 installed.
262 2006-01-27 Leonard den Ottolander <leonard den ottolander nl>
264 * utilvfs.c: Do not parse more than 3 date elements to avoid file
267 2006-01-27 Thomas Liske <tholi@fsr.et.tu-dresden.de>
269 * fish.c, xdirentry.h: Fix 2 GB file size limit for fish.
271 2006-01-27 Roland Illig <roland.illig@gmx.de>
273 * utilvfs.c (is_year): The range of valid year numbers is
274 restricted to 1970 .. 2015 to reduce the number of parsing
277 2006-01-25 Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
279 * xdirentry.h (LS_LINEAR_PREOPEN): New macro definition.
280 * direntry.c (vfs_s_open): When opening a file in linear mode,
281 defer the actual open operation until the first read call.
282 (vfs_s_read): When reading in linear mode, open the file
283 on the first read operation.
284 (vfs_s_lseek): When in linear mode, make sure that seeking is
285 allowed only before the first read operation.
286 * ftpfs.c (ftpfs_ctl): Make the code aware of LS_LINEAR_PREOPEN.
287 * fish.c (fish_ctl): Likewise.
289 2006-01-24 Pavel Tsekov <ptsekov@gmx.net>
291 * ftpfs.c (ftpfs_dir_load): Fix a bad ERRNOR call.
293 2006-01-23 Pavel Tsekov <ptsekov@gmx.net>
295 * ftpfs.c (ftpfs_first_cd_then_ls): Enable this functionality
298 2006-01-18 Pavel Tsekov <ptsekov@gmx.net>
300 * tar.c (tar_read_header): Skip over pax extended header and
301 global extended header records.
303 2005-11-15 Pavel Roskin <proski@gnu.org>
305 * samba/lib/netmask.c: Include <stdlib.h> for exit() and
306 <string.h> for memcpy().
308 2005-11-11 Pavel Roskin <proski@gnu.org>
310 * samba/lib/netmask.c: Add get_netmask() prototype for the dummy
313 2005-11-10 Pavel Roskin <proski@gnu.org>
315 * samba/lib/util_sock.c: Fix warnings on 64-bit systems.
317 * mcserv.c (get_client): Fix gcc 4 warning.
319 * smbfs.c: Remove redundant ipzero declaration.
321 2005-10-19 Leonard den Ottolander <leonard den ottolander nl>
323 * fish.c (fish_dir_load, fish_linear_start): Get numerical gid/uids
324 from ls to avoid wrong parsing of user/group names containing white
327 2005-10-09 Boris Belitsky <?>
329 * ftpfs.c (ftpfs_command): Fix "Nowhere to fallback to" warning
330 caused by fallback to acitve mode after inactivity.
332 2005-09-26 Roland Illig <roland.illig@gmx.de>
334 * extfs/iso9660.in: Ignore error messages from locale(1), as it
335 does not exist on OpenBSD. Reported by q# on mc-devel.
337 2005-09-26 Roland Illig <roland.illig@gmx.de>
339 * utilvfs.h (vfs_parse_filetype, vfs_parse_fileperms,
340 vfs_parse_filemode): Rewrote the functions to parse Unix file
342 * utilvfs.c: Likewise.
343 * fish.c: Using the new parsing functions.
345 2005-09-15 Andrew V. Samoilov <sav@bcs.zp.ua>
347 * samba/lib/util.c (tab_depth): Remove.
348 * samba/include/byteorder.h: Remove all macroces with tab_depth().
349 * vfs/samba/lib/util_sock.c: Comment out read_smb_length(),
350 send_null_session_msg(), send_one_packet(), send_smd()
351 and read_smb_length().
352 * vfs/samba/libsmb/nmblib.c: Comment out copy_nmb_packet(),
353 copy_dgram_packet(), copy_packet() and nmb_name_equal().
355 2005-09-07 Roland Illig <roland.illig@gmx.de>
357 * samba/*: Added many const qualifiers to properly fix the
358 warnings emitted by gcc with -Wwrite-strings.
361 2005-09-05 Roland Illig <roland.illig@gmx.de>
363 * direntry.c: Added const qualifiers to work around gcc
369 * xdirentry.h: Likewise.
370 * samba/: Added a const qualifier to setup_logging().
371 * smbfs.c: Removed dbghdr_wrapper. Removed all const_cast
374 2005-08-15 Roland Illig <roland.illig@gmx.de>
376 * vfs-impl.h (union vfs_dirent): Using the offsetof macro
377 instead of null pointer arithmethics.
378 * ftpfs.c: Code cleanup.
379 * direntry.c: Removed an unused variable.
381 2005-07-31 Roland Illig <roland.illig@gmx.de>
383 * samba: Added some const qualifiers to reduce the number of gcc
386 2005-07-25 Pavel Roskin <proski@gnu.org>
388 * extfs/urar.in: Remove month translation and year windowing -
389 they are better handled by mc. Use more robust date format.
392 * extfs/uzip.in: Preserve seconds. Avoid month translation - it
393 only slows down processing.
395 * extfs/ualz.in: Fix compatibility with unalz 0.51.
397 2005-07-22 Pavel Roskin <proski@gnu.org>
399 * extfs/ualz.in: Anticipate eventual posixification of the date
402 2005-07-20 Pavel Roskin <proski@gnu.org>
404 * extfs/ualz.in: New file - support for ALZip archives.
405 * extfs/Makefile.am: Add ualz.
406 * extfs/extfs.ini: Likewise.
408 2005-07-06 Pavel Tsekov <ptsekov@gmx.net>
410 * tar.c (tar_read_header): Properly handle non \0 terminated tar
411 entries with name of length NAMSIZ.
413 2005-07-05 Roland Illig <roland.illig@gmx.de>
415 * vfs.h, vfs-impl.h, vfs.c, local.h, local.c, sfs.c: Removed
416 support for mmap() and munmap() from the VFS. It is unused and
417 cannot be applied to remote file systems.
419 2005-07-03 Roland Illig <roland.illig@gmx.de>
421 * xdirentry.h: Added missing #include directives.
423 2005-06-21 Pavel Roskin <proski@gnu.org>
425 * extfs/u7z: New file - support for 7zip archives.
426 * extfs/Makefile.am: Add u7z.
427 * extfs/extfs.ini: Likewise.
429 * ftpfs.c (ftpfs_get_current_directory): Warning fix - "missing
430 sentinel in function call".
432 2005-06-08 Roland Illig <roland.illig@gmx.de>
434 * smbfs.c (free_after): Moved here from src/util.h.
435 * fish.c (fish_ctl): Commented out some unused code with
436 #if 0 ... #endif. This fixes a warning from SunPro.
437 * mcfs.c (mcfs_get_remote_port): Shift an #endif two lines down
438 to avoid a warning from SunPro.
440 2005-05-29 Leonard den Ottolander <leonard * den ottolander nl>
442 * ftpfs.[ch]: Added variables and assignment to allow passive
445 2005-05-24 Roland Illig <roland.illig@gmx.de>
447 * samba/param/loadparm.c: Fixed warnings reported by gcc-2.95.
448 * dirent.c (split_dir_name): Don't assign a string literal to a
449 char *. Use '\0' instead of 0 when operating on characters.
450 * samba/lib/charcnv.c: Added const qualifiers.
452 2005-05-20 Pavel Roskin <proski@gnu.org>
454 * extfs.c: Fix warnings reported by gcc 4.0.0.
456 2005-05-13 Roland Illig <roland.illig@gmx.de>
458 * ftpfs.c: Using HAVE_SOCKLEN_T instead of HAVE_C_TYPE_SOCKLEN_T.
460 2005-05-11 Pavel Roskin <proski@gnu.org>
462 * samba/lib/util_sock.c: Fix gcc 4.0 warnings.
464 * samba/lib/debug.c (dbghdr): Constify arguments file and func.
466 2005-05-10 Pavel Roskin <proski@gnu.org>
468 * utilvfs.c: Fix gcc 4.0 warnings.
470 * samba/include/includes.h: Don't include grp.h twice.
472 2005-04-21 Andrew V. Samoilov <sav@bcs.zp.ua>
474 * utilvfs.c (is_localized_month): Check "month" for NULL and
475 forbid punctuation characters in localized month abbreviation.
477 2005-04-13 Roland Illig <roland.illig@gmx.de>
479 * vfs.h: Fixed prototypes for mc_read() and mc_write(). Now they
480 get void * instead of char *.
483 2005-03-31 Pavel S. Shirshov <me@pavelsh.pp.ru>
485 * extfs/uarj.in (mcarjfs_copyout): Use the regular extract command,
486 instead of redirecting all the output of the print (p) command.
488 From w.v.velzen@sercom.nl
490 2005-03-29 Andrew V. Samoilov <sav@bcs.zp.ua>
492 * samba/param/loadparm.c: Remove init_locals(), lp_smb_passwd_file(),
493 lp_passwd_program(), lp_passwd_chat(), lp_unix_password_sync(),
494 lp_max_open_files(), lp_shmem_size(), lp_lpqcachetime(),
495 lp_syslog(), lp_driverlocation().
496 (file_lists): Commented out.
497 (add_to_file_list): Comment out and make a do nothing macro.
499 2005-03-29 Pavel Roskin <proski@gnu.org>
501 * cpio.c (cpio_find_head): Fix for logical error that can cause
502 crash on broken cpio archives.
504 2005-02-22 Roland Illig <roland.illig@gmx.de>
506 * *.c: Declared unused variables with (void) to avoid the gcc
508 * extfs.c (extfs_get_path_mangle, extfs_get_path): Removed unused
510 * ftpfs.c (ftpfs_netrc_bad_mode): Likewise.
511 * vfs.c (mc_def_getlocalcopy): Likewise.
513 2005-02-19 Roland Illig <roland.illig@gmx.de>
515 * utilvfs.h: Removed unneeded #includes.
516 * *.c: Added the #includes that have been removed from utilvfs.h.
517 * tcputil.c: Just removed the unneeded #include "utilvfs.h".
519 2005-02-18 Roland Illig <roland.illig@gmx.de>
521 * *.h: Renamed the multiple inclusion guards.
523 2005-02-14 Andrew V. Samoilov <sav@bcs.zp.ua>
525 * samba/lib/util_str.c: Comment out strhasupper(), strhaslower(),
526 toktocliplist(), strncpyn(), strhex_to_str(), all_string_sub(),
527 strnorm(), strisnormal() and split_at_last_component().
528 * samba/lib/time.c: Comment out http_timestring().
529 * samba/lib/util.c: Comment out Protocol, trans_num, case_sensitive,
530 case_preserve, use_mangled_map, short_case_preserve, case_mangle,
532 Make sam_logon_in_ssb and case_default const.
533 (samlogon_user): Make char* instead of pstring.
534 * samba/libsmb/clientgen.c: Comment out cli_api_pipe(),
535 cli_NetWkstaUserLogon(), cli_tdis(), cli_nt_create(), cli_ulogoff(),
536 cli_lock(), cli_unlock(), cli_message_start(), cli_message_text()
537 and cli_message_end().
538 * samba/libsmb/namequery.c (global_in_nmbd): Make const.
539 (find_master_ip): Comment out.
540 * samba/libsmb/nmblib.c: Comment out matching_bits(), sort_ip,
541 name_query_comp() and sort_query_replies().
543 2005-02-12 Jindrich Novy <jnovy@redhat.com>
545 * vfs.c (vfs_translate_url): Add support for smb://, sh://,
546 ssh:// and mc:// filesystem requests. Introduced separate table
548 * util.c (strip_password): Modifications to take the aliases into
549 account while eliminating passwords.
551 The original patch was extended by Roland Illig.
553 2005-02-12 Andrew V. Samoilov <sav@bcs.zp.ua>
555 * samba/lib/netmask.c [HAVE_NETMASK_AIX && HAVE_UNISTD_H]: Include
556 <unistd.h> to fix gcc 3.3 warnings about undeclared close().
558 2005-02-09 Roland Illig <roland.illig@gmx.de>
560 * extfs/uzip.in: Widened the regular expression for infozip to
561 also detect non-Unix file listings.
563 Patch provided by Jindrich Makovicka <makovick * kmlinux.fjfi.cvut.cz>
565 2005-02-08 Roland Illig <roland.illig@gmx.de>
567 * cpio.c: Added some FIXMEs about data representation.
569 2005-02-02 Andrew V. Samoilov <sav@bcs.zp.ua>
571 * samba/include/proto.h: Adjust for the last changes.
573 * samba/lib/util.c: Comment out unused ra_type, in_group(),
574 get_numlist(), Atoic(), dns_to_netbios_name(), name_interpret(),
575 directory_exist(), file_size(), unix_format(), dos_format(),
576 close_low_fds(), name_ptr(), name_extract(), unix_do_match(),
577 unix_mask_match(), do_match(), mask_match(), readdirname(),
578 interpret_protocol(), is_in_path(), set_namearray(),
579 free_namearray(), fcntl_lock(), is_myname(), set_remote_arch(),
580 get_remote_arch(). align2(), out_ascii() and out_data().
582 (reg_get_subkey): Remove.
583 (reg_split_key): Remove.
585 * samba/lib/system.c: Comment out sys_lstat(), sys_fseek(),
586 sys_ftell(), sys_readdir(), sys_getwd(), sys_chown(), sys_random()
589 * samba/libsmb/clientgen.c (cli_qpathinfo): Comment out.
590 (cli_qpathinfo2): Comment out.
591 (cli_printjob_del): Remove.
592 (cli_print_queue): Remove.
593 (cli_dskattr): Comment out.
595 2005-02-01 Andrew V. Samoilov <sav@bcs.zp.ua>
597 * samba/lib/username.c (map_username): Comment out.
598 (user_in_list): Ditto.
600 2005-01-27 Roland Illig <roland.illig@gmx.de>
602 * cpio.c (cpio_read_crc_head): Fixed device number handling for
604 * fish.c (fish_dir_load): Likewise.
605 * utilvfs.c (vfs_parse_ls_lga): Likewise.
607 2005-01-25 Andrew V. Samoilov <sav@bcs.zp.ua>
609 * samba/Makefile.in: Remove BINDIR and SBINDIR.
611 * samba/param/loadparm.c: Comment out some more unused code.
613 * samba/param/loadparm.c (print_parameter): Remove.
614 (is_default): Remove.
615 (dump_globals): Remove.
616 (dump_a_service): Remove.
618 (lp_dump_one): Remove.
619 (lp_remove_service): Remove.
620 (lp_copy_service): Remove.
622 2005-01-20 Andrew V. Samoilov <sav@bcs.zp.ua>
624 * Makefile.am (SAMBA_DIST): Remove lib/genrand.c and lib/util_unistr.c.
625 * samba/Makefile.in (SAMBAFILES): Remove lib/genrand.o and
628 * samba/libsmb/clientgen.c (cli_oem_change_password): Removed.
629 * samba/libsmb/smbencrypt.c (make_oem_passwd_hash): Removed.
630 * samba/lib/util_sock.c (reset_globals_after_fork): Removed.
632 * samba/lib/util_file.c: Comment out all but fgets_slash().
634 * samba/lib/util.c: Comment out some more unused functions.
635 (global_myworkgroup): Remove unused variable.
636 (def_finfo): Make const.
637 (remote_proto, remote_arch): Make static const char * instead of
639 (local_machine, remote_machine): Ditto.
640 * samba/libsmb/clientgen.c (interpret_long_filename): Fix
641 def_finfo declaration.
643 2005-01-19 Andrew V. Samoilov <sav@bcs.zp.ua>
645 * ftpfs.c (ftpfs_file_store): Make sure we write() all read() data.
646 Check fstat() return value.
648 2005-01-07 Roland Illig <roland.illig@gmx.de>
650 * extfs/urar.in: Fixed some quoting issues.
652 Original patch by Leonard den Ottolander.
654 2004-12-29 Andrew V. Samoilov <sav@bcs.zp.ua>
656 * extfs.c (struct inode): Remove unused linkflag field.
657 (extfs_internal_stat): Eliminate "inode" variable.
658 (extfs_fstat): Likewise.
659 (extfs_unlink): Fix memory leak if extfs_get_path_mangle() fails.
661 2004-12-28 Dmitry Butskoj <buc@odusz.so-cdu.ru>
663 * fish.c (fish_linear_abort): Fix bug with FISH vfs. It freezes MC on
666 2004-12-27 Andrew V. Samoilov <sav@bcs.zp.ua>
668 * extfs.c (extfs_generate_entry): Initialize inode->last_in_subdir.
669 (extfs_read_archive): Likewise. Remove unneeded test.
670 Fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286990
672 * extfs/ulha.in (mc_lha_fs_list): Use $NF instead of $10 as filename
673 for permission intention.
674 Fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286990
676 2004-12-10 Roland Illig <roland.illig@gmx.de>
678 * extfs/uzip.in: Fix handling of archive member pathnames starting
681 2004-12-07 Roland Illig <roland.illig@gmx.de>
683 * ext.c: Fixed FIXME by passing around a reference to a VFS.
685 2004-12-01 Pavel Tsekov <ptsekov@gmx.net>
687 * tar.c (tar_read_header): Skip over records containing
688 incremental tar specific info.
690 2004-11-29 Jindrich Novy <jnovy@redhat.com>
692 * direntry.c (vfs_s_readlink): Correctly calculate link length.
694 2004-11-29 Andrew V. Samoilov <sav@bcs.zp.ua>
696 * fish.c (fish_file_store): Check write() more carefully.
697 (PREFIX): Fix memory leak.
698 (fish_##name): Likewise.
699 (fish_chown): Likewise.
701 2004-11-26 Andrew V. Samoilov <sav@bcs.zp.ua>
703 * direntry.c (vfs_s_open): Fix memory leak.
704 (vfs_s_retrieve_file): Check write() return more carefully.
706 2004-11-16 Roland Illig <roland.illig@gmx.de>
708 * extfs/patchfs.in: Allow extraction and deletion of patches
709 whose filenames start with "../" or "./".
711 2004-11-15 Leonard den Ottolander <leonard * den ottolander nl>
713 * vfs.c: Changed types for mc_chmod, mc_chown, mc_mknod to mode_t,
714 uid_t, gid_t, and dev_t where appropriate.
717 Patch extended by Roland Illig.
719 2004-11-15 Leonard den Ottolander <leonard * den ottolander nl>
721 * vfs.c: fix MC_NAMEOP macro calls to use the canonicalized path.
723 2004-11-10 Roland Illig <roland.illig@gmx.de>
725 * audio.in (audiofs_list): Fixed quoting issue.
726 (audiofs_copyout): Likewise.
727 * uar.in (mcarfs_copyin): Likewise.
728 * uha.in (mchafs_copyout): Likewise.
729 * ulha.in (mc_lha_fs_run): Likewise.
731 2004-11-08 Pavel S. Shirshov <me@pavelsh.pp.ru>
733 * vfs.c (vfs_prefix_to_class): Avoid last class (localfs) that would
736 2004-11-04 Mike Gorchak <mike@malva.ua>
738 * cpio.c (cpio_create_entry): Added initial support for the Special
739 Named Files. Needed on QNX Neutrino.
740 * utilvfs.c (vfs_parse_filetype): Likewise.
742 2004-11-02 Roland Illig <roland.illig@gmx.de>
744 * ftpfs.c: Add fallback to type int if socklen_t is not provided.
746 2004-11-01 Andriy Gritsenko <andrej * rep kiev ua>
748 * tar.c (tar_read_header): Fix pathname canonicalization.
750 2004-10-29 Pavel S. Shirshov <me@pavelsh.pp.ru>
752 * extfs/iso9660.in (mcisofs_list): Fix regular expression for stripping
753 of file name. Use autotools macro for awk instead of full path.
755 2004-10-28 Leonard den Ottolander <leonard * den ottolander nl>
757 * extfs/iso9660.in (mcisofs_list): Fix stripping of file name
760 2004-10-28 Andrew V. Samoilov <sav@bcs.zp.ua>
762 * fish.c (fish_open_archive_int): Fix missed "%s".
764 2004-10-27 Roland Illig <roland.illig@gmx.de>
766 * ftpfs.c (ftpfs_initconn): Replace int with socklen_t where
767 appropriate. (ftpfs_open_data_connection): Likewise.
769 2004-10-27 Leonard den Ottolander <leonard * den ottolander nl>
771 * tar.c (tar_read_header): q should not point to a static string.
774 * extfs/iso9660.in: Fix quoting issues.
775 * extfs/trpm: Likewise. Put -- before "$1" to stop argument parsing.
777 2004-10-25 Andrew V. Samoilov <sav@bcs.zp.ua>
779 * smbfs.c (smbfs_open_readwrite): Comment out flags games,
780 it is cli_open() headache.
782 * vfs.c (mc_def_getlocalcopy): Don't close fd -1.
783 (_vfs_get_class): Make path "char *" instead of
784 "const char *" because it write to path.
786 (vfs_get_class): Use g_strdup()/g_free() to do "pathname"
787 really "const char *".
789 2004-10-23 Roland Illig <roland.illig@gmx.de>
791 * README: Add explanation for using GPL licensed code from
794 From Leonard den Ottolander and Roland Illig.
796 2004-10-21 Roland Illig <roland.illig@gmx.de>
798 * mcfs.c: Add INADDR_NONE definition for SunOS.
799 * mcserv.c: Likewise. (struct user_pass): Add "const" qualifier.
801 2004-10-18 Roland Illig <roland.illig@gmx.de>
803 * extfs/hp48.in: Correct quoting from last patch. Avoid a
804 subshell when none is needed.
806 2004-10-18 Roland Illig <roland.illig@gmx.de>
808 * extfs/audio.in: Fix even more quoting issues.
809 * extfs/hp48.in: Likewise.
811 Patch from q# <eth0 o2 pl>.
813 2004-10-18 Roland Illig <roland.illig@gmx.de>
815 * extfs/uar.in: Improve filename quoting. Add error messages.
817 2004-10-17 Roland Illig <roland.illig@gmx.de>
819 * extfs/audio.in: Fix quoting issues.
820 * extfs/hp48.in: Fix quoting issues.
822 From Leonard den Ottolander.
824 2004-10-17 Andrew V. Samoilov <sav@bcs.zp.ua>
826 * undelfs.c (undelfs_open): Use g_try_malloc() instead
829 * smbfs.c (smbfs_send): Don't account negative "ret".
831 2004-10-16 Roland Illig <roland.illig@gmx.de>
833 * tar.c (tar_read_header): Fixed handling of filenames starting
836 2004-10-06 Andrew V. Samoilov <sav@bcs.zp.ua>
838 * cpio.c (cpio_find_head): Check mc_read() return value.
839 (cpio_read_crc_head): Handle mc_read() return value properly.
840 (cpio_read_oldc_head): Use union for "st" and "buf".
841 (cpio_read_crc_head): Likewise.
843 2004-10-06 Alexander Savelyev <i@fano.com.ua>
845 * xdirentry.h (linear_start): Use off_t for offset.
846 * ftpfs.c (ftpfs_linear_start): Likewise.
847 * fish.c (fish_linear_start): Likewise.
849 2004-10-05 Miroslav Rudisin <miero+gnu@atrey.karlin.mff.cuni.cz>
851 * utilvfs.c (vfs_split_url): Add support for '@' in username.
853 2004-09-27 Andrew V. Samoilov <sav@bcs.zp.ua>
855 * smbfs.c (smbfs_forget): Check smbfs_connections[i].cli
856 to avoid possible segmentation fault. Close
857 https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=8974
859 2004-09-26 Roland Illig <roland.illig@gmx.de>
861 * vfs.c (_vfs_get_class): Revert my last patch because
862 Leonard reported it to make mc crash.
864 2004-09-25 Roland Illig <roland.illig@gmx.de>
866 * ftpfs.c (ftpfs_find_machine): Added const qualifier.
867 * mcserv.c (do_auth): Likewise.
868 * utilvfs.c (is_month): Likewise.
871 * vfs.c (_vfs_get_class): Added const qualifier.
872 (vfs_prefix_to_class): Added a string length parameter to
873 reduce the use of g_strdup().
874 (vfs_split): Changes due to the new string length parameter.
876 2004-09-25 Pavel S. Shirshov <me@pavelsh.pp.ru>
878 * direntry.c (vfs_s_free_entry): g_free handles NULL argument too,
879 no need for the comparison.
880 * extfs.c (extfs_free_archive): Likewise.
881 (extfs_open_archive): Likewise.
882 (extfs_read_archive): Likewise.
883 (extfs_remove_entry): Likewise.
884 (extfs_free_entry): Likewise.
885 * fish.c (fish_open_archive): Likewise.
886 (fish_archive_same): Likewise.
887 * ftpfs.c (ftpfs_split_url): Likewise.
888 * local.c (local_closedir): Likewise.
889 * mcserv.c (close_handle): Likewise.
890 * smbfs.c (smbfs_free_bucket): Likewise.
891 * tar.c (tar_read_header): Likewise.
892 * undelfs.c (undelfs_shutdown): Likewise.
893 * vfs.c (vfs_shut): Likewise.
895 2004-09-24 Roland Illig <roland.illig@gmx.de>
897 * vfs.c (mc_open): Corrected FIXME. Now the "mode" parameter is
898 only accessed when flags contains O_CREAT.
900 2004-09-24 Roland Illig <roland.illig@gmx.de>
902 * cpio.c: Replaced NULL with (char *) NULL. Likewise for 0, where
904 * direntry.c: Likewise.
910 * undelfs.c: Likewise.
913 2004-09-23 Roland Illig <roland.illig@gmx.de>
915 * cpio.c (cpio_read_bin_head): Replaced GUINT16_SWAP_LE_BE with
916 GUINT16_SWAP_LE_BE_CONSTANT, because GCC-3.3 emitted a warning about
919 2004-09-22 Roland Illig <roland.illig@gmx.de>
921 * direntry.c (vfs_s_new_entry): see 2004-09-19. Additionally followed the advice
922 concerning g_strdup in /HACKING.
923 (vfs_s_generate_entry): Likewise.
924 (vfs_s_find_entry_linear): Likewise.
925 (vfs_s_find_inode): Likewise.
926 * xdirentry.h: Likewise.
928 2004-09-22 Pavel S. Shirshov <me@pavelsh.pp.ru>
930 * direnty.c (vfs_s_new_entry): Revert last changes.
931 (vfs_s_generate_entry): Likewise.
932 (vfs_s_find_entry_linear): Likewise.
933 (vfs_s_find_inode): Likewise.
934 * xdirentry.h: likewise.
936 2004-09-19 Roland Illig <roland.illig@gmx.de>
938 * direntry.c: Added const qualifier to function declarations and
939 variables. Introduced local modifiable strings where necessary.
940 * xdirentry.h: likewise.
942 2004-09-18 Roland Illig <roland.illig@gmx.de>
944 * smbfs.c (smbfs_init): Added a cast to avoid compiler warning.
946 2004-09-17 Pavel S. Shirshov <me@pavelsh.pp.ru>
948 * extfs.c (extfs_open_archive): Fixes bug in extfs, which showed
949 'Inconsistent extfs archive' on small archives and diffs.
950 QNX 6.x (QNX Neutrino) specific
952 Based on patch from Dmitry Alexeyev <dmi_a@qnx.org.ru>
954 2004-09-06 Jakub Jelinek <jakub@redhat.com>
956 * fish.c (fish_file_store): Call got_interrupt() instead of testing
957 whether got_interrupt is non-NULL (it always is).
959 2004-09-04 Pavel S. Shirshov <me@pavelsh.pp.ru>
961 * vfs.c (vfs_cmp_handle): Fix warnings on 64-bit platforms.
963 (vfs_info): Likewise.
964 (vfs_free_handle): Likewise.
965 * extfs/rpm (mcrpmfs_run): Quote parameters to calls
966 to system/open that spawn a shell.
967 * direntry.c (vfs_s_find_entry_tree): Make "size" size_t.
969 Based on patches from Jakub Jelinek <jakub@redhat.com>
971 2004-09-02 Andrew V. Samoilov <sav@bcs.zp.ua>
973 * tar.c (tar_read_header): Fix missed *.
974 * extfs.c (extfs_readlink): Revert last change: readlink() does not
975 append a NUL character to buf.
976 * mcfs.c (mcfs_readlink): Likewise.
977 * direntry.c (vfs_s_readlink): Likewise.
978 * ftpfs.c: Warning fix.
979 * vfs-impl.h (struct vfs_class.readlink): Make "size" size_t.
981 * local.c (local_readlink): Make "size" size_t.
982 * sfs.c (sfs_readlink): Reformat function.
983 * smbfs.c (smbfs_readlink): Reformat function.
985 2004-09-02 Roland Illig <roland.illig@gmx.de>
987 * mcfs.c (mcfs_readlink): Fixed syntax error (usage of
988 undeclared variable). Simplified string copying.
990 2004-09-02 Pavel S. Shirshov <me@pavelsh.pp.ru>
992 * extfs/uzip.in (mczipfs_list): Add support for negative
993 compression ratio in archive listing.
995 2004-09-02 Pavel S. Shirshov <me@pavelsh.pp.ru>
997 * direntry.c (vfs_s_readlink): Use g_strlcpy() instead of strncpy().
998 * ftpfs.c (ftpfs_get_reply): Use g_strlcpy() instead of strncpy().
999 * extfs.c (extfs_readlink): Fix return value. Use g_strlcpy()
1000 instead of strncpy().
1001 * mcfs.c (mcfs_readlink): Ditto.
1002 * tar.c (tar_read_header): Add additional check for consistency.
1004 * cpio.c (cpio_defer_find): Remove recursion.
1005 (cpio_free_archive): Fix memory leak.
1006 (cpio_read_bin_head): Use union for simplicity using of header
1007 structure. Add additional check for consistency.
1008 (cpio_read_oldc_head): Add additional check for consistency.
1010 Based on patches from Jakub Jelinek <jakub@redhat.com>
1012 2004-09-01 Pavel S. Shirshov <me@pavelsh.pp.ru>
1014 * fish.c (fish_get_reply): Use g_strlcpy() instead of
1015 sequence strncpy(), name[len] = '\0'
1016 * vfs.c (mc_get_current_wd): Likewise.
1018 2004-08-31 Andrew V. Samoilov <sav@bcs.zp.ua>
1020 * utilvfs.c (vfs_parse_ls_lga): Use atoll()/atof() instead of atol()
1021 for st_size to show file sizes > 2G.
1022 * fish.c (fish_dir_load): Likewise.
1023 * extfs.c (struct inode): Use off_t for size.
1025 Reported by Daradics Daniel <yotzo@freemail.hu>.
1027 2004-08-29 Roland Illig <roland.illig@gmx.de>
1029 * Code cleanup: Added const qualifier for variables and
1030 function declarations where possible. No functional changes.
1032 2004-08-27 Andrew V. Samoilov <sav@bcs.zp.ua>
1034 * smbfs.c (smbfs_open_readwrite): Implement O_APPEND via smbfs_lseek().
1036 2004-08-26 Roland Illig <roland.illig@gmx.de>
1038 * undelfs.c (undelfs_lstat): Adjusted declaration.
1039 (undelfs_stat): Defined to undelfs_lstat.
1041 From Andrew V. Samoilov <sav@bcs.zp.ua>.
1043 2004-08-26 Pavel S. Shirshov <me@pavelsh.pp.ru>
1045 * direntry.c: Use g_strlcpy() instead of strncpy() to fix buffer
1047 * extfs.c: Likewise.
1049 * smbfs.c: Likewise.
1050 * utilvfs.c: Likewise.
1052 2004-08-26 Roland Illig <roland.illig@gmx.de>
1054 * vfs.c (mc_chdir): Fixed memory leak.
1056 2004-08-22 Leonard den Ottolander <leonard * den ottolander nl>
1058 * vfs/extfs/a.in: Quote parameters to calls to system/open that spawn
1060 * vfs/extfs/apt.in: Likewise.
1061 * vfs/extfs/debd.in: Likewise.
1062 * vfs/extfs/dpkg.in: Likewise.
1063 * vfs/extfs/deba.in: Clean up earlier fixes to quotation of parameters.
1064 * vfs/extfs/deb.in: Likewise.
1066 2004-08-24 Roland Illig <roland.illig@gmx.de>
1068 * extfs.c (extfs_internal_stat): Fixed memory leaks introduced
1069 by my change from 2004-08-16. (extfs_unlink): likewise.
1071 * ftpfs.c (ftpfs_send_command): likewise.
1073 2004-08-21 Pavel S. Shirshov <me@pavelsh.pp.ru>
1075 * extfs/urar.in: Fix non-POSIX constructs.
1077 From Koblinger Egmont <egmont@uhulinux.hu>
1079 2004-08-21 Pavel S. Shirshov <me@pavelsh.pp.ru>
1081 * extfs/rpm: Modified workaround for spaces and single quotes
1084 Based on patch from Jakub Jelinek <jakub@redhat.com>
1086 2004-08-21 Pavel S. Shirshov <me@pavelsh.pp.ru>
1088 * extfs/rpm: Don't show cpio contents in main rpm view.
1089 Also avoids copying files from main view instead of from
1090 inside CONTENTS.cpio. The former is painfully slow as the whole
1091 file is rpm2cpio'd on each copy.
1093 From Jakub Jelinek <jakub@redhat.com>
1095 2004-08-21 Pavel S. Shirshov <me@pavelsh.pp.ru>
1097 * samba/lib/util.c (tmpdir): Use MC_TMPDIR environment variable.
1098 (automount_lookup): More secure code.
1100 2004-08-19 Roland Illig <roland.illig@gmx.de>
1102 * extfs/deb.in (mcdebfs_list): Separated the use of quoted and
1103 unquoted variables. (mcdebfs_copyout): likewise.
1104 (mcdebfs_run): likewise.
1106 From Leonard den Ottolander <leonard * den.ottolander.nl>
1108 2004-08-19 Roland Illig <roland.illig@gmx.de>
1110 * extfs/deba.in (list): Separated the use of quoted and unquoted
1111 variables. (copyout): likewise. (run): likewise.
1113 From Leonard den Ottolander <leonard * den.ottolander.nl>
1115 2004-08-19 Roland Illig <roland.illig@gmx.de>
1117 * extfs/deba.in (bt): deleted. (ft): deleted. (fm): deleted.
1118 (ls): deleted. (list): correctly quoted shell command arguments.
1119 (copyout): likewise. (run): likewise.
1121 From Leonard den Ottolander <leonard * den.ottolander.nl>
1123 2004-08-19 Roland Illig <roland.illig@gmx.de>
1125 * smbfs.c: Modified smbfs_convert_path() based on a patch sent by
1126 Andrew V. Samoilov. Adjusted the calls to smbfs_convert_path().
1127 Simplified string handling by using free_after() from src/util.h.
1128 Fixed one memory leak and one accidental modification.
1130 2004-08-18 Pavel S. Shirshov <me@pavelsh.pp.ru>
1132 * extfs/rpm: Command line parameters fix for UPGRADE.
1133 Fix mcrpmfs_copyout for INFO/OBSOLETES and INFO/LICENSE
1135 From Leonard den Ottolander <leonard * den.ottolander.nl>
1137 2004-08-16 Roland Illig <roland.illig@gmx.de>
1139 * cpio.c: Renamed various variables called "stat" into "st" to
1140 avoid name conflicts with the POSIX function stat. No functional
1143 * direntry.c: Added const modifier where appropriate. No functional
1146 * extfs.c: Made the parameters constant, making local copies
1151 * ftpfs.c: Changed most char * parameters to const char *, creating
1152 local copies if necessary.
1156 * local.c: Changed most char * parameters to const char *. No
1163 * smbfs.c: likewise.
1165 * utilvfs.c: likewise.
1167 * mcserv.c: Added guards around the #includes for <getopt.h> and
1168 <security/pam_misc.h>. No functional changes.
1170 * smbfs.h: Cleaned up header inclusion guard.
1172 * vfs.h: Has been split up into vfs.h (for clients) and vfs-impl.h
1173 (for filesystem implementors).
1175 2004-08-16 Pavel S. Shirshov <me@pavelsh.pp.ru>
1177 * extfs/deb.in: Security fix patch. Fix insecure temporary file and
1178 directory creations. (CAN-2004-0231).
1180 * extfs/uar.in: Likewise.
1181 * extfs/uha.in: Likewise.
1182 * extfs/ulha.in: Likewise.
1183 * extfs/urar.in: Likewise.
1184 * extfs/uzip.in: Likewise.
1185 * extfs/uzoo.in: Likewise.
1187 2004-08-14 Andrew V. Samoilov <sav@bcs.zp.ua>
1189 * extfs.c (extfs_init): Fix possible off-by-one buffer underflow
1190 for empty lines in extfs.ini.
1191 * sfs.c (sfs_init): Fix possible buffer overflows for invalid sfs.ini.
1193 2004-06-14 Pavel Roskin <proski@gnu.org>
1195 * tar.c: Eliminate struct hstat, use stack arguments instead.
1197 2004-03-07 Andrew V. Samoilov <sav@bcs.zp.ua>
1199 * utilvfs.c (vfs_parse_ls_lga): Handle device without whitespace(s)
1200 between major and minor.
1202 * direntry.c (vfs_s_resolve_symlink): Check vfs_s_fullpath()
1203 return value to avoid NULL dereference.
1204 Reported by wwp <subscript@free.fr>.
1206 * vfs.c (mc_def_ungetlocalcopy): Fix missed "%s".
1207 * utilvfs.c (vfs_parse_ls_lga): Likewise.
1209 * samba/lib/debug.c (Debug1): Don't try to open/create logfile
1210 if debugf is empty string.
1212 2004-01-27 Pavel Roskin <proski@gnu.org>
1214 * smbfs.c (smbfs_reconnect): Revert changes in a translated
1217 2004-01-23 Andrew V. Samoilov <sav@bcs.zp.ua>
1219 * extfs/rpm: Workaround for spaces and single quotes in the path
1222 2004-01-22 Pavel Roskin <proski@gnu.org>
1224 * mcserv.c: Use HAVE_CRYPT instead of USE_CRYPT. Remove
1225 references to HAVE_LIBCRYPT and HAVE_LIBCRYPT_I. Reported by
1226 Christian Laubscher <christian.laubscher@tiscalinet.ch>
1228 * samba/configure.in: Rename to ...
1229 * samba/configure.ac: ... this. Adjust dependencies.
1231 2003-12-05 Andrew V. Samoilov <sav@bcs.zp.ua>
1233 * fish.c (fish_open_archive_int): Save some stack and place -C
1236 2003-11-28 Pavel Roskin <proski@gnu.org>
1238 * undelfs.c: Use ext2fs/ext2_fs.h instead of linux/ext2_fs.h
1241 2003-11-26 Pavel Roskin <proski@gnu.org>
1243 * gc.c (vfs_ncs_getid): Merge with vfs_getid().
1245 * gc.c: Eliminate all code for timestamping parent filesystems.
1246 It's broken and undocumented. Adjust all dependencies.
1248 2003-11-24 Andrew V. Samoilov <sav@bcs.zp.ua>
1250 * direntry.c (vfs_s_resolve_symlink): Eliminate
1252 (vfs_s_fullpath): Likewise.
1254 2003-11-21 Pavel Roskin <proski@gnu.org>
1256 * ftpfs.c (ftpfs_login_server): Explicit password should have
1257 priority over the netrc password and the anonymous password.
1258 Reported by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
1260 2003-11-14 Andrew V. Samoilov <sav@bcs.zp.ua>
1262 * undelfs.c (undelfs_loaddel): Use g_try_malloc()/g_try_realloc()
1263 since we want to recover and not abort the program if we don't
1265 (com_err): Fix implementation.
1267 2003-11-14 Pavel Roskin <proski@gnu.org>
1269 * vfs.c (vfs_split): Deconstify.
1270 * direntry.c (vfs_s_get_path_mangle): Likewise. "mangle" is in
1271 the name for a reason. Use vfs_s_get_path() instead where the
1272 path should be preserved.
1273 * extfs.c (extfs_get_path_mangle): Likewise.
1274 * sfs.c (sfs_vfmake): Protect against changes in vfs_split().
1276 2003-11-13 Pavel Roskin <proski@gnu.org>
1278 * vfs.h: Constify chdir() and opendir() methods. Adjust all
1280 * vfs.c (mc_chdir): Constify, eliminate protection against
1281 broken implementations of chdir() method.
1282 (mc_opendir): Constify.
1284 * direntry.c (vfs_s_stamp_me): Generalize and move ...
1285 * gc.c (vfs_stamp_create): ... here. Use whenever possible.
1287 2003-11-12 Pavel Roskin <proski@gnu.org>
1289 * gc.c: Use NULL instead of -1 for empty vfsid. Adjust all
1291 * undelfs.c (undelfs_get_path): Don't shadow static ext2_fname.
1292 (undelfs_getid): Likewise. Use fs for non-empty vfsid.
1294 2003-11-12 Andrew V. Samoilov <sav@bcs.zp.ua>
1296 * cpio.c (cpio_create_entry): Fix possible buffer underflow
1299 2003-11-08 Pavel Roskin <proski@gnu.org>
1301 * gc.c: Make getid(), nothingisopen() and free() methods
1302 optional. Eliminate trivial implementations.
1303 (vfs_getid): New function - safe wrapper around getid(). Use
1305 (vfs_ncs_getid): Remove dead code, improve readability.
1307 2003-11-07 Pavel Roskin <proski@gnu.org>
1309 * vfs.c: Split garbage collection code into ...
1311 * vfs.h: Corresponding code moved ...
1313 * Makefile.am: Adjustments for the above.
1315 2003-11-05 Pavel Roskin <proski@gnu.org>
1317 * vfs.c: Eliminate MC_OP. Reorder other MC_* macros for
1320 * vfs.c: Move all parsing code, vfs_die() and vfs_get_password()
1321 to utilvfs.c, vfs_print_stats() to direntry.c.
1322 * utilvfs.c (vfs_parse_ls_lga): Disable caching current date,
1323 it's done incorrectly.
1325 2003-11-04 Pavel Roskin <proski@gnu.org>
1327 * vfs.c: Allocate handles dynamically.
1328 (get_bucket): Rewrite as vfs_new_handle().
1329 (vfs_op): Make a function.
1330 (vfs_info): Likewise.
1331 (vfs_free_bucket): Replace with vfs_free_handle().
1332 (mc_readdir): Expand, eliminate MC_DIROP.
1334 2003-10-30 Pavel Roskin <proski@gnu.org>
1336 * HACKING: New file - technical documentation for VFS.
1337 * Makefile.am: Distribute it.
1339 * vfs.c (vfs_rmstamp): Rescan the tree after the parents have
1340 been removed. Otherwise using old data causes data corruption
1341 in some combinations (e.g. extfs inside tarfs).
1343 2003-10-29 Pavel Roskin <proski@gnu.org>
1345 * extfs.c: Remove current_dir field, its role was purely
1346 decorative. Rename names starting with underscore.
1348 * extfs.h: Merge ...
1349 * extfs.c: ... here.
1350 * Makefile.am: Remove extfs.h.
1352 * ftpfs.c: Use HAVE_STRUCT_LINGER_L_LINGER instead of
1355 * Makefile.am: Compile utilvfs.c even without USE_VFS_NET.
1356 * utilvfs.c (vfs_split_url): Only compile with USE_NETCODE
1359 2003-10-28 Pavel Roskin <proski@gnu.org>
1361 * fish.c (fish_fh_open): Use vfs_mkstemps() for write buffers as
1362 well, since the file can be reopened for reading later.
1363 * ftpfs.c (ftpfs_fh_open): Likewise.
1365 * utilvfs.c (vfs_mkstemps): New function - create temporary file
1366 with the name resembling the original, but safe for scripts.
1367 * direntry.c (vfs_s_open): Use it.
1368 (vfs_s_retrieve_file): Likewise.
1369 * extfs.c (extfs_open): Likewise.
1370 * sfs.c (sfs_redirect): Likewise.
1372 * vfs.c (mc_ungetlocalcopy): Free local path here, not in class
1374 * vfs.h (struct vfs_s_class): Constify "local" argument for
1375 ungetlocalcopy. Adjust all implementations.
1377 * direntry.c (vfs_s_init_class): Use our getlocalcopy for remote
1378 filesystems that cache files, not for archives.
1379 (vfs_s_getlocalcopy): Corresponding changes.
1381 * direntry.c (vfs_s_init_class): Improve interface to allow more
1382 code reuse. Change all callers.
1383 (vfs_s_getlocalcopy): New implementation. Don't use
1384 mc_def_getlocalcopy(). Use vfs_s_open() to create local copy.
1385 (vfs_s_ungetlocalcopy): New function.
1386 * xdirentry.h: Add new field "flags" to struct vfs_s_subclass.
1387 * extfs.c (extfs_ungetlocalcopy): Don't use
1388 mc_def_ungetlocalcopy() in the dead branch.
1389 * vfs.c (mc_def_getlocalcopy): Make static.
1390 (mc_def_ungetlocalcopy): Likewise.
1392 2003-10-27 Pavel Roskin <proski@gnu.org>
1394 * vfs.h: Constify some arguments for many functions.
1395 * xdirentry.h: Likewise. Adjust all dependencies.
1397 * *.c: Rename functions that don't have an a prefix indicating
1398 what file they are defined in. This simplifies debugging.
1400 * vfs.c (mc_def_getlocalcopy): Use O_LINEAR when retrieving the
1401 remote file. This avoids an extra temporary file.
1403 * cpio.c (cpio_ungetlocalcopy): Remove.
1404 * tar.c (tar_ungetlocalcopy): Likewise.
1405 * vfs.c (mc_def_ungetlocalcopy): Add support for read-only
1408 2003-10-26 Pavel Roskin <proski@gnu.org>
1410 * direntry.c (vfs_s_find_inode): Only allow search from root.
1411 Change second argument to superblock to prevent abuse.
1413 * direntry.c (vfs_s_find_entry_tree): Eliminate buffer of fixed
1414 size. Don't prepare path for vfs_s_resolve_symlink().
1415 (vfs_s_resolve_symlink): Remove unused argument "path".
1417 * direntry.c (vfs_s_add_dots): Remove. Fix all callers.
1418 (vfs_s_free_inode): Remove support for "." and ".." entries.
1419 * ftpfs.c (dir_load): Likewise.
1420 Support for "." and ".." entries was a hack that could make the
1421 cache non-traversable from inodes to the root and cause infinite
1422 loop in vfs_s_fullpath().
1423 Reported by Frédéric L. W. Meunier <lists1@pervalidus.net>
1425 2003-10-25 Pavel Roskin <proski@gnu.org>
1427 * tar.h: Merge into tar.c, as it doesn't provide any external
1429 * Makefile.am: Remove tar.h.
1431 * vfs.h: Remove redundant declaration of init_localfs().
1433 * mcserv.c: Don't use HAVE_CRYPT from extraconf.h.
1434 * samba/include/includes.h: Likewise.
1436 2003-10-24 Pavel Roskin <proski@gnu.org>
1438 * ftpfs.c: Remove the rest of source routing code.
1439 * xdirentry.h: Likewise.
1441 * ftpfs.c (setup_source_route): Remove. It's a badly
1442 implemented hack that was never enabled.
1444 2003-10-16 Pavel Roskin <proski@gnu.org>
1446 * direntry.c (vfs_s_find_entry_tree): Canonicalize path.
1448 * direntry.c (vfs_s_resolve_symlink): Don't use buffers of fixed
1449 size. This fixes a security hole. Always start from the root.
1450 Remove broken code for making symlinks relative.
1451 (vfs_s_find_entry_tree): Protect against long path, since this
1452 function uses a buffer of fixed size.
1453 (vfs_s_fullpath): Implement support for archives (real trees).
1455 2003-10-16 Andrew V. Samoilov <sav@bcs.zp.ua>
1457 * vfs.c (mc_open): Fix rare memory leak on failure.
1459 2003-10-16 Pavel Roskin <proski@gnu.org>
1461 * direntry.c (vfs_s_setctl): Implement VFS_SETCTL_FLUSH.
1462 * ftpfs.c: Remove ftpfs_flushdir. Use MEDATA->flush.
1463 * fish.c: Use MEDATA->flush.
1465 * direntry.c (vfs_s_setctl): Add support to VFS_SETCTL_LOGFILE.
1466 * ftpfs.c (ftpfs_set_debug): Remove.
1468 * names.c: Merge ...
1469 * utilvfs.c: ... here.
1470 * names.h: Merge ...
1471 * utilvfs.h: ... here.
1472 * Makefile.am: Remove references to names.c and names.h.
1474 * xdirentry.h: Rename vfs_s_data to vfs_s_subclass.
1475 * cpio.c: Initialize only non-zero fields in vfs_s_subclass.
1477 * ftpfs.c: Likewise.
1480 * vfs.h: Rename commands for mc_ctl() and mc_setctl() to make it
1481 clear which function they are used with.
1482 * vfs.c (mc_ctl): Change last argument to (void*).
1484 Adjust all dependencies.
1486 * xdirentry.h: Move system includes to the files that need them.
1488 * xdirentry.h: Fix typos in field names.
1490 * xdirentry.h: Cleanup unused or write-only fields. Adjust all
1493 * xdirentry.h: Remove magic numbers. Move some constants ...
1494 * ftpfs.c: ... here.
1496 2003-10-15 Pavel Roskin <proski@gnu.org>
1498 * samba/lib/doscalls.c: Remove. Remove all references to it.
1500 2003-10-14 Pavel Roskin <proski@gnu.org>
1502 * vfs.h: Remove all references to seekdir and telldir. Adjust
1505 2003-10-13 Pavel Roskin <proski@gnu.org>
1507 * vfs.c (_vfs_add_noncurrent_stamps): Fix incorrect casts.
1509 2003-10-12 Pavel Roskin <proski@gnu.org>
1511 * extfs.c: Switch to self-registration.
1514 * smbfs.c: Likewise.
1515 * undelfs.c: Likewise.
1516 * vfs.s (_vfs_add_noncurrent_stamps): Temporary disable code
1517 that uses vfs_extfs_ops.
1518 (vfs_file_is_smb): Remove.
1520 * local.c: Switch to self-registration.
1521 * vfs.c: Cache localfs class for the use in vfs_get_class().
1523 2003-10-11 Pavel Roskin <proski@gnu.org>
1525 * xdirentry.h: Remove all typedefs, there is no need to hide the
1526 fact that structures are structures. Fix all dependencies.
1528 * vfs.h: Remove typedef vfs, it's too ambiguous. Massive
1529 changes to use struct vfs_class instead.
1531 * vfs.c (vfs_setup_wd): Initialize current_vfs here, not
1533 (vfs_type_from_op): Rename to vfs_prefix_to_class(), avoid using
1535 (vfs_strip_suffix_from_filename): Don't use vfs_local_fs.
1537 * vfs.h (ftpfs_hint_reread): Remove, it's unused.
1539 * vfs.c (vfs_add_noncurrent_stamps): Call vfs_rm_parents() at
1540 the end. Change all callers not to call it.
1541 (vfs_rm_parents): Make static.
1543 * direntry.c: Don't use vfs_local_fs directly, use VFSF_LOCAL.
1544 * extfs.c: Likewise.
1545 * vfs.c (vfs_addstamp): Likewise.
1546 (vfs_init): Register vfs_local_fs like other classes.
1548 * direntry.c: Make more functions static. They are filled in in
1549 vfs_s_init_class() now and don't need to be exported.
1551 * tarfs.c: Switch to self-registration.
1553 * extfs.c: Don't include xdirentry.h.
1556 * ftpfs.c: Switch to self-registration.
1558 * vfs.h: Remove parts used only when USE_VFS is not defined.
1560 * vfs.h: Introduce new VFS flags instead of the old unused ones.
1561 * vfs.c (vfs_file_class_flags): New function.
1562 (vfs_file_is_ftp): Eliminate.
1563 (vfs_file_is_smb): Likewise.
1564 (vfs_file_is_local): Likewise.
1565 (vfs_current_is_local): Use new VFSF_LOCAL flag.
1567 * vfs.c: Constify arguments of many functions.
1569 * undelfs.c (undelfs_get_path): Constify first argument.
1570 * vfs.h (struct vfs_class): Constify path. Fix all dependencies.
1572 * vfs.c (vfs_release_path): New function, code taken from
1574 (vfs_ncs_getid): Make static.
1576 * vfs.c (vfs_type): Rename to vfs_get_class(). Fix prototype to
1577 avoid using internal vfs type. Adjust all dependencies.
1578 (vfs_rosplit): Rename to _vfs_get_class().
1580 * cpio.c (init_cpiofs): Set vfs_cpiofs_ops.setctl to NULL, or
1581 bad things happen after unsuccessful deletion.
1583 * vfs.h: Remove obsolete code.
1585 2003-10-10 Pavel Roskin <proski@gnu.org>
1587 * vfs.c (vfs_flags): Eliminate, it's never assigned a non-zero
1589 * vfs.h: Eliminate unused VFS flags.
1590 * local.c (vfs_nil_ops): Eliminate, it's unused now.
1592 * fish.c: Convert to calling vfs_register_class().
1593 * fish.h: Eliminate. Adjust all dependencies.
1594 * direntry.c (vfs_s_init_class): Add missing vfs_s_setctl().
1596 * vfs.h: Rename "struct _vfs" to "struct vfs_class". Allow
1597 calling vfs_register() in the file defining the VFS class.
1598 * vfs.c (vfs_init): Register cpiofs in cpio.c.
1599 (vfs_register): Rename to vfs_register_class(), remove "static".
1600 * direntry.c (vfs_s_init_class): New function - generic VFS
1601 class registration for vfs_s descendants.
1602 * cpio.c: Register VFS class locally.
1604 2003-10-07 Pavel Roskin <proski@gnu.org>
1606 * direntry.c: Make functions static when possible.
1607 * xdirentry.h: Remove unneeded declarations.
1609 2003-09-28 Pavel Roskin <proski@gnu.org>
1611 * vfs.c (vfs_type_from_op): Check if vfs->prefix is NULL before
1612 calling strlen() on it.
1613 (vfs_strip_suffix_from_filename): Likewise.
1614 (mc_chdir): Don't panic if no chdir function is defined. This
1617 2003-09-23 Pavel Roskin <proski@gnu.org>
1619 * vfs.c (vfs_canon): Remove tilde expansion. mc_chdir() should
1620 act like chdir() of localfs, which doesn't expand tilde.
1621 Reported by Doncho Gunchev <mr700@globalnet.bg>
1623 2003-09-22 Pavel Roskin <proski@gnu.org>
1625 * vfs.c (mc_get_current_wd): Use g_strlcpy() to avoid unneeded
1626 padding and silence Valgrind.
1628 2003-09-09 Andrew V. Samoilov <sav@bcs.zp.ua>
1630 * samba/libsmb/namequery.c (_interpret_node_status): Comment
1633 2003-09-03 Pavel Roskin <proski@gnu.org>
1635 * samba/include/charset.h: Remove declaration already present in
1637 * samba/include/proto.h: Run through uniq.
1639 2003-08-30 Pavel Roskin <proski@gnu.org>
1641 * samba/tests/summary.c: Remove. The test is now included ...
1642 * samba/configure.in: ... here.
1643 * samba/tests/README: Remove, it's irrelevant.
1644 * samba/architecture.doc: Likewise.
1645 * samba/include/dlinklist.h: Remove, it's unused. Adjust
1647 * samba/libsmb/namequery.c (name_status): Remove, it's unused.
1648 * Makefile.am: Remove unused Samba files.
1650 * samba/include/smb.h: Remove unneeded includes.
1651 * samba/include/ntdomain.h: Remove, it's unused.
1652 * samba/include/rpc*.h: Likewise.
1653 * samba/lib/util_unistr.c: Remove unused code.
1654 * samba/include/proto.h: Regenerate.
1655 * Makefile.am: Remove unused Samba headers.
1657 2003-08-29 Pavel Roskin <proski@gnu.org>
1659 * samba/lib/system.c: Remove all unused code.
1660 * samba/include/proto.h: Remove some unused prototypes.
1661 * samba/include/includes.h: Don't include sys/capability.h,
1663 * samba/configure.in: Remove tests for capabilities and groups,
1664 which are unused now. Also remove the trivial test.
1665 * Makefile.am: Remove unused Samba tests.
1667 2003-08-29 Andrew V. Samoilov <sav@bcs.zp.ua>
1669 * direntry.c (vfs_s_dump): Commented out.
1670 * extfs.c (s_readlink): Fix return value and possible buffer
1672 * mcfs.c (mcfs_readlink): Fix return value.
1673 * mcserv.c (do_readlink): Fix possible off-by-one.
1674 (commands): Make const array and remove needless comma.
1676 2003-08-29 Pavel Roskin <proski@gnu.org>
1678 * ftpfs.c (initconn): Use more portable initialization.
1679 * xdirentry.h: Use safer definition of ERRNOR.
1681 2003-08-18 Oskar Liljeblad <oskar@osk.mine.nu>
1683 * extfs/uzip.in: Fix error in parsing size of files over 9999999
1686 2003-08-08 Pavel Roskin <proski@gnu.org>
1688 * extfs/audio.in: Further portability fixes. Use current date
1690 Partly from Andrew V. Samoilov <sav@bcs.zp.ua>
1692 * extfs/audio.in: Fix non-POSIX constructs.
1693 From GoTaR <gotar@poczta.onet.pl>
1695 2003-07-28 Andrew V. Samoilov <sav@bcs.zp.ua>
1697 * ftpfs.c (login_server): Undo last change.
1699 2003-07-23 Andrew V. Samoilov <sav@bcs.zp.ua>
1701 * ftpfs.c (login_server): Fix memory leak.
1702 (linear_abort): Close dsock before reconnect().
1703 (ftpfs_done): Release no_proxy list.
1705 2003-07-21 Andrew V. Samoilov <sav@bcs.zp.ua>
1707 * ftpfs.c (load_no_proxy_list): Fix infinitive loop if ferror().
1708 (initconn): Reset variables if setup_passive() fails.
1709 (open_data_connection): Set my_errno to errno before close()
1711 (dir_load): Optimize cd_first calculation.
1713 2003-06-24 Andrew V. Samoilov <sav@bcs.zp.ua>
1715 * extfs/lslR.in: Portability fixes.
1717 2003-06-21 Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
1719 * ftpfs.c (command): Fix misuse of the status variable. Don't
1720 cache the value of SUP.sock before reconnect.
1722 2003-06-05 Pavel Roskin <proski@gnu.org>
1724 * vfs.c: Rename mc_return_cwd() to _vfs_get_cwd(). Move
1725 related functions closer to each other, add comments.
1727 * ftpfs.c (ftpfs_done): New function. Free ftpfs_proxy_host and
1728 ftpfs_anonymous_passwd.
1730 2003-05-30 Pavel Roskin <proski@gnu.org>
1732 * extfs/trpm: Fix compatibility with the secure temporary
1733 filenames used by extfs. Filter rpm messages from the listing.
1735 2003-05-08 Pavel Roskin <proski@gnu.org>
1737 * fish.c (file_store): Use block size 1. It's slower, but much
1738 safer. GNU dd is not persistent enough when reading data.
1740 * extfs/rpm: If rpm doesn't support --info as in Red Hat 9,
1741 ignore it and don't show HEADER in the listing.
1743 2003-04-29 Michael Shigorin <mike@osdn.org.ua>
1745 * extfs/iso9660.in: Determine presence of Rock Ridge and Joliet
1746 extensions by running "isoinfo -R". Use current charset for
1749 2003-04-29 Pavel Roskin <proski@gnu.org>
1751 * extfs/iso9660.in: New filesystem for ISO-9660 images.
1752 From Michael Shigorin <mike@altlinux.org>
1753 * extfs/extfs.ini: Add iso9660.
1754 * extfs/Makefile.am: Add extfs/iso9660.in.
1756 2003-04-03 Andrew V. Samoilov <sav@bcs.zp.ua>
1758 * smbfs.c (open_readwrite): New function to replace open_read()
1759 and open_write(). Use cli_close() if cli_qfileinfo() or
1760 cli_getattrE() fail.
1762 (smbfs_open): Use open_readwrite(). Free remote_handle if
1763 open_readwrite() fails.
1765 2003-03-24 Adam Byrtek <alpha@debian.org>
1767 * extfs/patchfs.in: Treat '\ No newline at end of file' line
1768 as valid diff contents.
1770 2003-03-14 Lorinczy Zsigmond <lzsiga@mail.ahiv.hu>
1772 * ftpfs.c (login_server): Ask user for account if the server
1775 2003-03-13 Andrew V. Samoilov <sav@bcs.zp.ua>
1777 * samba/libsmb/clientgen.c (cli_session_setup): Convert
1778 username from Unix to DOS codepage before sending.
1780 2003-03-10 Adam Byrtek <alpha@debian.org>
1782 * extfs/patchfs.in: Minor cleanups.
1784 2003-03-10 Pavel Roskin <proski@gnu.org>
1786 * extfs.c (extfs_cmd): Quote localname - it's based on the entry
1787 name, so it can contain dangerous symbols like "&".
1789 2003-02-26 Adam Byrtek <alpha@debian.org>
1791 * extfs.c (extfs_open): Retain original filename as a suffix
1792 for the temporary filename.
1793 * vfs.c (mc_def_getlocalcopy): Likewise.
1795 2003-02-24 Adam Byrtek <alpha@debian.org>
1797 * extfs/patchfs.in: rm and proper copyin support, more
1798 functions to make code more clear.
1800 2003-02-19 Andrew V. Samoilov <sav@bcs.zp.ua>
1802 * smbfs.c (smbfs_lseek): Backport from Samba 2.2.7 Suite.
1803 (fake_server_stat): Warning fix for SunOS. Reformat function.
1804 (fake_share_stat): Likewise.
1805 (smbfs_mkdir): Likewise.
1806 * direntry.c (vfs_s_dump): Likewise.
1808 * vfs.c (is_localized_month): New function for locale's
1809 abbreviated month name as any 3 bytes long string without digits
1810 and control characters.
1811 (vfs_parse_filedate): Fallback to is_localized_month() if
1812 is_month() and is_dos_date() fail and set date to Jan 1 1970.
1813 (vfs_parse_ls_lga): Use is_localized_month().
1815 2003-01-24 Pavel Roskin <proski@gnu.org>
1817 * smbfs.c (smbfs_nothingisopen): Warning fix for 64-bit systems.
1818 (smbfs_free): Likewise.
1820 2003-01-24 Andrew V. Samoilov <sav@bcs.zp.ua>
1822 * extfs/urar.in: Search $PATH for unrar, fallback to rar.
1824 2003-01-13 Adam Byrtek <alpha@debian.org>
1826 * extfs/patchfs.in: context diff format support, regular
1827 expressions precompiled, some minor fixes.
1829 2002-12-29 Andrew V. Samoilov <sav@bcs.zp.ua>
1831 * extfs/rpm: Use --nosignature only if rpm supports this.
1833 2002-12-25 Pavel Roskin <proski@gnu.org>
1835 * extfs.c (read_archive): Free archive if the "list" command
1836 returned non-zero, return -1.
1837 Initial implementation from Adam Byrtek <alpha@debian.org>
1839 2002-12-24 Pavel Roskin <proski@gnu.org>
1841 * direntry.c (vfs_s_open): If the filesystem is read-only,
1842 disable file creation.
1844 * vfs.c (mc_chdir): Don't change current directory until the
1845 low-level chdir succeeds.
1847 * vfs.c (vfs_name): Eliminate - it's unused and wrong.
1849 2002-12-24 Andrew V. Samoilov <sav@bcs.zp.ua>
1851 * extfs/mailfs.in: Quote filename when opening mailbox.
1853 2002-12-24 Adam Byrtek <alpha@debian.org>
1855 * extfs/apt.in, extfs/dpkg.in: Avoid stat on non-existing file.
1857 2002-12-20 Andrew V. Samoilov <sav@bcs.zp.ua>
1859 * smbfs.c: Resurrect and use myumask for generated permissions.
1861 2002-12-19 Adam Byrtek <alpha@debian.org>
1863 * extfs/patchfs.in: Fix patch size calculation. Use bytes to
1864 count size in bytes, not characters (in multibyte encodings char
1865 can be two or more bytes wide).
1867 2002-12-19 Andrew V. Samoilov <sav@bcs.zp.ua>
1869 * extfs/patchfs.in: Don't rely on tell() - it doesn't always
1870 work on pipes. Determine patch size by adding together the line
1873 2002-12-19 Adam Byrtek <alpha@debian.org>
1875 * extfs/patchfs.in: Allow diffs with function names after "@@".
1876 Don't consider an empty newline as the end of the diff.
1878 2002-12-18 Andrew V. Samoilov <sav@bcs.zp.ua>
1880 * extfs/patchfs.in (openread): Use quoted $archive when opening
1882 (list): Set $archive to quoted $_[0].
1884 2002-12-16 Pavel Roskin <proski@gnu.org>
1886 * extfs/rpm: Don't check package signatures - it creates a lot
1887 of noise on stderr if the signature is missing.
1889 2002-12-14 Adam Byrtek <alpha@debian.org>
1891 * extfs/mailfs.in: Fixed bug when opening empty mailbox. Added
1892 proper message size (not number of lines, like before) counting.
1894 2002-12-13 Pavel Roskin <proski@gnu.org>
1896 * extfs/uha.in (mchafs_list): Don't parse the month, use
1898 (mchafs_copyout): Use cat, not mv, because the files can be on
1899 different filesystems. Use "q" and don't suppress stderr.
1901 * extfs/ulha.in: Don't suppress stderr.
1903 * extfs/uzoo.in: Always use "q" option to avoid processing junk.
1904 Always create symlink, do it in a safer directory.
1906 * extfs/uarj.in: New script working with open-source ARJ.
1907 Contributed by Viatcheslav Odintsov.
1908 * extfs/uarj: Remove.
1909 * extfs/hp48: Rename to ...
1910 * extfs/hp48.in: ... this. It needs awk substitution.
1911 * extfs/Makefile.am: Adjust for the above.
1913 * extfs/ulha.in: Strengthen quoting.
1915 * extfs/uha.in: Strengthen quoting. Remove unnecessary space
1916 after filename. Update URL. Use safer temporary directory.
1918 * extfs/uarj: New list-only implementation that doesn't need
1920 * extfs/unarj.diff: Remove.
1921 * extfs/Makefile.am: Remove extfs/unarj.diff.
1923 2002-12-13 Adam Byrtek <alpha@debian.org>
1925 * extfs/patchfs.in: "copyin" method added (with compressed files
1926 support). Files inside archive now have '.diff' extension.
1927 Temporary file not needed any more. Proper handling of
1928 "/dev/null" filenames, filename heuristics based on diff info
1929 page. Set files owner and group as the archive.
1930 * extfs/audio.in: CDDB_TIMEOUT variable added.
1932 2002-12-12 Pavel Roskin <proski@gnu.org>
1934 * vfs.c (is_dos_date): Allow 4-digit years.
1935 (vfs_parse_filedate): Don't limit length of the year field for
1936 DOS dates, subtract 1900 if necessary.
1938 * extfs/apt.in: Fix Y2K bug.
1939 * extfs/deba.in: Likewise.
1940 * extfs/debd.in: Likewise.
1941 * extfs/dpkg.in: Likewise.
1942 Reported by Adam Byrtek <alpha@debian.org>
1944 * extfs/patchfs.in: Print 4-digit year. If str2time is not
1945 available, use current time, not 0.
1947 2002-12-12 Andrew V. Samoilov <sav@bcs.zp.ua>
1949 * extfs/urar.in: rar lists directories after files, so sort "list"
1950 command output by names to prevent duplications.
1952 2002-12-12 Pavel Roskin <proski@gnu.org>
1954 * extfs/urar.in: Strengthen quoting. Don't use full path to rar
1955 and unrar. Don't redirect stderr to /dev/null.
1957 * extfs/uar.in: Simplify "list" command, don't use current year.
1958 Use more careful quoting.
1960 2002-12-12 Adam Byrtek <alpha@debian.org>
1962 * extfs/apt.in: Add non-interactive remove using dpkg.
1964 2002-12-11 Adam Byrtek <alpha@debian.org>
1966 * extfs/apt.in: Add 1 to the month number. Perl localtime()
1967 uses range 0..11 while extfs expects range 1..12.
1968 * extfs/deba.in: Likewise.
1969 * extfs/debd.in: Likewise.
1970 * extfs/dpkg.in: Likewise.
1972 * extfs/audio: Move ...
1973 * extfs/audio.in: ... here. Add CDDB support.
1974 * extfs/Makefile.am: Adjust for the above.
1976 2002-12-11 Pavel Roskin <proski@gnu.org>
1978 * extfs/mailfs: Try using UnixDate() from Date::Manip if it's
1979 available. Warning fix.
1981 2002-12-11 Andrew V. Samoilov <sav@bcs.zp.ua>
1983 * extfs/patchfs: Use quotemeta() before giving filename to
1986 * vfs.c (mc_stat): Make first argument const.
1987 (mc_lstat): Likewise.
1988 * vfs.h: Adjust declarations and remove some useless defines.
1990 2002-12-10 Pavel Roskin <proski@gnu.org>
1992 * extfs/a: Enable Perl warnings. Ignore entries without a date.
1993 Warning fixes. Don't redirect stderr to /dev/null - it doesn't
1994 mess the screen now.
1996 2002-12-09 Adam Byrtek <alpha@debian.org>
1998 * extfs/patchfs: Rewritten in Perl. File size is now displayed
2001 2002-12-09 Pavel Roskin <proski@gnu.org>
2003 * extfs/ftplist.in: Remove, it's obsoleted by the hotlist.
2004 * extfs/ucpio.in: Remove, it's obsoleted by cpio.c.
2005 * extfs/Makefile.am: Remove all references to them.
2006 * extfs/extfs.ini: Likewise.
2008 * extfs.c (__find_entry): When creating entries for regular
2009 files, set initial permissions to S_IFREG | 0666. This fixes
2010 problems with viewing and editing newly added files.
2012 * extfs/bpp: Fix file sizes, contents of INSTALL and UPGRADE.
2014 2002-12-08 Pavel Roskin <proski@gnu.org>
2016 * extfs/uar.in: Fix "copyin" command.
2018 2002-12-06 Pavel Roskin <proski@gnu.org>
2020 * extfs.c (extfs_open): Don't run "copyout" if the file just has
2021 been created or O_TRUNC is given in the flags.
2022 Reported by Adam Byrtek 'alpha' <alpha@irc.pl>
2024 * extfs/uar.in: Implement "copyin" and "rm" commands.
2026 2002-12-06 Andrew V. Samoilov <sav@bcs.zp.ua>
2028 * extfs.c: Don't include ../src/profile.h.
2029 (extfs_open): Remove local_filename if copyout fails.
2031 2002-12-05 Pavel Roskin <proski@gnu.org>
2033 * extfs.h: Remove "extfsstat" from struct archive - it's unused
2034 outside open_archive(). Adjust the dependencies.
2035 * extfs.c: Make hstat local variable.
2037 * sfs.c: Remove "uid" from struct cachedfile - it's unused now.
2039 * vfs.h: Remove vfs_uid and vfs_gid. Fix all dependencies.
2041 2002-12-05 Andrew V. Samoilov <sav@bcs.zp.ua>
2043 * extfs.c (open_archive): Use open_error_pipe before popen() and
2044 close_error_pipe() if popen() fails to handle stderr.
2045 (read_archive): Use close_error_pipe() after pclose().
2047 2002-12-05 Pavel Roskin <proski@gnu.org>
2049 * ftpfs.c: Define INADDR_NONE if it's not already defined.
2050 Needed for Solaris 9.
2051 Reported by Roman Dorokhin <dorokhin@cybermail.net>
2053 2002-12-03 Andrew V. Samoilov <sav@bcs.zp.ua>
2055 * extfs.c (open_archive): Don't use open_error_pipe() and
2056 close_error_pipe() - it gets stuck on output that exceeds 4
2059 2002-12-01 Andrew V. Samoilov <sav@bcs.zp.ua>
2061 * extfs.c (open_archive): Use open_error_pipe() and
2062 close_error_pipe() to prevent stderr from extfs scripts pollute
2064 (extfs_cmd): New function to run extfs scripts and handle stderr
2066 (extfs_open): Use extfs_cmd().
2067 (extfs_close): Likewise.
2068 (extfs_unlink): Likewise.
2069 (extfs_mkdir): Likewise.
2070 (extfs_rmdir): Likewise.
2072 2002-12-01 Pavel Roskin <proski@gnu.org>
2074 * extfs/Makefile.am: Add uzip to EXTFS_OUT.
2076 2002-11-16 Pavel Roskin <proski@gnu.org>
2078 * mcserv.c (do_classic_auth): Restore support for shadow
2079 passwords. Use crypt() instead of pw_encrypt() - the later is
2080 missing on Slackware 8.0. Reported by
2081 Christian Laubscher <christian.laubscher@tiscalinet.ch>
2083 * Makefile.am: Consolidate mcserv libraries into MCSERVLIBS.
2085 2002-11-15 Pavel Roskin <proski@gnu.org>
2087 * mcserv.c: Include getopt.h, don't redefine optarg.
2089 * names.c: Only leave actually used functions.
2091 * ftpfs.c (ftpfs_open_socket): Use INADDR_NONE, not -1.
2093 2002-11-12 Pavel Roskin <proski@gnu.org>
2095 * fish.c (fish_which): Remove.
2097 2002-11-12 Andrew V. Samoilov <sav@bcs.zp.ua>
2099 * ftpfs.c (linear_abort): Close data socket dsock.
2101 2002-11-11 Pavel Roskin <proski@gnu.org>
2103 * vfs.h [USE_VFS] (mc_setctl): Specify argument types.
2105 * cpio.c (cpiofs_data): Warning fix in initialization.
2106 * tar.c (tarfs_data): Likewise.
2108 * vfs.c: Leave only necessary includes from ../src.
2110 2002-11-10 Pavel Roskin <proski@gnu.org>
2112 * vfs.c: Make the last argument to MC_OP non-empty in the
2113 definition of MC_HANDLEOP. Needed for Mac OS X.
2114 Reported by Wim Rijnders <wimrijnders@home.nl>
2116 2002-11-08 Pavel Roskin <proski@gnu.org>
2118 * extfs/a: Set environment to force date and time format
2119 suitable for VFS. Fix support for long filenames with spaces.
2121 2002-11-06 Andrew V. Samoilov <sav@bcs.zp.ua>
2123 * smbfs.c (new_dir_entry): Initialize st_ino, so recursive
2124 directory copying is possible now.
2125 * vfs.c (mc_get_current_wd): Make sure returned string is null
2128 2002-11-03 Pavel Roskin <proski@gnu.org>
2130 * vfs.c: Remove unused code.
2131 * vfs.h: Define vfs_uid and vfs_gid as 0, they never change.
2133 2002-11-01 Andrew V. Samoilov <sav@bcs.zp.ua>
2135 * fish.c: Use name_quote() to quote filenames.
2136 (file_store): Close localname on error.
2138 2002-10-25 Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
2140 * ftpfs.c (linear_abort): Close data socket, ProFTPD 1.2.6
2141 expects the client to close it.
2143 2002-10-13 Pavel Roskin <proski@gnu.org>
2145 * vfs.h: Remove tar_gzipped_memlimit.
2146 From Christian Laubscher <christian.laubscher@tiscalinet.ch>
2148 2002-10-11 Andrew V. Samoilov <sav@bcs.zp.ua>
2150 * smbfs.c (fake_share_stat): Make sure share exists by
2151 smbfs_get_path() and fill buf with realistic data
2152 if current_share_info is NULL. Reformat function.
2153 (smbfs_get_path): Add const qualifier to path.
2155 2002-10-09 Andrew V. Samoilov <sav@bcs.zp.ua>
2157 * smbfs.c: Allow username in URL (/#smb:[user@]machine) and
2158 reformat changed functions.
2159 (smbfs_get_host_and_username): Fix comment.
2160 (smbfs_fill_names): Add username@ before hostname.
2161 (smbfs_open_link): Use IPC$ if share is empty.
2162 (smbfs_get_path): Pass remote_path to smbfs_open_link().
2163 (smbfs_stat): Copy username@ to server_url if passed.
2165 2002-10-07 Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
2167 * ftpfs.c (linear_abort): Add a timeout after which a reconnect
2168 is performed instead of further fetching of the remaining data.
2170 2002-10-07 Pavel Roskin <proski@gnu.org>
2172 * direntry.c (vfs_s_resolve_symlink): Use g_snprintf() instead
2173 of non-portable snprintf().
2174 Reported by Xu Qiang <Xu.Qiang@xssc.sgp.xerox.com>
2176 2002-10-04 Pavel Roskin <proski@gnu.org>
2178 * mcfs.c (mcfs_lseek): Explicitly cast offset to int. This fixes
2179 viewing and editing files on mcfs.
2181 * tcputil.c: Split mcfs-specific part to
2182 * mcfsutil.c: ... this.
2183 * tcputil.h: Split mcfs-specific part to
2184 * mcfsutil.h: ... this.
2185 * Makefile.am: Add mcfsutil.c and mcfsutil.h.
2186 * mcserv.c: Define own got_sigpipe, which is always 0, since
2187 mcserv doesn't call tcp_init().
2189 * Makefile.am: Don't link mcserv with glib. It's unreasonable
2190 to require a glib port for embedded systems mcserv may run on.
2191 * mcserv.c: Replace all glib calls with standard libc calls.
2192 * tcputil.c (rpc_get): Likewise.
2194 * mcserv.c (get_client): Don't try to find the address family
2195 from the hostname. Always use AF_INET, because everything else
2198 2002-10-04 Andrew V. Samoilov <sav@bcs.zp.ua>
2200 * sfs.c (vfmake): Use open_error_pipe() and close_error_pipe().
2202 2002-10-01 Andrew V. Samoilov <sav@bcs.zp.ua>
2204 * xdirentry.h: Comment out magic field everywhere.
2206 2002-10-01 Pavel Roskin <proski@gnu.org>
2208 * Makefile.am (VFSHDRS): Remove container.h.
2210 * tcputil.c (check_hooks): Remove, it does nothing. Also remove
2211 all related data structures.
2213 * tcputil.c (get_remote_port): Move to mcfs.c.
2214 (send_string): Move to mcserv.c.
2215 (rpc_add_get_callback): Remove, it's unused.
2217 * container.h: Remove, it's unused.
2219 * utilvfs.c: Remove tests, since get_host_and_username() is
2221 * mcfs.c (open_tcp_link): Make static.
2222 * tcputil.h: Remove unused definitions.
2224 2002-09-29 Pavel Roskin <proski@gnu.org>
2226 * direntry.c (vfs_s_retrieve_file): Allow interrupt by Ctrl-C.
2227 From Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>
2229 2002-09-26 Pavel Roskin <proski@gnu.org>
2231 * sfs.c (sfs_init): Parametrize sfs.ini to allow reuse of the
2232 messages in other places.
2234 2002-09-25 Pavel Roskin <proski@gnu.org>
2236 * vfs.c (vfs_parse_filemode): Fix parsing for filenames that
2237 begin with a number.
2238 From Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
2240 2002-09-24 Andrew V. Samoilov <sav@bcs.zp.ua>
2242 * smbfs.c: Undef USE_NCURSES - no needs to include *curses.h.
2243 (smbfs_loaddir): Fix warning.
2245 2002-09-21 Pavel Roskin <proski@gnu.org>
2247 * mcfs.c: Move config.h to the beginning.
2249 2002-09-19 Andrew V. Samoilov <sav@bcs.zp.ua>
2251 * tcputil.c [!WITH_MCFS]: Disable mcfs related code.
2252 * mcfs.c [!WITH_MCFS]: Disable all code.
2254 2002-09-16 Andrew V. Samoilov <sav@bcs.zp.ua>
2256 * smbfs.c: Don't define BOOL_DEFINED to fix compilation on
2259 2002-09-13 Andrew V. Samoilov <sav@bcs.zp.ua>
2261 * (get_stat_info): Fix some possible NULL dereferences.
2262 * smbfs.c (smbfs_set_debugf): New function to specify
2264 * smbfs.h: Declare smbfs_set_debugf().
2266 2002-09-12 Pavel Roskin <proski@gnu.org>
2268 * mcserv.c: Declare crypt if crypt.h is missing and we are not
2271 2002-09-11 Andrew V. Samoilov <sav@bcs.zp.ua>
2273 * smbfs.c (statfile_helper): Merge with loaddir_helper().
2274 (get_remote_stat): Use loaddir_helper(). Care about
2275 single_entry instead of eliminated statfile_helper().
2277 * samba/libsmb/clientgen.c (cli_NetServerEnum): Add void*
2278 parameter to (*fn)() and void *state parameter.
2279 (cli_list): Likewise.
2280 (cli_RNetShareEnum): Likewise. Return int.
2281 * samba/include/proto.h: Adjust declarations.
2282 * smbfs.c: Adjust all helpers and dependencies.
2283 From Samba patchsets.
2285 * smbfs.c (loaddir_helper): Remove write permissions if file
2286 has readonly attribute. Add execute permissions for directory.
2287 Reformat whole function.
2288 (statfile_helper): Likewise.
2289 (server_browsing_helper): Add execute permissions. Reformat.
2290 (browsing_helper): Likewise.
2292 2002-09-10 Pavel Roskin <proski@gnu.org>
2294 * vfs.h: Remove BROKEN_PATHS, it's unused.
2296 * Make-alone.am: Get rid of all standalone code, it has been
2297 unmaintained for years.
2299 2002-09-05 Pavel Roskin <proski@gnu.org>
2301 * direntry.c [!USE_NETCODE]: Disable functions used in networked
2304 * vfs.c (vfs_init) [!USE_NETCODE]: Don't register fish.
2306 * ftpfs.c: Check for existence of arpa/inet.h when using it.
2308 * mcserv.c: Likewise.
2309 * tcputil.c: Likewise.
2310 * utilvfs.c: Likewise.
2312 2002-09-03 Pavel Roskin <proski@gnu.org>
2314 * vfs.c (vfs_get_password): Use INPUT_PASSWORD to request a
2317 2002-09-02 Andrew V. Samoilov <sav@bcs.zp.ua>
2319 * smbfs.c (smbfs_close): Return -1 if cli->outbuf is NULL and
2320 set my_errno to EINVAL - temporary fix. Reformat function.
2322 2002-09-01 Andrew V. Samoilov <sav@bcs.zp.ua>
2324 * samba/param/loadparm.c: Add global_scope variable.
2325 (parm_table): Add netbios scope parameter.
2326 * samba/lib/util.c: Remove scope variable. Use global_scope instead.
2327 * samba/libsmb/nmblib.c (make_nmb_name): Remove scope parameter and
2328 use global_scope instead.
2329 * samba/libsmb/namequery.c: Adjust make_nmb_name() calls.
2330 * samba/include/proto.h: Adjust make_nmb_name() declaration.
2332 From samba 2.0.7 patchset.
2334 * samba/param/loadparm.c (lp_adduser_script): Commented out.
2335 (lp_deluser_script): Likewise.
2336 (lp_add_printer): Likewise.
2337 (lp_add_one_printer): Likewise.
2338 * samba/lib/util.c (reduce_name): Likewise.
2339 (transfer_file): Likewise.
2341 * smbfs.c (smbfs_do_connect): Adjust make_nmb_name() calls.
2343 2002-08-26 Pavel Roskin <proski@gnu.org>
2345 * extfs/urar.in: Use rar if unrar is missing.
2346 From PLD Linux Distribution.
2348 * extfs/a: Use more portable way to redirect all output to
2349 /dev/null. From PLD Linux Distribution.
2351 2002-08-24 Pavel Roskin <proski@gnu.org>
2353 * vfs.c (vfs_parse_ls_lga): Better error message, avoid empty
2356 2002-08-23 Pavel Roskin <proski@gnu.org>
2358 * Makefile.am: Use mcserv_LDFLAGS, not mcserv_LDADD for the
2361 2002-08-22 Pavel Roskin <proski@gnu.org>
2363 * mcserv.c: Remove old-style Linux-only support for shadow
2365 * Makefile.am: Remove reference to SHADOWLIB.
2367 2002-08-21 Andrew V. Samoilov <sav@bcs.zp.ua>
2369 * ftpfs.c (dir_load): Don't handle empty remote_path in special
2372 2002-08-19 Pavel Roskin <proski@gnu.org>
2374 * direntry.c (vfs_s_get_line): Fix off-by-one buffer overflow.
2376 * fish.c (pipeopen): Use _exit(), not vfs_die() to terminate the
2377 child if execvp() fails.
2379 * sfs.c: Don't use flag EXECUTE_SETUID because it's being
2380 removed as insecure and EXECUTE_WAIT because it has no effect.
2381 * extfs.c: Likewise.
2383 * mcfs.c [!WITH_MCFS]: Disable most code.
2385 2002-08-18 Pavel Roskin <proski@gnu.org>
2387 * vfs.h: Declare vfs_timeout and tar_gzipped_memlimit.
2389 2002-08-15 Pavel Roskin <proski@gnu.org>
2391 * vfs.c (mc_def_getlocalcopy): Preserve existing extension.
2393 * direntry.c (vfs_s_getlocalcopy): Fix potentially dangerous
2396 * extfs.c (s_readdir): Simplify.
2397 * direntry.c (vfs_s_readdir): Use vfs_dirent.
2398 * mcfs.c (mcfs_readdir): Likewise.
2399 * smbfs.c (smbfs_readdir): Likewise.
2400 * undelfs.c (undelfs_readdir): Use vfs_dirent and
2403 * vfs.h: Introduce union vfs_dirent to ensure that we have
2404 enough space for the filename.
2405 * extfs.c (s_readdir): Use vfs_dirent. Avoid strcpy().
2407 * direntry.c (vfs_s_readdir): Use compute_namelen().
2408 * extfs.c (s_readdir): Likewise.
2409 * mcfs.c (mcfs_readdir): Likewise.
2410 * smbfs.c (smbfs_readdir): Likewise.
2412 2002-08-14 Pavel Roskin <proski@gnu.org>
2414 * vfs.h [!USE_VFS]: Declare mc_setctl as static inline function
2417 2002-08-06 Andrew V. Samoilov <kai@cmail.ru>
2419 * smbfs.c (myumask): Removed. It is only written and never read.
2420 (smbfs_init): Use PATH_SEP_STR and reformat.
2422 2002-08-01 Pavel Roskin <proski@gnu.org>
2424 * mcserv.c: Remove all references to MAD.
2427 2002-07-31 Andrew V. Samoilov <kai@cmail.ru>
2429 * samba/libsmb/clientgen.c (cli_send_tconX): Add missing
2431 (cli_printjob_del): Commented out.
2432 (cli_print_queue): Ditto.
2433 * samba/lib/system.c (sys_waitpid): Ditto.
2434 * samba/lib/util.c (reg_split_key): Ditto.
2435 (reg_get_subkey): Ditto.
2437 2002-07-29 Andrew V. Samoilov <kai@cmail.ru>
2439 * samba/configure.in: Don't check for union semun.
2440 * samba/include/includes.h [!HAVE_UNION_SEMUN]: Don't
2441 declare union semun.
2443 2002-07-26 Pavel Roskin <proski@gnu.org>
2445 * direntry.c (vfs_s_find_entry_linear): Canonicalize path before
2448 2002-07-25 Andrew V. Samoilov <kai@cmail.ru>
2450 * xdirentry.h (vfs_s_fh.u.fish): Add append field.
2451 * fish.c (fish_fh_open): Care about append.
2452 (linear_open): Likewise.
2453 (fish_store): Append data to target file if append is true.
2455 * mcserv.c [HAVE_MAD]: Include "../src/mad.c" at the end of
2456 file to fix compilation.
2457 (main): Add mad_init() and mad_finalize().
2459 2002-07-19 Pavel Roskin <proski@gnu.org>
2461 * ftpfs.c: Don't use SUP.home, use SUP.cwdir.
2463 (dir_load): Update SUP.cwdir.
2464 * xdirentry.h: Remove "home" field for fish and ftpfs.
2466 * xdirentry.h: Get rid of ifree(), it's equivalent to g_free().
2467 * direntry.c: Likewise.
2469 * ftpfs.c: Likewise.
2471 * fish.c (fish_fill_names): New function, replacement for
2472 generic vfs_s_fill_names() which didn't work right with fish.
2474 * undelfs.c (undelfs_opendir): Use parametrized messages without
2475 VFS name for success and failure.
2476 * fish.c (dir_load): Use new messages from undelfs.c, indicate
2477 success by printing "done".
2478 * ftpfs.c (dir_load): Likewise.
2480 2002-07-15 Pavel Roskin <proski@gnu.org>
2482 * cpio.c (cpio_read_crc_head): Undo change in the error message.
2484 * ftpfs.c: Replace bzero and bcopy with memset and memcpy.
2486 * mcserv.c: Likewise.
2487 * smbfs.c: Likewise.
2490 2002-07-14 Pavel Roskin <proski@gnu.org>
2492 * fish.c (open_archive_int): Don't combine "export" and
2493 assignment into one command - it's not portable. Set LC_TIME
2496 * fish.c (open_archive_int): Set remote locale to C, otherwise
2497 timestamps cannot be parsed in some locales.
2499 2002-07-12 Pavel Roskin <proski@gnu.org>
2501 * fish.c (file_store): Reduce input block size to 256 bytes,
2502 otherwise dd gets partial blocks.
2504 * ftpfs.c (login_server) [HSC_PROXY]: Fix crash.
2506 * ftpfs.c (ftp_split_url): Implement looking up password in
2507 .netrc for known user.
2509 * ftpfs.c (ftp_split_url): Don't expect lookup_netrc() to always
2511 (netrc_has_incorrect_mode): Don't free anything, it can result
2512 in freeing some variables twice.
2513 (find_machine): New function to find matching "machine" or
2515 (lookup_netrc): Eliminate external loop - scan for login and
2516 password, but don't fallback to another string in case of
2519 * ftpfs.c: Introduce enum keyword_t to improve readability.
2520 (netrc_next): Fix return value for unknown keywords.
2521 (lookup_netrc): Remove special processing of "*netrc*".
2523 * ftpfs.c (ftp_split_url): Move protection against pass being
2525 (lookup_netrc): ... here.
2527 2002-07-11 Pavel Roskin <proski@gnu.org>
2529 * xdirentry.h: Eliminate use_proxy field.
2530 * ftpfs.c (open_archive_int): Use SUP.proxy instead of
2532 (open_archive): Set SUP.proxy to ftpfs_proxy_host.
2533 * ftpfs.h: Eliminate unused structures.
2535 * vfs.h: Rename URL_DEFAULTANON to URL_ALLOW_ANON.
2536 * utilvfs.c (vfs_split_url): Return NULL as username if
2537 URL_ALLOW_ANON is set and no username is found in the URL,
2538 otherwise use current name.
2539 * ftpfs.c (ftp_split_url): New function - split URL and look up
2540 username and password if needed.
2541 (login_server): Use ftp_split_url().
2542 (archive_same): Likewise.
2544 2002-07-10 Pavel Roskin <proski@gnu.org>
2546 * tcputil.h: Move use_netrc declaration ...
2548 * ftpfs.c: Implement .netrc support unconditionally.
2549 (lookup_netrc): Make static.
2550 * utilvfs.c: Initialize default_is_netrc.
2551 From Thomas Zajic <zlatko@gmx.at>
2553 * direntry.c (vfs_s_open): Don't pass O_LINEAR to open() -
2554 this flag is for VFS only, and causes side effects in Cygwin.
2555 * extfs.c (extfs_open): Likewise.
2556 * sfs.c (sfs_open): Likewise.
2557 Reported by Pavel Tsekov <ptsekov@gmx.net>
2559 2002-07-03 Pavel Roskin <proski@gnu.org>
2561 * ftpfs.c (setup_passive): Cast arguments to isdigit() to
2562 unsigned char for compatibility with non-GNU libc.
2563 * tar.c (from_oct): Likewise with isspace().
2564 Reported by Roland Illig <1illig@informatik.uni-hamburg.de>
2566 2002-07-03 Andrew V. Samoilov <kai@cmail.ru>
2568 * extfs.c (extfs_fill_names): Generate filename#vfsname/dir
2569 instead of #vfsname/filename/dir. Use PATH_SEP_STR.
2571 * sfs.c (sfs_free): Fix memory leak.
2572 (sfs_init): Use PATH_SEP_STR.
2574 2002-07-03 Pavel Roskin <proski@gnu.org>
2576 * cpio.c (cpio_open_cpio_file): Fix type initialization.
2577 From Andrew V. Samoilov <kai@cmail.ru>
2579 2002-07-02 Pavel Roskin <proski@gnu.org>
2581 * Makefile.am: Add samba to SUBDIRS. Forcedly set DISTDIRS to
2582 extfs. Remove parts that are now handled by samba/Makefile.
2583 * samba/Makefile.in: Add more empty targets for Automake
2586 * ftpfs.c (send_ftp_command): Use "anonymous@" as default
2588 From Eduardo Perez Ureta <eperez@it.uc3m.es>
2590 2002-06-25 Pavel Roskin <proski@gnu.org>
2592 * vfs.c: Add protection against NULL strings to all is_*()
2595 2002-06-21 Andrew V. Samoilov <kai@cmail.ru>
2597 * smbfs.c: Undefine PACKAGE_BUGREPORT, PACKAGE_NAME,
2598 PACKAGE_STRING, PACKAGE_TARNAME and PACKAGE_VERSION
2599 before including "samba/include/config.h" to prevent warnings.
2600 (smbfs_init): Set DEBUGLEVEL to 0.
2601 (do_connect): Rename to ...
2602 (smbfs_do_connect): ... this to avoid namespace clash and
2603 make static. Make server const. Adjust all callers.
2604 (smbfs_add_dots): Remove.
2605 (smbfs_stat): Remove code duplication.
2606 (smbfs_lstat): Define as smbfs_stat.
2608 * samba/lib/system.c (sys_ftruncate): Commented out.
2609 * samba/lib/util.c (set_filelen): Likewise.
2610 (setbuffer): Likewise.
2612 * Makefile.am (SAMBA_DIST): Remove tests/ftruncate.c
2613 * samba/tests/ftruncate.c: Removed.
2614 * samba/configure.in: Don't check if ftruncate() can
2617 2002-06-06 Andrew V. Samoilov <kai@cmail.ru>
2619 * cpio.c (cpio_read_oldc_head): Use char[] for buf instead
2620 of char*[]. Remove unneeded casts. Fix error message.
2621 (cpio_create_entry): G_free name. Fix offset calculation
2624 2002-05-22 Pavel Roskin <proski@gnu.org>
2626 * Makefile.am (mcserv_SOURCES): Remove $(top_srcdir)/src/mad.c,
2627 it breaks "make distcheck".
2629 * Makefile.am: Set samba_libsamba_a_SOURCES to an empty value
2630 to override the default.
2632 2002-05-22 Andrew V. Samoilov <kai@cmail.ru>
2634 * xdirentry.h (vfs_s_fh.u.ftp): Add append field.
2635 (vfs_s_data.file_store): Change second argument
2637 * direntry.c (vfs_s_close): Adjust.
2638 * fish.c (file_store): Likewise.
2639 * ftpfs.c (file_store): Likewise. Use "APPE" if
2640 fh->u.ftp.append is true.
2641 (linear_start): Care about fh->u.ftp.append.
2642 (ftpfs_fh_open): Likewise.
2644 * fish.c (fish_fh_open): Generate fh->ino->localname
2645 if this one is NULL and file is opened for writing only.
2646 * ftpfs.c (ftpfs_fh_open): Likewise if control_connection_buzy
2649 2002-05-21 Andrew V. Samoilov <kai@cmail.ru>
2651 * direntry.c (vfs_s_retrieve_file): Please, care about
2653 * fish.c (linear_close): ... here.
2655 * ftpfs.c (linear_read): Unset control_connection_buzy on EOF.
2656 (ftpfs_fh_close): Call vfs_s_invalidate ().
2658 * fish.c (fish_fh_open): Don't retrieve file if it is
2659 opened for writing only.
2661 2002-05-17 Andrew V. Samoilov <kai@cmail.ru>
2663 * xdirentry.h (vfs_s_super): Add control_connection_buzy
2664 field to ftp struct.
2666 * ftpfs.c (linear_start): Set control_connection_buzy.
2667 (linear_abort): Unset control_connection_buzy.
2668 (ftpfs_fh_open): Don't retrieve file if it is
2669 opened for writing only. Open data connection as
2670 fh->handle and unlink/unset local temporary file
2671 if control connection isn't buzy.
2672 (ftpfs_fh_close): New function to serve opened in
2673 ftpfs_fh_open() data connection. Unset fh->changed
2674 to prevent MEDATA->file_store() call from vfs_s_close().
2676 * direntry.c (vfs_s_read): Move MEDATA->linear_start() ...
2677 (vfs_s_open): ... here.
2679 * samba/include/includes.h: Eliminate all references to
2682 2002-05-14 Andrew V. Samoilov <kai@cmail.ru>
2684 * Makefile.am (noinst_LIBRARIES): Add samba/libsamba.a
2685 if USE_SAMBA_FS is true.
2686 (libvfs-mc.a): Don't merge object files with libsamba.a.
2688 2002-05-13 Andrew V. Samoilov <kai@cmail.ru>
2690 * Makefile.am (mcserv_SOURCES): Add $(top_srcdir)/src/mad.c.
2692 * vfs.c (MC_RENAMEOP): Make arguments const.
2693 * vfs.h (mc_rename): Adjust declaration.
2694 (mc_link): Likewise.
2696 2002-05-11 Andrew V. Samoilov <kai@cmail.ru>
2698 * samba/configure.in: Add AC_SYS_LARGEFILE.
2699 Don't check atexit, setreuid, setregid, setegid and setluid.
2701 2002-04-31 Pavel Roskin <proski@gnu.org>
2703 * samba/acconfig.h: Remove.
2704 * Makefile.am: Remove references to samba/acconfig.h.
2705 * samba/Makefile.in: Likewise.
2706 * samba/aclocal.m4: Remove unused test AC_DIRENT_D_OFF.
2707 * samba/configure.in: Add descriptions to AC_DEFINE calls.
2708 Remove unused tests.
2709 * samba/include/includes.h: Cleanup for the symbols that
2710 samba/configure.in doesn't define.
2711 * samba/lib/netmask.c: Likewise.
2713 * samba/include/includes.h: Eliminate all references to
2714 HAVE_EXPLICIT_LARGEFILE_SUPPORT.
2715 * samba/lib/system.c: Likewise.
2717 2002-04-24 Andrew V. Samoilov <kai@cmail.ru>
2719 * vfs.c (vfs_print_stats): s/transfered/transferred/
2721 * samba/lib/signal.c: Remove.
2723 * samba/lib/debug.c (sig_usr2): Commented out.
2724 (sig_usr1): Likewise.
2725 * samba/lib/util_file.c (gotalarm): Commented out.
2726 (gotalarm_sig): Likewise.
2727 (do_file_lock): Likewise.
2728 (file_lock): Likewise.
2729 (file_unlock): Likewise.
2730 (startfilepwent): Likewise.
2731 (endfilepwent): Likewise.
2733 * samba/Makefile.in (SAMBAFILES): Remove lib/signal.o.
2734 * Makefile.am (SAMBA_DIST): Remove lib/signal.c.
2736 2002-04-19 Andrew V. Samoilov <kai@cmail.ru>
2738 * vfs.c (vfs_init) [!WITH_MCFS]: Don't register mcfs.
2740 2002-04-12 Pavel Roskin <proski@gnu.org>
2742 * extfs/trpm: update to work with rpm 4.x.
2743 Reported by m.lusini@palazzochigi.it
2744 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=62306
2746 2002-04-12 Andrew V. Samoilov <kai@cmail.ru>
2748 * cpio.c (cpio_skip_padding): Handle old ASCII format.
2750 2002-04-08 Pavel Roskin <proski@gnu.org>
2752 * samba/configure.in: Require Autoconf 2.52 to make Debian
2753 wrapper around Autoconf happy.
2754 From Björn Eriksson <bjorn@bjornen.nu>
2756 2002-03-06 Andrew V. Samoilov <kai@cmail.ru>
2758 * direntry.c (vfs_s_resolve_symlink): Comment out buggy code.
2759 (vfs_s_retrieve_file): Set fh->handle to -1.
2760 (vfs_s_read): Don't manipulate with FH->handle if it is -1.
2761 (vfs_s_write): Likewise.
2762 (vfs_s_close): Likewise.
2764 2002-02-27 Andrew V. Samoilov <kai@cmail.ru>
2766 * samba/lib/debug.c: Remove syslog support.
2768 2002-02-19 Pavel Roskin <proski@gnu.org>
2770 * Makefile.am: Don't compile mcserv if VFS is disabled.
2771 * extfs/Makefile.am: Don't install anything if VFS is disabled.
2773 * extfs.c (extfs_open): Only create a new entry if it has not
2774 been found and O_CREAT is set. Consider file as changed only
2775 if it has been successfully created.
2776 (extfs_getlocalcopy): Open file only for reading. This prevents
2777 marking file as changed. Actually use the has_changed argument.
2778 Reported by Nerijus Baliunas <nerijus@users.sourceforge.net>
2780 2002-02-12 Pavel Roskin <proski@gnu.org>
2782 * extfs/lslR.in: Fix parsing of old entries (with year number).
2783 From Daniel Skarda <0rfelyus@atrey.karlin.mff.cuni.cz>
2785 2002-02-08 Andrew V. Samoilov <kai@cmail.ru>
2787 * direntry.c (vfs_s_retrieve_file): Use off_t for total
2789 (vfs_s_resolve_symlink): Use snprintf instead of sprintf.
2791 * vfs.c (vfs_print_stats): Use off_t for have and need.
2792 Cast `have' to double to eliminate negative percent(s).
2793 Fix print_vfs_message string formats.
2795 * vfs.h (vfs_print_stats): Adjust declaration.
2797 * ftpfs.c (file_store): Use off_t for total.
2798 Fix print_vfs_message string format.
2800 2002-02-07 Andrew V. Samoilov <kai@cmail.ru>
2802 * ftpfs.c (dir_load): Speed up cd_first calculation.
2803 (ftpfs_flushdir): Resurrect.
2805 2002-02-06 Andrew V. Samoilov <kai@cmail.ru>
2807 * ftpfs.c (dir_load): Use "LIST -la" instead of "LIST -la ."
2808 to eliminate problem with wu-ftpd.
2809 Close sock on error. Eliminate goto.
2811 (ftpfs_chmod): Don't ignore errors.
2813 (reconnect): Restore cwdir if login_server fails.
2815 2002-02-01 Andrew V. Samoilov <kai@cmail.ru>
2817 * ftpfs.c (translate_path): Remove leading slash(es) more
2819 (initconn): Check getsockname() return value.
2821 (linear_abort): Make ipbuf const array.
2823 2002-01-29 Andrew V. Samoilov <kai@cmail.ru>
2825 * ftpfs.c (reconnect): New function to restore closed connection.
2826 (command): Use reconnect if EPIPE received.
2827 (dir_load): Eliminate recursion.
2828 (login_server): Constify netrcpass parameter.
2829 (is_same_dir): Constify path parameter.
2831 * samba/lib/charset.c (cp_850): Make const array.
2833 (codepage_p): Likewise.
2834 * samba/lib/debug.c (priority_map): Make const array.
2835 * samba/lib/username.c (get_home_dir): Make pass auto.
2836 * samba/lib/util.c (become_daemon): Commented out.
2839 2002-01-24 Pavel Roskin <proski@gnu.org>
2841 * cpio.c: Don't include glib.h directly.
2843 2002-01-22 Pavel Roskin <proski@gnu.org>
2845 * extfs/uzip: Fix unsafe printf.
2846 Reported by Jari Karppinen <jakarppi@mail.student.oulu.fi>
2848 2002-01-22 Andrew V. Samoilov <kai@cmail.ru>
2850 * ftpfs.c (ftpfs_chmod): Add missed '/'.
2852 2002-01-21 Pavel Roskin <proski@gnu.org>
2854 * vfs.h: Remove all tricks with system headers, they all should
2856 * cpio.c: Include utilvfs.h earlier.
2859 * vfs.h: Include dirent.h only if it's present.
2861 2002-01-21 Andrew V. Samoilov <kai@cmail.ru>
2864 * vfs.c (mc_return_cwd): Fix comment. Check whatever mc_stat
2865 returns. Make mc_return_cwd static const char *.
2866 Reorder if statement to eliminate unneeded mc_stat calls.
2868 2002-01-17 Pavel Roskin <proski@gnu.org>
2870 * vfs.h: Remove OS/2 specific code.
2872 2002-01-11 Andrew V. Samoilov <kai@cmail.ru>
2874 * Makefile.am (AM_CFLAGS): Add -DCONFIGDIR=\""@configdir@"\"
2875 if smbfs support is enabled.
2877 * smbfs.c (smbfs_init): Use CONFIGDIR for smb.conf.
2879 2002-01-02 Pavel Roskin <proski@gnu.org>
2881 * Makefile.am: Add *clean-local targets to take care of the
2884 * samba/configure.in: Use explicit AC_CONFIG_AUX_DIR because
2885 this setting is not inherited from the top-level configure.
2887 2001-12-31 Pavel Roskin <proski@gnu.org>
2889 * Make-mc.in: convert to ...
2890 * Makefile.am: ... this.
2892 * Makefile.am: rename to ...
2893 * Make-alone.am: ... this. Automake 1.5b doesn't allow Makefile
2894 and Makefile.am to coexist peacefully unless the former is
2895 generated from the later.
2896 * Make-mc.in: Remove all references to the standalone VFS.
2898 2001-12-18 Pavel Roskin <proski@gnu.org>
2900 * extfs/ulha.in: Support for "[unknown]" and other permissions
2901 in brackets. Pass the date unchanged - mc can now deal with it.
2902 Use "lha lq" to list the archive and don't remove headers and
2903 footers of the listing.
2905 2001-11-14 Pavel Roskin <proski@gnu.org>
2907 * undelfs.c: Use ext2_ino_t to avoid warnings with e2fsprogs
2910 2001-11-13 Andrew V. Samoilov <kai@cmail.ru>
2912 * samba/acconfig.h: Remove WITH_SYSLOG.
2913 * samba/lib/system.c (sys_chroot): Removed.
2914 * samba/configure.in: Remove RUNPROG. Don't check
2915 for chroot and execl functions.
2916 Remove syslog logging support.
2917 Add --with-codepagedir and --with-configdir from samba 2.2.2.
2919 * samba/Makefile.in: Use configdir and codepagedir.
2921 2001-11-08 Pavel Roskin <proski@gnu.org>
2923 * Make-mc.in (SAMBA_DIST): Remove lib/getsmbpass.c.
2925 2001-11-05 Andrew V. Samoilov <kai@cmail.ru>
2927 * smbfs.c (smbfs_add_dots): New function. Insert a "." and ".."
2928 entries into the linked list.
2929 (smbfs_loaddir): Call smbfs_add_dots() for shares or servers.
2930 (smbfs_get_free_bucket): Eliminate time.
2931 (fake_share_stat): Make path const.
2933 * samba/configure.in: Don't check whether getpass
2936 2001-11-02 Andrew V. Samoilov <kai@cmail.ru>
2938 * vfs.c (mc_return_cwd): Memory leak fixed.
2940 2001-11-01 Andrew V. Samoilov <kai@cmail.ru>
2942 * samba/smblib/pwd_cache.c (pwd_read): Commented out.
2943 * samba/Makefile.in (SAMBAFILES): Remove lib/getsmbpass.o.
2944 * samba/lib/getsmbpass.c: Removed.
2946 2001-10-30 Andrew V. Samoilov <kai@cmail.ru>
2948 * smbfs.c: Include <config.h> before everything else.
2949 Don't include "tcputil.h".
2950 (myhostname): Declare extern.
2952 (loaddir): Simplify.
2953 (fake_share_stat): Declare server_url const.
2954 Use "%4o" for st_mode.
2955 (fake_server_stat): Likewise. Return -1 if server_list != True.
2957 (get_master_browser): Declare ipzero extern.
2958 By David Kaelbling <drk@sgi.com>.
2959 http://bugzilla.gnome.org/show_bug.cgi?id=60933
2961 * cpio.c (cpio_read_bin_head): Release name if mc_read() fails.
2962 (cpio_read_crc_head): Likewise.
2964 2001-10-25 Andrew V. Samoilov <kai@cmail.ru>
2966 * cpio.c (cpio_read_crc_head): Fix buffer overflow.
2967 (cpio_read_oldc_head): Likewise.
2968 By David Kaelbling <drk@sgi.com>.
2969 http://bugzilla.gnome.org/show_bug.cgi?id=60933
2971 * (cpio_read_oldc_head): Release name if mc_read() fails.
2973 2001-10-24 Andrew V. Samoilov <kai@cmail.ru>
2975 * tcputil.c (rpc_get): Add missing va_end()s.
2977 * smbfs.h: Declare smbfs_set_debug().
2979 2001-10-20 Pavel Roskin <proski@gnu.org>
2981 * ftpfs.c (command): Declare with the printf attribute.
2982 * undelfs.c: Remove declaration of print_vfs_message().
2984 * fish.c (file_store): Fix incorrect format string
2985 for print_vfs_message().
2986 * ftpfs.c (file_store): Likewise.
2988 2001-10-19 Pavel Roskin <proski@gnu.org>
2990 * fish.c (command): Declare with the printf attribute to enable
2992 (file_store): Cast all expressions with file sizes to unsigned
2993 long. This should fix uploading when large file support is on.
2994 File size is limited to 4096 * ULONG_MAX for now.
2996 2001-10-18 Andrew V. Samoilov <kai@cmail.ru>
2998 * samba/configure.in: Don't check readline.h, history.h and
3001 2001-10-16 Andrew V. Samoilov <kai@cmail.ru>
3003 * samba/libsmb/clientgen.c (cli_RNetShareEnum): Fix Win2k
3004 "out of server memory" error. From samba 2.0.7 patchset.
3006 2001-10-07 Pavel Roskin <proski@gnu.org>
3008 * vfs.c (vfs_parse_filetype): Fix fallback to fifo if sockets
3009 are not supported locally. Support Solaris doors, also fall
3012 2001-10-02 Andrew V. Samoilov <kai@cmail.ru>
3014 * sfc.c (sfs_getid): Don't use vfs_die(), return (vfsid)(-1)
3017 2001-10-01 Pavel Roskin <proski@gnu.org>
3019 * vfs.h [!USE_VFS]: Define macros with no effect to an empty
3020 statement "do { } while (0)".
3022 2001-09-30 Pavel Roskin <proski@gnu.org>
3024 * samba/acconfig.h: Only leave symbols required by Autoconf-2.52.
3026 2001-09-17 Pavel Roskin <proski@gnu.org>
3028 * vfs.c: Manually expand macros for mc_stat(), mc_lstat() and
3029 mc_fstat() because they don't expand correctly on Solaris 8 with
3032 2001-09-10 Pavel Roskin <proski@gnu.org>
3034 * Make-mc.in: Use USE_VFS conditional instead of relying on
3037 2001-09-07 Pavel Roskin <proski@gnu.org>
3039 * Make-mc.in: Include necessary parts of Make.common to
3040 eliminate the later.
3042 2001-08-23 Pavel Roskin <proski@gnu.org>
3044 * names.c (finduname): Don't use HAVE_GETPWUID - it's never
3045 defined. Don't redeclare getpwuid().
3046 (findgname): Don't use HAVE_GETGRGID - it's never defined.
3047 Don't redeclare getgrgid().
3049 * fish.c: Remove useless semicolons after functions.
3051 2001-08-19 Pavel Roskin <proski@gnu.org>
3053 * vfs.c (vfs_parse_ls_lga): Warning fix if st_nlink is unsigned.
3054 Disallow st_nlink = 0.
3056 2001-08-18 Pavel Roskin <proski@gnu.org>
3058 * cpio.c (cpio_read_head): Check return value of cpio_find_head,
3059 because it's not equal to super->u.cpio.type in case of errors.
3061 2001-08-16 Pavel Roskin <proski@gnu.org>
3063 * direntry.c (vfs_s_free_super): Remove i18n on commented out
3064 developer-only code.
3066 * extfs.c (extfs_init): Internationalize error message, it's
3069 2001-08-11 Pavel Roskin <proski@gnu.org>
3071 * sfs.c (sfs_init): Use g_free(), not free() on mc_sfsini.
3073 2001-08-07 Pavel Roskin <proski@gnu.org>
3075 * extfs.h: Move private structures ...
3076 * extfs.c: ... here.
3078 * extfs.h (struct entry): Remove unused `has_changed' field.
3079 It's only written but never read.
3080 (struct inode): Likewise.
3081 * extfs.c: All dependencies changed.
3082 (extfs_open): Mark file as changed if it's open for writing.
3084 2001-08-07 Oskar Liljeblad <osk@hem.passagen.se>
3086 * extfs/uzip: Update to version 1.4.0.
3087 * extfs/README.uzip: Likewise.
3089 2001-08-06 Andrew V. Samoilov <kai@cmail.ru>
3091 * smbfs.c: Eliminate smbfs_get_free_bucket_init(). convert_path()
3092 gives malloc()ed filename, so this memory must be released after use.
3094 (reconnect): Fix segmentation fault.
3095 (smbfs_loaddir): Don't g_stirrup() path.
3096 (smbfs_get_free_bucket): Eliminate smbfs_get_free_bucket_init() and
3097 smbfs_connections initialization.
3098 (smbfs_open_link): Likewise. Release host after get_master_browser().
3099 (get_stat_info): Fix unneeded g_startup/g_free calls.
3100 (smbfs_mkdir): Release path after use.
3101 (smbfs_mkdir): Likewise.
3102 (smbfs_open): Fix memory leak.
3103 (smbfs_unlink): Likewise. Fix error message.
3104 (smbfs_rename): Fix memory leaks.
3105 (smbfs_stat): Fix url parsing.
3107 * samba/lib/charging.c (unix2dos_format): Fix possible buffer overflow.
3108 (dos2unix_format): Likewise.
3110 * ftpfs.c (ftpfs_fill_names): New function.
3111 (vfs_ftpfs_ops): Use ftpfs_fill_names instead of vfs_s_fill_names.
3113 2001-08-03 Andrew V. Samoilov <kai@cmail.ru>
3115 * utilvfs.c, vfs.h (vfs_split_url): Make path parameter const.
3117 * xdirentry.h (struct vfs_s_super): Remove u.ftp.result_pending field.
3118 * ftpfs.h (struct connection): Remove result_pending field.
3120 * samba/libsmb/clientgen.c (cli_chkpath): Fix possible buffer overflow.
3121 * smbfs.c (new_dir_entry): New function with repeated code from
3122 browsing_helper(), loaddir_helper() and server_browsing_helper().
3123 (browsing_helper): Use new_dir_entry().
3124 (loaddir_helper): Likewise.
3125 (server_browsing_helper): Likewise.
3127 (cached_lstat_info): Eliminated.
3128 (smbfs_readdir): Make dirent_dest static const.
3129 Eliminate cached_lstat_info.
3130 (smbfs_open_link): Make user parameter const. Fix memory leak.
3131 (fake_server_stat): Make path parameter const. Simplify.
3132 (smbfs_fstat): Set my_errno to EFAULT before return.
3134 2001-08-01 Pavel Roskin <proski@gnu.org>
3136 * Make-mc.in: Make it possible to run "make install" before
3137 "make all". Use more Automake-compatible target names.
3139 2001-08-01 Andrew V. Samoilov <kai@cmail.ru>
3141 * smbfs.c: Undefine VERSION to prevent warning. Comments fixes.
3142 (do_connect): Simplify.
3143 (get_stat_info): Simplify. Eliminate another fake_stat.
3144 (smbfs_chdir): Release remote_dir after use.
3145 (smbfs_stat): Likewise. Fix another 2 memory leaks.
3146 (smbfs_mkdir): Release remote_file after use.
3147 (smbfs_rmdir): Likewise.
3148 (smbfs_open): Likewise. Indentation fixes.
3149 (smbfs_unlink): Likewise.
3150 (smbfs_rename): Release rb and ra after use.
3151 (search_dir_entry): Make text parameter const.
3152 (smbfs_get_host_and_username): Make macro.
3154 2001-07-20 Pavel Roskin <proski@gnu.org>
3156 * extfs.c (extfs_init) [GTK]: Use mc_home instead of LIBDIR.
3157 From Ludovic Drolez <ludovic.drolez@freealter.com>.
3159 2001-07-17 Pavel Roskin <proski@gnu.org>
3161 * vfs.c (mc_return_cwd): Use g_get_current_dir().
3163 2001-07-15 Pavel Roskin <proski@gnu.org>
3165 * smbfs.c: Rename authinfo to smb_authinfo and
3166 authinfo_get_authinfo_from_user() to vfs_smb_get_authinfo()
3167 and remove their definitions.
3168 * vfs.h: Declare smb_authinfo and vfs_smb_get_authinfo().
3170 2001-07-10 Pavel Roskin <proski@gnu.org>
3172 * extfs.c: Include contents of shared_tar_ext.c - it's no
3174 * shared_tar_ext.c: Remove.
3175 * Make-mc.in (VFSSRCS): Remove shared_tar_ext.c.
3177 * smbfs.c (vfs_smbfs_ops): Use short name "smbfs" for the
3178 filesystem. Don't translate it.
3180 2001-07-09 Pavel Roskin <proski@gnu.org>
3182 * tar.c (ReadStatus): Fix compilation on AIX.
3183 From Dan McNichol <mcnichol@austin.ibm.com>.
3185 * extfs/mailfs: Strip trailing DOS newlines from mail files.
3186 From Christian Gennerat <christian.gennerat@vz.cit.alcatel.fr>
3188 * fish.c (fish_chown): Do nothing and return success if
3189 getpwuid() or getgrgid() fails.
3191 2001-07-05 Pavel Roskin <proski@gnu.org>
3193 * README.fish: Spelling fixes.
3195 2001-06-29 Pavel Roskin <proski@gnu.org>
3197 * Make-mc.in: Don't ever link mcserv with libintl - it must not
3200 2001-06-27 Andrew V. Samoilov <sav@bcs.zp.ua>
3202 * smbfs.c: Include <config.h>. Make all internal variables static.
3203 (get_stat_info): Eliminate fake_stat, memory leak fixed.
3204 (IPC, URL_HEADER): Make static const.
3205 (smbfs_stat): Fix segmentation violation.
3206 (statfile_helper): Allocate memory for single_entry once. It is never
3207 freed now, and only my_stat element of this structure is used.
3209 2001-06-26 Pavel Roskin <proski@gnu.org>
3211 * vfs.h: Don't include <config.h>.
3213 2001-06-25 Pavel Roskin <proski@gnu.org>
3215 * cpio.c: Include <config.h> before everything else.
3216 * direntry.c: Likewise.
3218 * ftpfs.c: Likewise.
3219 * local.c: Likewise.
3221 * utilvfs.h: Don't include <config.h> - it should be included
3222 in all C files instead.
3223 * xdirentry.h: Likewise.
3225 2001-06-19 Pavel Roskin <proski@gnu.org>
3227 * local.c (local_telldir): Warn and abort if telldir() is not
3229 (local_seekdir): Warn and abort if seekdir() is not available.
3231 2001-06-18 Pavel Roskin <proski@gnu.org>
3233 * tcputil.c (sig_pipe): Use the same declaration with one int
3234 argument - it's used everywhere else and it fixes a warning on
3235 systems unlisted in the ifdef, e.g. OpenBSD.
3237 2001-06-14 Pavel Roskin <proski@gnu.org>
3239 * ftpfs.c: Declare functions without declarations static. Don't
3240 omit `void' in declarations.
3242 * direntry.c: Likewise.
3243 * extfs.c: Likewise.
3248 * mcserv.c: Likewise. Remove unused functions.
3250 * util-alone.c: Use indented #error.
3251 * vfs.h: Use indented #warning instead of hiding it from non-gcc
3254 2001-06-11 Pavel Roskin <proski@gnu.org>
3256 * cpio.c (vfs_cpiofs_ops): Use short name for the filesystem.
3257 This avoids creating long filenames in dirent.c when the "name"
3259 * extfs.c (vfs_extfs_ops): Likewise.
3260 * fish.c (vfs_fish_ops): Likewise.
3261 * ftpfs.c (vfs_ftpfs_ops): Likewise.
3262 * local.c (vfs_local_ops): Likewise.
3263 (vfs_nil_ops): Likewise.
3264 * mcfs.c (vfs_mcfs_ops): Likewise.
3265 * sfs.c (vfs_sfs_ops): Likewise.
3266 * tar.c (vfs_tarfs_ops): Likewise.
3267 * undelfs.c (vfs_undelfs_ops): Likewise.
3269 2001-06-07 Pavel Roskin <proski@gnu.org>
3271 * sfs.c (sfs_init): Change some warning messages to simplify
3274 2001-06-06 Pavel Roskin <proski@gnu.org>
3276 * shared_ftp_fish.c: Remove.
3277 * Make-mc.in: Remove shared_ftp_fish.c.
3278 * Makefile.am: Likewise.
3280 2001-06-02 Pavel Roskin <proski@gnu.org>
3282 * vfs.c (vfs_canon): s/canonize/canonicalize/.
3284 2001-06-01 Andrew V. Samoilov <sav@bcs.zp.ua>
3286 * ftpfs.h: Declare use_netrc, ftpfs_retry_seconds,
3287 ftpfs_first_cd_then_ls, ftpfs_use_passive_connections and
3288 ftpfs_use_unix_list_options.
3290 * vfs.c [VFS_STANDALONE]: Undefine WITH_SMBFS, they are mutually
3292 (is_week): Unmade week static.
3293 (is_month): Unmade month static.
3294 (vfs_parse_ls_lga): Optimize memory usage.
3296 * .cvsignore: *.sor added.
3297 * sfs.c (sfs_init): Optimized.
3299 * vfs/samba/lib/util_sock.c (socket_options): Made static const.
3301 2001-05-30 Ludovic Drolez <ludovic.drolez@freealter.com>
3303 * sfs.c (sfs_init): Don't hardcode location of sfs.ini,
3304 use mc_home to make mc relocatable.
3305 * util-alone.c (shell): ... here
3307 2001-05-27 Pavel Roskin <proski@gnu.org>
3309 * fish.c: Redirect stderr of all commands to /dev/null.
3311 2001-05-25 Pavel Roskin <proski@gnu.org>
3313 * sfs.c (vfs_sfs_ops): Typo fix.
3315 2001-05-22 Pavel Roskin <proski@gnu.org>
3317 * vfs.c (vfs_split_text): Fill `columns' with zeroes before
3318 writing new data into it.
3320 * fish.c (free_archive): Use `exit' instead of `logout' - the
3321 later fails under non-login shells.
3322 (pipeopen): Redirect stderr of ssh to /dev/null.
3324 (dir_load): Redirect stderr of ls to /dev/null.
3325 (linear_start): Likewise.
3327 2001-05-22 Andrew V. Samoilov <sav@bcs.zp.ua>
3329 * Make-mc.in (mostlyclean): Remove $(VFSSOOBJS).
3330 (clean): Remove *.so.
3332 * smbfs.c: Include utilvfs.h instead of ../config.h, ../src/main.h,
3333 ../src/tty.h and ../src/global.h.
3335 (password, username): Made static.
3336 (is_error): Commented out.
3337 (loaddir_helper): Don't ignore hidden files, style fixes.
3338 (browsing_helper): typestr declared as char *, fstrcpy replaced by =.
3340 (do_connect): Call cli_shutdown() and authinfo_remove() if
3341 cli_session_setup() fails. It is not good idea to remember
3342 wrong username/password.
3344 (smbfs_free_dir): Nested between #ifdef SMBFS_FREE_DIR ... #endif.
3345 (smbfs_readdir): #ifdef SMBFS_FREE_DIR used instead of C comment.
3347 2001-05-22 Pavel Roskin <proski@gnu.org>
3349 * sfs.c (redirect): Don't free the filename after failed
3350 mc_mkstemps() - it's not needed anymore.
3352 2001-05-21 Pavel Roskin <proski@gnu.org>
3354 * direntry.c (vfs_s_open): Use mc_mkstemps. Create and close
3355 temporary file to reserve its name on the filesystem.
3356 (vfs_s_retrieve_file): Use mc_mkstemps().
3357 (g_tempnam): Remove.
3358 * extfs.c (extfs_open): Use mc_mkstemps().
3359 * sfs.c (redirect): Likewise.
3360 * shared_ftp_fish.c (_get_file_entry): Likewise.
3361 (retrieve_file): Likewise.
3362 * vfs.c (mc_def_getlocalcopy): Likewise.
3363 * xdirentry.h: Remove declaration of g_tempnam().
3365 2001-05-18 Pavel Roskin <proski@gnu.org>
3367 * vfs.c (vfs_addstamp): Rename st1 to last_stamp. Initialize it
3368 with NULL to suppress compiler warning.
3370 2001-05-14 Pavel Roskin <proski@gnu.org>
3372 * ftpfs.c: Warning fixes.
3374 * utilvfs.h: Include background.h.
3375 * cpio.c: Include utilvfs.h.
3377 2001-05-14 Pavel Machek <pavel@bug.ucw.cz>
3379 * Make-mc.in: add possibility to build libvfs.so
3381 2001-04-19 Pavel Roskin <proski@gnu.org>
3383 * extfs/rpm (mcrpmfs_list): Use cpio for the listing since the
3384 rpm output varies between versions.
3385 (mcrpmfs_copyout): Fix processing of CONTENTS.cpio. Match
3386 filenames beginning with "./" - they are used in the version 4
3389 2001-04-17 Pavel Roskin <proski@gnu.org>
3391 * fish.c (open_archive_int): Redirect stderr of start_fish_server
3392 to stdout so we don't get confused if it doesn't exist.
3394 2001-04-09 Andrew V. Samoilov <sav@bcs.zp.ua>
3396 * samba/includes/proto.h, samba/libsmb/nterr.c (get_nt_error): return
3397 NULL when suitable error message can't be found as it is expected
3398 in cli_errstr(). Return type changed to const char *
3400 * smbfs.c (smbfs_fill_names): implemented
3402 (smbfs_stat): unneeded g_strdup/g_free calls removed
3403 (smbfs_loaddir): memory leaking fixed
3405 * samba/libsmb/clientgen.c (rap_errmap, prots): constified
3407 2001-04-06 Pavel Roskin <proski@gnu.org>
3409 * Make-mc.in: Use a single variable SAMBA_DIST to hold all
3410 distributable samba files.
3412 2001-03-15 Andrew V. Samoilov <sav@bcs.zp.ua>
3414 * samba/libsmb/smbdes.c: Undefine uchar before redefine it
3416 * smbfs.c (smbfs_close): Honor changed semantics for return value
3417 (on error -1 is expected).
3419 * (fs): It is at least strange use char * for counter. Changed to int
3421 2001-03-14 Pavel Roskin <proski@gnu.org>
3423 * Make-mc.in: Use Automake conditional USE_SAMBA_FS.
3424 Remove any knowledge of SAMBAFILES. Merge object files with
3425 libsamba.a if USE_SAMBA_FS is true. Propagate "mostlyclean"
3426 to the `samba' directory. Don't ignore errors from ranlib.
3428 * samba/Makefile.in: Make *clean targets Automake-compatible.
3429 Don't ignore errors from `rm'.
3431 * samba/configure.in: Use AC_CHECK_TOOL to find AR.
3432 * samba/Makefile.in: Remove useless rules, including defunct
3433 dependency tracking. Create libsamba.a from the object files.
3435 2001-03-07 Pavel Roskin <proski@gnu.org>
3437 * cpio.c (cpio_skip_padding): Warning fix.
3438 * fish.c (dir_load): Likewise.
3441 * extfs/uzip: New file from Oskar Liljeblad.
3442 * extfs/README.uzip: Likewise.
3443 * extfs/Makefile.am: Adjust for constant uzip.
3445 2001-03-07 Pavel Machek <pavel@bug.ucw.cz>
3447 * extfs/*uzip*: replace uzip with perl version by
3448 Oskar Liljeblad <osk@hem.passagen.se>
3450 2001-03-05 Andrew V. Samoilov <sav@bcs.zp.ua>
3452 * vfs.[ch] (vfs_parse_ls_lga, vfs_parse_filemode): p constified
3453 (vfs_strip_suffix_from_filename): filename constified
3454 (vfs_parse_ls_lga): memory leaking fixed when line can't be parsed,
3457 2001-03-04 Andrew V. Samoilov <sav@bcs.zp.ua>
3459 * extfs/patchfs: LANG overrides LC_TIME at least in glibc,
3460 so use LC_ALL=C to override any locale
3461 * smbfs.c (smbfs_open_link): service initialized
3462 * (my_forget): new features of vfs_split_url used
3464 2001-03-01 Pavel Roskin <proski@gnu.org>
3466 * extfs/uzip.in (mczipfs_list): Allow filenames with colons.
3467 Reported by Christian Gennerat.
3469 2001-02-28 Pavel Machek <pavel@bug.ucw.cz>
3471 * vfs.c (mc_def_ungetlocalcopy): Cleanup of error handling.
3473 2001-02-27 Pavel Machek <pavel@bug.ucw.cz>
3475 * vfs.c (mc_ungetlocalcopy): Do not ignore errors. (Courtesy of
3476 "K. Leif D. Van Horn" <leif@kaivo.com>)
3478 2001-02-23 Pavel Roskin <proski@gnu.org>
3480 * extfs/lslR (mclslRfs_list): Don't use gawk-specific features.
3481 Don't hardcode gawk. Don't rely on the date format occupying a
3482 fixed number of fields.
3484 * extfs/uzip.in (mczipfs_list): Don't check zipinfo support on
3485 the real file - check usage info instead. Use more robust checks
3486 for valid lines. Suppress stderr from unzip. Workaround for jar
3487 files - fix mode for files ending with slash.
3489 2001-02-20 Pavel Roskin <proski@gnu.org>
3491 * vfs.h: Include sys/timeb.h if it's present. Include time.h and
3492 sys/time.h as recommended by Autoconf documentation.
3493 * cpio.c: Remove all time-related includes - they are in vfs.h.
3494 * extfs.c: Likewise.
3495 * ftpfs.c: Likewise.
3497 * mcserv.c: Likewise.
3499 * util-alone.c: Likewise.
3500 * vfs.c: Likewise. Include xdirentry.h.
3502 * extfs.c: Include xdirentry.h. Undefine ERRNOR before
3505 2001-02-19 Pavel Roskin <proski@gnu.org>
3507 * shared_tar_ext.c (__find_entry): Make sure that the parent is a
3508 directory even if the child is not.
3510 * extfs/mailfs (parse_date): Correctly handle two-digit years
3511 between 1970 and 1999.
3513 2001-02-14 Pavel Roskin <proski@gnu.org>
3515 * vfs.c (vfs_parse_filedate): Don't reset got_year to 0 while
3516 checking for ctime() format.
3519 2001-02-11 Pavel Roskin <proski@gnu.org>
3521 * extfs/mailfs (parse_date): Workaround for Y2K bugs. Support
3522 for dates found in AOLMail(SM) messages. Accept single-digit
3523 hours and missing seconds. Provide a fallback if cannot parse
3525 (process_header): Typo fix. Use \s instead of space in regular
3528 2001-02-10 Pavel Roskin <proski@gnu.org>
3530 * extfs/uzip.in: Preserve permissions of FAT and NTFS archives,
3531 including the directory bit. This fixes crashes on some FAT
3534 2001-02-09 Pavel Roskin <proski@gnu.org>
3536 * samba/configure.in: Remove more useless tests.
3537 * samba/tests/crypttest.c: Remove.
3538 * samba/tests/fcntl_lock.c: Likewise.
3539 * samba/tests/shared_mmap.c: Likewise.
3540 * samba/tests/sysv_ipc.c: Likewise.
3541 * samba/samba-files: Likewise.
3542 * samba/smbadduser: Likewise.
3543 * Make-mc.in: Adjust for the above.
3544 * samba/include/includes.h: Removed definitions related to the
3547 * Make-mc.in: Eliminate ubiqx.
3548 * samba/Makefile.in: Likewise. Remove some unused variables.
3549 * samba/include/includes.h: Eliminate dependency on ubiqx.
3550 * samba/include/nameserv.h: Likewise.
3551 * samba/include/proto.h: Remove prototypes from nmbd/*.
3552 * samba/ubiqx/*: Remove.
3554 * samba/configure.in: More useless stuff removed.
3555 * samba/Makefile.in: Likewise.
3556 * Make-mc.in: Remove samba/smbwrapper directory.
3557 * samba/smbwrapper/smbw.h: Remove.
3558 * samba/include/includes.h: Don't include smbw.h.
3560 * samba/configure.in: Don't check for things that are unused.
3561 Remove support for building shared libraries.
3562 * samba/Makefile.in: Remove support for shared libraries and
3565 * samba/configure.in: Don't check for any 64-bit functions and
3566 syscall() - they are not needed.
3568 * samba/configure.in: Remove the test for
3569 HAVE_EXPLICIT_LARGEFILE_SUPPORT, since it's incompatible with
3570 the rest of the source that doesn't use explicit 64-bit calls.
3572 * Make-mc.in: Always check for samba/Makefile before descending
3573 there. Don't ever ignore errors from "cd". Use $(MAKE), not
3574 make. Formatting changes.
3576 2001-02-08 Pavel Roskin <proski@gnu.org>
3578 * Make-mc.in: Undo previous fix. Don't run "make clean" in
3579 samba/ if samba/Makefile is missing.
3581 * Make-mc.in: Don't run "make clean" in samba/ as samba/Makefile
3582 may be missing. Clean using the rule from samba/Makefile.in.
3584 * cpio.c: Eliminate C++ comments.
3587 * Make-mc.in: Use mkinstalldirs to create $(distdir)/extfs,
3588 since CVS Automake already creates that directory.
3590 * Make-mc.in: Don't add _LARGEFILE64_SOURCE to CFLAGS without
3591 testing - it breaks on HP-UX 10.20.
3593 2001-02-07 Pavel Roskin <proski@gnu.org>
3595 * Make-mc.in: Don't distribute samba/tests/trapdoor.c and
3596 samba/tests/ftruncroot.c.
3598 * samba/configure.in: Remove tests for setresuid and setresgid.
3599 * samba/include/includes.h: Remove declarations of setresuid and
3602 * samba/configure.in: Don't check for root permissions. Don't
3603 call tests/trapdoor.c and tests/ftruncroot.c.
3604 * samba/tests/trapdoor.c: Remove.
3605 * samba/tests/ftruncroot.c: Likewise.
3606 * samba/tests/summary.c: Don't warn about trapdoor uid systems.
3608 * Make-mc.in: Don't link container.o into libvfs-mc.a - it's
3611 * samba/aclocal.m4: Fix underquoting.
3612 * samba/configure.in: Fix underquoting. Don't use loff_t as the
3613 second argument to AC_CHECK_TYPE - it's not a builtin type.
3615 * samba/configure.in: Remove checks for statvfs and friends -
3616 they are irrelevant to the client code.
3617 * samba/tests/summary.c: Likewise.
3619 2000-12-15 Andrew V. Samoilov <sav@bcs.zp.ua>
3621 * extfs/urar.in (list): better solution to prevent duplication
3623 2000-12-14 Andrew V. Samoilov <sav@bcs.zp.ua>
3625 * extfs/urar.in (LC_ALL): set to C to prevent localization,
3626 (mcrarfs_list): directories placed first to prevent duplication
3628 2000-10-31 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3630 * ftpfs.c (dir_load): From Roland Mainz
3631 <Roland.Mainz@informatik.med.uni-giessen.de>: add '.' and '..'
3634 * *.c: From Roland: it is not possible to g_free() something
3635 allocated by strdup(), because g_malloc might be different for
3636 malloc. Therefore wrapped strdup into g_strdup() wrapper.
3638 2000-10-22 Andrew V. Samoilov <sav@bcs.zp.ua>
3640 * samba/libsmb/nterr.c (nt_errs): constified
3642 * samba/libsmb/smberr.c (dos_msgs, server_msgs, hard_msgs,
3645 (smb_errstr): err constified to avoid warnings
3647 2000-10-16 Andrew V. Samoilov <sav@bcs.zp.ua>
3649 * ftpfs.c (open_data_connection): don't generate //filename, some
3650 ftp servers can't store it;
3652 (command): g_strdup_vprintf() and g_strconcat() replaced
3653 by g_strdup_vprintf(), g_realloc() and strcpy()
3654 to reduce memory usage when trailing "\r\n" added;
3656 (ftpfs_set_debug, ftp_data): ftp_data.logfile assigned with logfile
3657 value to log servers replies
3659 2000-10-09 Andrew V. Samoilov <sav@bcs.zp.ua>
3661 * sfs.c (redirect): temporary file unlinked on error;
3663 (sfs_init): warnings are localized
3665 2000-10-05 Pavel Roskin <proski@gnu.org>
3667 * extfs/rpm: If rpm indicates an error create a virtual file
3668 ERROR and put error messages there.
3670 2000-09-25 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3672 * extfs/mcunarj.diff: better version from Christian Gennerat
3673 <christian.gennerat@vz.cit.alcatel.fr>
3675 2000-09-21 Pavel Roskin <proski@gnu.org>
3677 * extfs/uzoo.in: Suppress output from grep. Don't use '~',
3678 use $HOME instead - it's more portable.
3680 2000-08-24 Pavel Roskin <proski@gnu.org>
3682 * extfs/Makefile.am: all scripts should be executable
3684 2000-09-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3686 * extfs/patchfs (LC_TIME): patch by Martin Bialasinski:
3687 override locale for dates
3689 2000-09-14 Pavel Machek <pavel@bug.ucw.cz>
3691 * vfs.c, extfs/{a,extfs.ini}: Improved /#a filesystem
3693 2000-09-14 Pavel Roskin <proski@gnu.org>
3695 * Make-mc.in: direntry.c was listed twice in VFSSRCS
3697 * Make-mc.in: removed commands to build standalone libvfs -
3698 they are now in Makefile.am. Create links in the build
3699 directory - source directory may be read-only. Removed hack
3700 with mcservx - it's no longer needed.
3702 * ftpfs.h: include "xdirentry.h" instead of "vfs/xdirentry.h"
3704 2000-09-05 Pavel Roskin <proski@gnu.org>
3706 * Make-mc.in: don't ignore errors in the distdir target
3708 2000-08-24 Pavel Roskin <proski@gnu.org>
3710 * extfs/Makefile.am: new file
3711 * Make-mc.in: remove stuff pertinent to the extfs directory
3713 2000-08-24 Pavel Roskin <proski@gnu.org>
3715 * Make-mc.in: don't ignore error installing mcserv.
3716 Create directories before installing into them.
3718 2000-08-18 Pavel Roskin <proski@gnu.org>
3720 * Make-mc.in: adjusted lists of distributed files.
3721 Makefile rebuilding fixed.
3723 2000-08-08 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3725 * ftpfs.c (dir_load): taken it out, it needs to correctly provide
3726 parent, this way it breaks things.
3728 * uzip.in: change by Dmitry Borodaenko <d.borodaenko@belcaf.com> to
3729 display zip files in fat and ntf formats
3731 2000-08-04 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3733 * ftpfs.c (dir_load): add . and .. to ftpfs listings, courtesy of
3734 Roland.Mainz@informatik.med.uni-giessen.de
3736 * util-alone.c (message_1s1d): added missing function
3738 2000-08-03 Pavel Roskin <proski@gnu.org>
3740 * undelfs.h: Removed
3742 2000-08-02 Pavel Roskin <proski@gnu.org>
3744 * Make-mc.in: Filters apt, audio, deba, debd and dpkg are now
3745 distributed. Added some comments to prevent future errors.
3746 "make distclean" now cleans generated filters.
3748 * samba/configure.in: Fixed sloppy output. The fix also sent to
3751 * samba/include/stamp-h.in: Added to CVS.
3753 2000-05-23 Andrew V. Samoilov <sav@bcs.zp.ua>
3755 * vfs.c (mc_[un]def_getlocalcopy): better error handling on writing
3757 2000-05-18 Andrew V. Samoilov <sav@bcs.zp.ua>
3759 * ftpfs.c: (my_get_host_and_username) space between macro name and
3762 2000-05-15 Andrew V. Samoilov <sav@bcs.zp.ua>
3764 * tar.c (read_header): memory leaking for empty symlink's names fixed
3766 * utilvfs.c (vfs_split_url): *host is not assigned if host is null
3768 * ftpfs.c (login_server): new features of vfs_split_url () used,
3769 my_get_host_and_username became macro
3771 * vfs.c (mc_opendir, mc_chdir): unneeded calls to concat_dir_and_file
3772 removed (vfs_canon removes trailing '/')
3774 * sfs.c (vfmake, redirect): allocated memory released on errors
3776 2000-05-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3778 * direntry.c (vfs_s_new_inode): Do not leave st_nlink uninitialized.
3780 2000-05-08 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
3782 vfs/extfs/uha.in: add HSC type archives
3784 2000-05-01 Pavel Machek <pavel@bug.ucw.cz>
3786 * direntry.c (vfs_s_inode_from_path): fix for stating / directory
3789 * vfs.c: == 0 is right test of eof.
3791 2000-04-28 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3793 * direntry.c (vfs_s_internal_stat): added ugly special case for /
3794 of archive to always exist. It seems I'm hiding some underlying
3797 2000-04-26 Andrew V. Samoilov <sav@bcs.zp.ua>
3799 * direntry.c (vfs_s_find_entry_tree): segfault fixed when root is NULL
3801 (vfs_s_new_inode, vfs_s_new_entry): g_new replaced by g_new0
3803 * ftpfs.c (dir_load): ent->name is free()d for "." and ".."
3805 (ftpfs_directory_timeout): default value changed to 900
3807 (netrc_next): "const char * const keywords" go to rodata and is shared
3809 2000-04-16 Pavel Machek <pavel@bug.ucw.cz>
3811 * vfs.c (vfs_type): FL_NO_LOCALHASH for prevention of obscure
3812 deadlocks with podfuk
3814 * direntry.c: fix behavior when stating / directory of ftp
3817 2000-04-15 Timur Bakeyev <mc@bat.ru>
3819 * ftpfs.c (netrc_next): "const char * keywords" is pretty nice.
3821 * ftpfs.c (dir_load): At last, found place, that broke handling
3822 directories with spaces in name. Problem was in prepending "/"
3823 to "." for current directory. Which was, obviously, wrong. Hacked
3824 to make just "LIST -la ." instead.
3826 2000-04-12 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3828 * extfs/lslR.in: Patch by tnovak@ipex.cz: allow spaces in filenames
3830 2000-04-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3832 * extfs/audio: Added a way to browse audio CDs conveniently
3834 * undelfs.c: use NULLs instead of 0s when you assign to pointers!
3836 2000-04-05 Andrew V. Samoilov <sav@bcs.zp.ua>
3838 * utilfs.c (vfs_split_url): Don't assign *pass if pass is NULL
3839 * fish.c (archive_open, archive_same): memory allocated by
3840 vfs_split_url() must be released after use, don't strdup()
3841 values allocated by vfs_split_url() and NULL passed to
3842 vfs_split_url() when password value is unused
3843 * ftpfs.c (archive_open, archive_same): ditto plus same for
3844 ftpfs_get_proxy_host_and_port()
3846 2000-04-06 Timur Bakeyev <mc@bat.ru>
3848 * ftpfs.c (netrc_next): Turned strange "const char * const
3849 keywords" into more alike "const char const * keywords". Still,
3850 think, it's too strict.
3852 * smbfs.c: Add #define BOOL_DEFINED before inclusion of samba
3853 headers. Libncurses(or slang?) defines BOOL and that can cause
3854 problems. (In fact, I can't find references to that const, but
3855 sure, I had a reason to do that:)
3857 * util-alone.h: Declare load_anon_passwd() to avoid warnings.
3859 2000-03-31 Andrew V. Samoilov <sav@bcs.zp.ua>
3861 * vfs.c (mc_def_getlocalcopy): free() replaced by g_free() to prevent
3862 crashes with mad, thanks to Timur I. Bakeyev <timur@bat.ru>
3863 * fish.c (linear_start): Name wasn't freed after usage.
3864 * cpio.c (cpio_ungetlocalcopy): Return type changed to int,
3865 function return 0 now.
3866 * direntry.c (vfs_s_close, vfs_s_resolve_symlink): Memory allocated
3867 by vfs_s_fullpath() is freed after use.
3868 * ftpfs.c (linear_start): Ditto.
3870 2000-04-03 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3872 * ftpfs.c (send_ftp_command): return from vfs_s_get_path_mangle is
3873 not strdupped(), so it must not be g_free'd.
3875 2000-03-29 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3877 * fish.c: Patch by <rebel@atrey.karlin.mff.cuni.cz>: make
3878 fish work better with files files like "this is sentence"
3880 2000-03-28 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3882 * extfs/*rpm: Patch by <rebel@atrey.karlin.mff.cuni.cz>: set
3883 locale to C so that rpm does not confuse us
3885 2000-03-06 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3887 Patch by Andrew V. Samoilov <sav@bcs.zp.ua>
3889 * vfs.c (vfs_parse_ls_lga): Don't hard code st_ino and st_dev to
3890 0's, these variables must be assigned in vfs_s_new_inode() or
3891 extfs layer, so ftpfs subdirectories now can be copied.
3893 2000-02-25 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3895 Patch by Andrew V. Samoilov <sav@bcs.zp.ua>
3897 * vfs.[ch] (vfs_canon, mc_open, vfs_file_is_local,
3898 mc_(un)?getlocalcopy): added const qualifier
3899 (mc_def_getlocalcopy): tempnam() returns malloc()ed buffer,
3900 so, free() it, not g_free();
3901 (vfs_canon): prepend filename by cwd when tilde '~' cannot be expanded;
3903 2000-02-23 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3905 * cpio.c: cpio.h is missing, so don't try to include it. (It is
3906 not needed, anyway. Strange.)
3908 * Makefile.in (NONETFILES): cpio added to compilation list
3910 2000-02-23 Norbert Warmuth <nwarmuth@privat.circular.de>
3912 * ftpfs.c: Definition of PORT changed in the middle of ftpfs.c
3913 with unexpected side effects (only when HSC_PROXY was
3914 defined). Introduce HSC_PROXY_PORT and FTP_COMMAND_PORT and use
3917 (dir_load): Do not hard code the directory cache timeout to 10
3918 seconds. Instead use the setting from Options/Virtual VFS ...
3920 * fish.c (file_store): Honor changed semantics for return value
3921 (on error -1 is expected).
3923 * ftpfs.c (file_store): ditto
3925 2000-02-22 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3927 * cpio.c: added. Thanx to Jan Hudec <bulb@centrum.cz>, who wrote
3928 it using code from tarfs.
3930 2000-02-21 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3932 * extfs/uzip.in (nam): y2k fixes (workarounds) by
3933 christian.gennerat@vz.cit.alcatel.fr
3935 2000-02-04 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3937 * ftpfs.c (ftpfs_unlink, *): prepend / so that it actually works
3939 2000-02-03 Andrew V. Samoilov <sav@bcs.zp.ua>
3941 * xdirentry.h: added prototype for vfs_s_retrieve_file
3943 2000-01-31 Andrew V. Samoilov <sav@bcs.zp.ua>
3945 * direntry.c: (vfs_s_resolve_symlink, vfs_s_readlink) fixed segfaults
3946 for broken symlinks like 2001 -> The Space Oddysea.
3948 2000-01-24 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3950 * ftpfs.c: vfs semantics has some problems with ~s. What will
3951 happen if we just don't go to home directory of user? (We used to
3952 have /#ftp:hobit/~/ mean home directory of anonymous at
3953 hobit. Thats pretty broken.)
3955 * direntry.c (vfs_s_find_entry_linear): don't sleep after showing
3958 * ftpfs.c: cosmetic fixes by Andrew V. Samoilov
3960 2000-01-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3962 * ftpfs.c: cosmetic fixes + killed ugly infinite loop, patch
3963 from Andrew V. Samoilov
3965 2000-01-13 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3967 * extfs.c (extfs_chdir): removed unneeded statement, plus applied
3968 cosmetics fixes from Andrew V. Samoilov
3970 2000-01-02 Martin Bialasinski <martin@internet-treff.uni-koeln.de>
3972 * extfs/deb.in: Change to the deb vfs. tar has changed, and
3973 depending on the version, it saves files as "./filename" or
3976 * From debian: added deba, debd, dpkg, apt script file systems.
3978 1999-12-28 Andrew V. Samoilov <sav@bcs.zp.ua>
3980 * vfs.c (vfs_parse_filedate): don't decode last columns as year
3983 1999-12-21 Pavel Roskin <pavel_roskin@geocities.com>
3985 * vfs/vfs.h: use #warning only for gcc. Not all compilers
3988 1999-12-15 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3990 * Merged changes by Andrew V. Samoilov <sav@bcs.zp.ua>. They are
3991 mostly internationalization + fixing stupid bugs of mine
3993 1999-12-08 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
3995 * ftpfs.c: basically replaced ftpfs with new one. Unlike the
3996 previous one, this uses new direntry.c layer, so shared_ftp_fish.c
3999 This is new code, so beware.
4001 1999-11-11 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
4003 * shared_ftp_fish.c (s_ungetlocalcopy): need to supply some return
4004 value, too. This code is going to be killed, the sooner the better.
4006 * *.c (mc_[un]getlocalcopy): we really need some return value,
4007 because we can have errors
4009 * fish.c: don't use directory expiration, it does not work,
4010 use retrieve_file from direntry.c
4013 1999-02-17 Pavel Machek <pavel@bug.ucw.cz>
4015 * direntry.c (vfs_s_getlocalcopy): fixed segfault, getlocalcopy's
4016 name has to be malloced.
4018 1999-10-07 Miguel de Icaza <miguel@gnu.org>
4020 * ftpfs.c (linear_read): Applied patch from Alexander V. Lukyanov
4021 <lav@yars.free.net> that makes the code compliant to RFC959
4023 1999-08-30 Miguel de Icaza <miguel@gnu.org>
4025 * ftpfs.c (insert_dots): Use g_new here.
4027 * shared_ftpfs_fish.c: Style fixes and small fixes
4029 1999-09-22 Bjorn Eriksson <mdeans@algonet.se>
4031 * extfs/uzip.in: Better handling of zip-archives that contain files
4032 which contain spaces.
4034 1999-09-19 Norbert Warmuth <nwarmuth@privat.circular.de>
4036 * ftpfs.c (ftpfs_set_debug), vfs.h: added const qualifier.
4038 * mcserv.c: removed definition of mad_strconcat which is also
4041 1999-09-17 Federico Mena Quintero <federico@redhat.com>
4043 * smbfs.c: #define NO_CONFIG_H before including the samba
4044 includes; this way it will not re=define HAVE_LIBREADLINE. This
4045 situation sucks. Should we change the names of the widget.h
4046 history_*() functions?
4048 1999-09-14 Norbert Warmuth <nwarmuth@privat.circular.de>
4050 * smbfs.c (various places): Store filenames in memory with the unix
4051 character set and convert it back to the dos character set when
4052 filenames are passed back to the samba server. If samba is configured
4053 correctly this will fix the problems with filenames which contain
4054 national characters.
4056 (bucket_set_authinfo): Set domain, username and password which will
4057 be used to log on and authenticate against the samba server and remember
4058 this information on a host/share basis. If set use PASSWD to get the
4059 password. If already authenticated against the host and share use this
4060 information. If already authenticated against host and IPC$ use this
4061 information. If neither of the former is true ask the user how to
4064 (authinfo_get_authinfo_from_user): New function. Query the user for
4065 domain, username and password to use for authentication.
4067 (authinfo_free): New function. Free memory in authentication structure.
4069 (authinfo_free_all): New function. Free the list used to remember
4070 authentication information.
4072 (authinfo_compare_host_and_share, authinfo_compare_host): New functions.
4073 Helper functions used to search the authentication list.
4075 (authinfo_add): New function. Add one authentication entry to the
4078 (authinfo_remove): New function. Remove one entry from the authlist.
4080 (free_bucket): Free memory associated with one bucket.
4082 (smbfs_get_free_bucket): Initialize the complete connection array
4083 with 0. Free the memory allocated for a bucket and initialize the
4084 bucket before reusing it.
4086 (smbfs_open_link): use new functions to get authentication information
4088 (get_stat_info, smbfs_stat): remove unused variables.
4090 1999-08-31 Federico Mena Quintero <federico@redhat.com>
4092 * extfs/uzip.in: Handle filenames with spaces better. Thanks to
4093 Spyridon Papadimitriou <Spyridon_Papadimitriou@gs91.sp.cs.cmu.edu>
4096 1999-08-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
4098 * ftpfs.c (translate_path): Remove static buffer from here.
4099 Return a strdupped string now.
4100 (send_ftp_command): Release translate_path result here.
4101 (open_data_connection): Release translate_path result here.
4102 (ftpfs_chdir_internal): Release it here too.
4104 1999-08-30 Norbert Warmuth <nwarmuth@privat.circular.de>
4106 * shared_ftp_fish.c (get_line): Fixed off by one error ('\0' might
4107 have been written one slot past the supplied character array).
4109 * ftpfs.c (resolve_symlink_without_ls_options): Don't dump core on
4110 strange symlinks (ls -la doesn't reveal where the symlink points to
4111 and ls -lLa doesn't resolve the symlink either)
4113 Added protection against recursive symbolic links.
4115 1999-08-19 Norbert Warmuth <nwarmuth@privat.circular.de>
4117 * smbfs.c: added missing include file
4119 (browsing_helper): use g_strdup instead of g_new + pstrcpy
4120 (Btw. this is an example why the handholding of smblib gives a
4121 false security feeling. pstrcpy limits the number of characters
4122 copied and is used with a buffer which is smaller than the hard
4123 coded limit in pstrcpy)
4124 (loaddir_helper): ditto
4125 (server_browsing_helper): ditto
4127 (get_remote_stat): fixed memory leaks
4128 (smbfs_loaddir): ditto
4129 (get_stat_info): ditto
4132 (convert_path): rewritten, now it's much cleaner what it does.
4133 This rewrite was necessary because gcc -O2 choked on glibc 2.1
4134 systems. In that combination strncat is a macro which expands to
4135 strlen and strcat and in vfs/samba/include/includes.h the latter is
4136 defined to __ERROR__XX__NEVER_USE_STRCAT___;.
4138 1999-08-18 Norbert Warmuth <nwarmuth@privat.circular.de>
4140 * direntry.c (vfs_s_getlocalcopy): There's an additional strdup
4141 needed. In rare cases a pointer was freed twice. Pavel Machek
4142 pointed this out a while ago but obviously it hasn't been fixed yet.
4144 * sfs.c (vfmake): Quote characters with a special meaning to the
4145 shell in filenames/paths (Fix Bug #1931, VFS will not work if
4146 your full path has the space character in it.).
4148 1999-08-17 Kjartan Maraas <kmaraas@online.no>
4152 1999-08-15 David Martin <dmartina@usa.net>
4154 * vfs.c (vfs_print_stats): Translate vfs stats
4156 * shared_ftp_fish.c (s_read, s_lseek): Mark strings for translation
4158 * fish.c: Translate messages
4160 1999-08-06 Norbert Warmuth <nwarmuth@privat.circular.de>
4162 * tar.c (read_header): Don't segfault when a symlink points to the
4165 1999-08-01 Norbert Warmuth <nwarmuth@privat.circular.de>
4167 * vfs.c: Don't close a function definition with "};". SunCC from
4168 2.5.1 chokes on the extra semicolon
4170 (mc_munmap): Don't dereference function pointer when checking for
4171 NULL (this check is supposed to prevent a segfault instead of
4172 causing one). This haven't got noticed up to now because there's no
4173 file system with mmap but without munmap.
4175 Tue Jul 6 11:22:40 1999 Timur I. Bakeyev <mc@bat.ru>
4177 * samba/include/config.h: Removed. Should be generated.
4179 Tue Jul 6 11:18:45 1999 Timur I. Bakeyev <mc@bat.ru>
4181 * Make-mc.in (XCPPFLAGS): Add necessary paths to allow compile sambafs
4182 when builddir != srcdir. Removed some junk after not coherent patching.
4184 1999-07-04 Federico Mena Quintero <federico@nuclecu.unam.mx>
4186 * Make-mc.in (distcopy): Added a bunch of new lists of files for
4187 the directories in vfs/samba. Use them in this rule, because
4188 plain wildcards will not work right.
4189 (SAMBA_DIST_TOPLEVEL): Added configure to the list of distributed
4191 Added smbfs.[ch] to the list of sources.
4193 1999-07-02 Tuomas J. Lukka <lukka@iki.fi>
4195 * Make-mc.in: $SAMBAFILES -> @SAMBAFILES@ in the rule
4196 as well as the dependencies.
4198 1999-06-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
4200 * smbfs.c (get_remote_stat): Change debug level.
4202 (get_stat_info): 2 line fixes from Wayne to check the
4203 cache properly. WOOOOHOOOO! Works like a charm.
4205 1999-06-14 Wayne Roberts <wroberts1@cx983858-b.orng1.occa.home.com>
4207 * vfs/smbfs.c: New file. Implements the Samba-based file system.
4209 * vfs/vfs.h: Declare vfs_smbfs_ops, vfs_file_is_smb.
4211 * vfs/vfs.c (vfs_file_is_smb): implemented.
4212 (vfs_init) register smbfs.
4214 * vfs/samba: Incorporate SAMBA source code required for smbfs
4216 Fri Jun 18 11:49:05 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
4218 * ftpfs.c (resolve_symlink_with_ls_options): Some ftp servers don't
4219 make a difference between "LIST -la" and "LIST -lLa". If we find such
4220 a server don't use -lLa when resolving symbolic links.
4222 1999-05-12 Christian GENNERAT <christian.gennerat@alcatel.fr>
4224 * urar.in, uzip.in: patches to use in #urar and #uzip the new features
4225 added in mc-4.5.31 (unlink, mkdir, rmdir)
4227 1999-04-30 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
4229 * extfs/deb.in (mcdebfs_run): Quote string properly, fix suggested
4230 by debian maintainer
4232 1999-04-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
4234 * extfs/uzip.in (nam): Handle new unzips.
4236 Fri Apr 23 21:02:32 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
4238 * ftpfs.c (retrieve_dir): If we don't get any valid directory entry
4239 (i.e. not even "." and "..") check whether the directory is empty
4240 or non-existent (instead of failing with "ftpfs: failed").
4242 1999-04-23 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
4244 * vfs.c (vfs_parse_filemode): fix for solaris which uses 'l'
4246 (vfs_parse_ls_lga): do not silently ignore parsing errors.
4248 Wed Apr 21 21:59:50 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
4250 * extfs.c (extfs_open): tempnam returns a malloced string, no need
4253 (various places): use free instead of g_free to free string returned
4256 1999-04-21 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
4258 * urar.in, uzip.in: rolled in patches from "christian.gennerat"
4259 <christian.gennerat@vz.cit.alcatel.fr> for better handling of
4260 spaces and copyin-feature-addon.
4262 1999-04-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
4264 * extfs.c (get_path_from_entry): Fix a crash here.
4266 1999-04-12 Andrew T. Veliath <andrewtv@usa.net>
4268 * extfs.c (extfs_unlink):
4271 (remove_entry): New functions.
4272 (vfs_extfs_ops): Add unlink, mkdir and rmdir functions to table.
4273 Add descriptions for these to the extfs README.
4275 1999-04-12 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
4277 * Make-mc.in (DISTVFS): try to distribute files needed for
4278 building libvfs.so alone
4279 (EXTFS_MISC): include uarj and unarj.diff in distribution
4281 1999-04-08 Owen Taylor <otaylor@redhat.com>
4283 * extfs/deb.in extfs/ulha.in extfs/ucpio.in: Fix
4284 up "TMP RACE" comments so they are at least secure,
4285 if not terribly robust.
4287 1999-03-31 Serge Winitzki <swinitzk@hotmail.com>
4289 * added copy_in capability to mtools filesystem
4291 1999-03-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
4293 * vfs.c (vfs_add_current_stamps): Only do stamping of the panels
4296 * mcserv.c: #include <sys/wait.h>
4297 (get_client): Put `#ifdef __EMX__' around an otherwise-unused
4300 * utilvfs.c (vfs_split_url): Fix NULL <-> 0 confusion when
4301 comparing characters.
4303 * ftpfs.c (retrieve_dir): Removed unused variable dot_dot_found.
4305 * extfs.c (extfs_init): Assign `key' to c, not `&key'.
4307 Sun Mar 28 23:50:47 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
4309 * vfs.h (vfs_translate_url): Fixed the macro which is used when
4310 compiling without vfs.
4312 1999-03-22 David Martin <dmartina@mailexcite.com>
4314 * ftpfs.c: Internationalize the messages that are displayed as
4317 1999-03-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
4319 * extfs.c (extfs_init): Fix the code here: If the key is empty or
4320 only contains a new line, C would be pointing into an invalid location.
4322 Mon Mar 22 02:56:23 1999 Timur I. Bakeyev <mc@bat.ru>
4324 * Makefile-mc.in: s/$(libdir)\/extfs/$(extfsdir)/
4326 Mon Mar 22 02:00:16 1999 Valery Kornienkov <vlk@st.simbirsk.su>
4328 * extfs/uha.in: Add support for ha archives.
4330 1999-03-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
4332 * vfs.c (vfs_parse_ls_lga): Handle stupid servers that send n_link
4335 1999-03-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
4337 * vfs.h: Make it compile in AIX. Boy do those guys pollute the
4340 1999-03-09 Shooby Ban <bansz@szif.hu>
4342 * extfs/extfs.ini: Corrected rpms -> rpms:
4343 by Balazs Nagy <julian7@kva.hu>
4345 1999-03-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
4347 * vfs.c (parse_ls_lga): kill the messages on each error.
4349 Tue Feb 16 12:11:04 1999 Paul Sheer <psheer@obsidian.co.za>
4351 * mcserv.c, mcfs.c: mcserv and mcfs exchange st_dev instead
4352 of st_rdev. This makes stats on device files useless. Fixing
4353 this does not break anything, but adds the ability to copy
4354 device files properly. Ideally, both st_dev and st_rdev should
4355 be returned for those programs that use the vfs to properly
4356 recreate hardlinks. Whose idea was it to only return one of
4359 1999-02-12 Sergey Korshunoff <seyko@p5.f434.n5020.z2.fidonet.org>
4361 * unlha.in: Fix the problem of having incorrect pathnames when
4362 pulling out files from the LHA file.
4364 Sat Feb 6 23:44:28 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
4366 * tar.c (read_header): Treat hardlinks correctly.
4368 Mon Feb 1 19:32:12 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
4370 * ftpfs.c (insert_dots): renamed from insert_dot. We have to
4371 insert ".." as well or directories from ftp servers which don't
4372 list "." and ".." are displayed with an additional "/".
4374 Mon Feb 1 02:55:07 1999 Timur I. Bakeyev <mc@bat.ru>
4376 * tcputil.c: One more my bug with '\0' -> NULL. Oops..
4378 Mon Feb 1 01:45:08 1999 Timur I. Bakeyev <mc@bat.ru>
4380 * mcserv.c: If setuid() is available, use it, even, streuid() also
4381 present. (BTW, bsdi uses it's own auth system..)
4383 Sun Jan 31 20:51:17 1999 Alexander Savelyev <fano@vcom.kiev.ua>
4385 * mcserv.c (do_auth): mcserv never auth properly on bsdi.
4386 (mc/vfs/mcserv.c do_auth() on bsdi we must use setuid() not
4389 * tcputil.c: use correct signal handler (void func(int)) on BSDI
4391 Sun Jan 31 20:41:00 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
4393 * mcserv.c (do_link): Removed duplicate invocation of link. Thanks
4394 to Grzegorz Makarewicz <mak@mikroplan.com.pl> for spotting this.
4396 Sun Jan 31 20:04:13 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
4398 * vfs.c (vfs_strip_suffix_from_filename): Whoever replaces every
4399 occurrence of 0 with NULL should stop this stupidity. And replacing
4400 '\0' with NULL is plan wrong!!. Reverted this replacement.
4402 * ftpfs.c (load_no_proxy_list): ditto
4404 Sun Jan 31 19:57:24 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
4406 * ftpfs.c (insert_dot): New function. Insert a "." into the linked
4407 list. Stat'ing the root directory of a ftpfs fails if the dot is
4410 (retrieve_dir): insert "." into the linked list if the ftp server
4413 Sun Jan 31 19:50:24 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
4415 * The following changes make ftpfs work with a remote AmiTCP
4416 server are the result of somehow longish EMail debugging session. I
4417 don't know any public server of this kind but I was told the
4418 combination Unix/Amiga boxes are often used in intranets.
4420 * ftpfs.c (translate_path): New function. Translate a Unix path,
4421 i.e. MC's internal path representation (e.g. /somedir/somefile) to
4422 a path valid for the remote server. Every path transfered to the
4423 remote server has to be mangled by this function right prior to
4424 sending it. Currently only Amiga ftp servers are handled in a
4427 * ftpfs.c (various places): use translate_path
4429 * ftpfs.c (login_server): Assume we have to mangle pathnames if
4430 the greetings string from the server contains the word Amiga. If
4431 this assumption is wrong I have to find another way to turn on
4434 * ftpfs.c (ftpfs_get_current_directory): Prepend a leading slash
4435 if it is missing. MC needs it as separator between hostname and
4436 path in its internal url representation.
4438 1999-01-26 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
4440 * vfs.c (vfs_parse_ls_lga): attempt to correctly work against
4443 Wed Jan 27 03:09:48 1999 Timur I. Bakeyev <mc@bat.ru>
4445 * All around the source: Changed copy_strings() to g_strconcat(). Modi-
4446 fy last parameter in concat_dir_and_file() to "" - to prevent stack from
4449 1999-01-25 Federico Mena Quintero <federico@nuclecu.unam.mx>
4451 * Makefile.am (libvfs_la_SOURCES): Added utilvfs.h.
4452 * Make-mc.in (VFSHDRS): Likewise.
4454 Sat Jan 23 18:40:19 1999 Timur I. Bakeyev <mc@bat.ru>
4456 * utilvfs.c (append_path_sep): Removed - concat_dir_and_file(dir, NULL);
4457 gives the same effect.
4459 1999-01-21 Federico Mena Quintero <federico@nuclecu.unam.mx>
4461 * utilvfs.c (append_path_sep): Fixed, it was broken for paths
4462 which already have a / at the end.
4464 Fri Jan 22 01:41:25 1999 Timur I. Bakeyev <mc@bat.ru>
4466 * undelfs.c: Found one more unconverted realloc() call.
4468 1999-01-20 Miguel de Icaza <miguel@nuclecu.unam.mx>
4470 * undelfs.c (undelfs_loaddel): Fix Timur's changes.
4472 Thu Jan 21 00:58:12 1999 Timur I. Bakeyev <mc@bat.ru>
4474 * Actually commit all changes :>
4476 Tue Jan 19 05:15:49 1999 Timur I. Bakeyev <mc@bat.ru>
4478 * Converted all occurrences of DIR_SEP_CHAR and "/" to PATH_SEP and
4479 PATH_SEP_STR. Additional cleanups of the memory code.
4481 * utilvfs.h: Added several definitions for common sizes for buffers.
4482 It seems, most of us experience problems, when inventing size for new
4483 buffer. This is much better and portable way to eliminate the problem.
4485 1999-01-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
4487 * vfs.h: The correct thing to use is PATH_SEP and PATH_SEP_STR
4489 Sun Jan 17 16:19:48 1999 Timur I. Bakeyev <mc@bat.ru>
4491 * Converted memory management to Glib. Now we use g_new()/g_malloc()/
4492 g_strdup()/g_free() routings. Also, copy_strings() replaced by
4493 g_strconcat(), and sprintf() by g_snprintf().
4495 * utilvfs.h: New header file. Introduced as a stock header, which keeps
4496 all includes in a right order, to avoid order-dependence mistakes.
4498 Sun Jan 17 15:49:39 1999 Paul Sheer <psheer@obsidian.co.za>
4500 * direntry.c: vfs_s_find_entry_tree changed to follow
4501 symlinks properly. Symlinks are now always followed
4502 except for the last part of the filename.
4503 vfs_s_resolve_symlink() now converts absolute paths to
4504 ../../file notation so that they can be easily resolved
4507 * tar.c: . and .. are missing from directory entries,
4508 making it impossible to resolve links - fixed.
4510 1999-01-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
4512 * vfs.c (mc_get_current_wd): Do not die. Truncate the pathname.
4514 1999-01-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
4516 * sfs.c (redirect): tempnam returns a malloc()ed buffer.
4518 Sat Jan 9 19:15:00 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
4520 * vfs.c (vfs_timeout_handler): Guard from recursive invocation.
4522 Sat Jan 9 19:13:28 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
4524 * sfs.c (sfs_free): Fixed wrong linked list handling (head was
4525 lost after the first iteration).
4527 (sfs_getid): ditto, return value was wrong.
4529 Sat Jan 9 22:49:02 1999 Timur I. Bakeyev <mc@bat.ru>
4531 * vfs.c (parse_ls_lga): Rewrite function to make it more straight.
4532 Also, fixed some bugs in parsing (and add new ones:), which disallowed
4533 proper parsing of device major and minor numbers. Some other fixes. Add
4534 several new is_*() functions to make code readable.
4536 1999-01-08 Ilya Zakharevich <ilya@math.ohio-state.edu>
4538 * vfs.h (vfs_strip_suffix_from_filename): Typo fix. Include
4539 defines for non-vfs compilation.
4541 Fri Jan 8 20:03:36 1999 Andrej Borsenkow <borsenkow.msk@sni.de>
4543 * vfs.c (vfs_parse_filedate): I forgot to set got_year in one place
4544 (where YY-MM-DD is parsed).
4546 Thu Jan 7 06:24:25 1999 Andrej Borsenkow <borsenkow.msk@sni.de>
4548 * vfs.c (vfs_parse_filedate): If the date is less than 6 months
4549 in the past, it is shown without year. In this case MC assumed
4550 the current year which is wrong from Jan to Jun.
4552 Thu Jan 7 03:47:35 1999 Timur I. Bakeyev <mc@bat.ru>
4554 * vfs.c (parse_ls_lga): Fixed Y2K typo pointed by Alex.
4556 Thu Dec 31 08:47:15 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4558 * sfs.c (sfs_nothingisopen): Assume for now it's always save to free
4559 this filesystem and delete temporary files. This needs further
4562 * tar.c: deleted unused empty struct tar_super.
4564 Thu Dec 31 08:40:44 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4566 * direntry.c: Split fd_usage into fd_usage and ino_usage. fd_usage
4567 was used for external and internal reference count. This was wrong
4568 because we can free resources taken up by the vfs as soon as the
4569 external reference count (now fd_usage) is zero. The internal
4570 reference count (ino_usage) mustn't matter because the vfs has to
4571 clean up itself in the correct order.
4573 Fri Dec 25 21:48:51 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4575 * direntry.c (vfs_s_new_inode): Moved initialization of st_ino
4576 and st_dev from vfs_s_default_stat.
4578 (vfs_s_default_stat): initialize st_ino and st_dev to zero
4580 * tar.c (tar_open_archive): Make a new MEDATA->rdev for every
4583 Mon Dec 21 22:55:48 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4585 * tar.c: Deleted global variable tar_gzipped_memlimit.
4587 Wed Dec 16 06:36:42 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4589 * vfs.c (vfs_strip_suffix_from_filename): New function which strips
4590 known vfs suffixes from a filename and returns a malloced string
4591 which has to be freed. Possible improvement: strip vfs suffix from
4592 last path component.
4594 * extfs/*: added "umask 077" to every script.
4596 Tue Dec 15 16:41:50 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4598 * extfs.c (extfs_open), sfs.c (redirect): create files 0600 and
4599 safely w.r.t. symlinks in /tmp
4601 Mon Nov 30 23:49:11 1998 Pavel Machek <pavel@bug.ucw.cz>
4603 * direntry.c: Hopefully got want_stale_data right...
4605 Wed Nov 25 23:54:23 1998 Pavel Machek <pavel@bug.ucw.cz>
4607 * vfs.h: use ENETUNREACH if EREMOTEIO error code is not defined,
4608 this is necessary for Solaris and probably others
4610 Mon Nov 23 17:39:33 1998 Pavel Machek <pavel@bug.ucw.cz>
4612 * vfs.c (vfs_type_from_op): removing unnecessary code
4614 Wed Dec 9 12:24:52 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4616 * extfs/rpm: commit fix for files with spaces in name by Marc
4617 Merlin (marcsoft@merlins.org)
4619 Mon Dec 7 11:04:57 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4621 * fish.c: default to normal ssh
4622 (open_archive_int): debugging hack killed
4624 1998-12-02 Raja R Harinath <harinath@cs.umn.edu>
4626 * Makefile.am (EXTRA_DIST): Distribute files that the
4627 BUILT_SOURCES depend on.
4628 (mad.c, mad.h): Don't use GNU make specific features in rule.
4629 (libvfs_la_SOURCES): Update from Make-mc.in.
4631 1998-12-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
4633 * direntry.c (vfs_s_insert_super): This routine does not return
4636 1998-12-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
4638 * fish.c (FISH_OP): changed snprintf to g_snprintf, as glib is
4641 * xdirentry.h (LINK_NO_FOLLOW):
4642 * tar.c (read_header):
4643 * direntry.c (vfs_s_resolve_symlink):
4644 (vfs_s_inode_from_path):
4645 (vfs_s_open): renamed NO_FOLLOW and FOLLOW to LINK_NO_FOLLOW and
4646 LINK_FOLLOW resp. to avoid problems on solaris, where FOLLOW and
4647 NO_FOLLOW are defined in an enum.
4649 * vfs.h (ELAST): define it to 300, if not already defined, thats a
4650 bad hack, but what can we do....
4652 Wed Dec 2 14:06:49 KST 1998 Sung-Hyun Nam <namsh@lgic.co.kr>
4654 * direntry.c (vfs_s_new_super): Added the missing return value.
4656 Sun Nov 29 02:54:54 1998 Timur I. Bakeyev <mc@bat.ru>
4658 * vfs.h: (Temporary?) fix to the compiling error: Some of the error
4659 codes, defined here are Linux specific and unknown to other systems.
4660 Changed to #ifdef's with assigning new codes by means ELAST+offset.
4662 Tue 24 Nov 12:43:20 1998 Peter Kleiweg <kleiweg@let.rug.nl>
4664 * vfs.c (vfs_parse_ls_lga): ignore trailing + in permission string
4665 which indicate a file with extended attributes (ACL)
4667 Mon Nov 23 21:19:43 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4669 * ftpfs.c (resolve_symlink_with_ls_options): that's resolve_symlinks
4670 we used up to release 4.1.35. It uses LIST -lLa to get symlink stats.
4672 (resolve_symlink_without_ls_options): that's resolve_symlinks
4673 we used in release 4.1.36 and 4.5.[01]. It gets symlink stats from the
4674 directory cache fetching directories if necessary. We got some
4675 complaints about slower ftpfs in the above releases. Now this method
4676 is no longer the default method to resolve symbolic links. It is still
4677 needed for ftp servers which don't understand the LIST -lLa command.
4679 (resolve_symlink): Dispatch between the two methods to
4682 Sat Nov 21 21:38:08 1998 Pavel Machek <pavel@bug.ucw.cz>
4684 * vfs.c (vfs_parse_ls_lga): corrected stupid bug in parse_ls_lga,
4685 thanks to Pavel Roskin for reporting
4687 * direntry.c (vfs_s_lseek): -1 is invalid filehandle, not 0
4689 * utilvfs.c (vfs_split_url): initialize variables so that we do
4692 Sat Nov 7 20:19:14 1998 Pavel Machek <pavel@bug.ucw.cz>
4694 * vfs.c: Converted g_return_if_fail into vfs_dies(), removed them
4695 where unnecessary. I do not see why passing NULL to vfs_add_stamp
4696 should be invalid -> removed check.
4698 Mon Nov 2 23:09:55 1998 Pavel Machek <pavel@bug.ucw.cz>
4700 * direntry.c, xdirentry.h: should be now prepared to handle
4701 ftp-like filesystems. This is rather BIG change, although it does
4702 not look so. I hope I do not break too many things.
4704 Mon Nov 16 16:39:39 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4706 * vfs.c (vfs_parse_ls_lga): Report unrecognized lines.
4708 Thu Nov 12 11:28:48 1998 Pavel Roskin <pavel_roskin@geocities.com>
4710 * extfs/rpm: Fix to display files belonging to users with
4711 excessively long usernames
4713 1998-10-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
4715 * fish.c (command): Replace vnsprintf with g_strdup_vprintf. This
4716 is both safe and more correct, as there is no limit on the
4719 * ftpfs.c (command): Same as above.
4721 * util-alone.c (print_vfs_message): Same as above.
4723 Wed Oct 28 17:06:57 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4725 * ftpfs.c: report which directory you are listing, fix behavior
4726 with servers that don't like LIST //. (Nowell) Fix behavior even
4729 * direntry.c (vfs_s_automake): insert newly generated entry
4731 * direntry.c (vfs_s_free_entry): Debugging printf() killed.
4733 Mon Oct 26 00:38:30 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4735 * Make-mc.in: added xdirentry.h to VFSHDRS
4737 Fri Oct 23 12:29:48 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4739 * tar.c (tar_open_archive): do not double-free memory if you can
4740 not open archive, better error handling
4742 * Makefile.in: add direntry.o to list of NONETFILES so we actually compile
4744 * sfs.c, tar.c: remove debugging messages (which really should not
4745 escape from my tree)
4747 Thu Oct 22 22:24:44 1998 Pavel Machek <pavel@bug.ucw.cz>
4749 * README: added. If you are using emacs or hacking libvfs, please
4752 * direntry.{c,h}: new library created, so that same entry/inode
4753 code does not have to be copied in every handler.
4755 * tar.c: converted to use direntry.c library, which means BIG changes.
4757 * ftpfs.c: small updates to make code look nicer
4759 Mon Oct 19 19:40:58 1998 Pavel Machek <pavel@bug.ucw.cz>
4761 * vfs.h (&more): killed ERRNOR() from vfs.h and put it into files
4762 which actually need it.
4764 * extfs.c: extfs_current_dir killed - it was unnecessary.
4766 * mcfs.c (mcfs_get_path): It is possible for path not to begin
4767 with /#mc:, for example if user does /etc/#mc:. (It is not
4768 correct, of course). Return error, but do not vfs_die().
4770 Sun Oct 18 23:48:00 1998 Pavel Machek <pavel@bug.ucw.cz>
4772 * lib/mc.ext.in: cpio support fixed. It was broken since time we
4773 started to do #ext syntax.
4775 Sat Oct 17 20:43:20 1998 Pavel Machek <pavel@bug.ucw.cz>
4777 * vfs.c (mc_open): die() if open is unsupported. If filesystem does
4778 not support open, it is probably stupid typo, so we want bug to be
4781 Thu Oct 22 20:30:28 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4783 * ftpfs.c (resolve_symlink, retrieve_dir): Don't timeout and
4784 free dcache while resolving symlinks (i.e. don't free some
4785 pointers which are in use by resolve_symlink).
4787 Mon Oct 19 11:44:47 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4789 * mcfs.c: prefix is mc:, not mcfs:. So now mcfs actually works.
4791 Thu Oct 15 17:17:17 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4793 * shared_ftp_fish.c (s_write): stupid bug fixed
4795 Tue Oct 13 00:22:52 1998 Pavel Machek <pavel@bug.ucw.cz>
4797 * extfs/*: marked obvious security holes with FIXME: TMP RACE
4799 * vfs.c (mc_def_getlocalcopy): creat->open(..,O_EXCL), to prevent
4800 symlink attack, fixed memory leak along the path
4802 1998-10-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
4804 * vfs.c, vfs.h: Indentation changes, ugly macros removed. I am
4805 going to split this file in the future.
4807 Tue Oct 13 18:43:18 1998 Pavel Machek <pavel@lomikel.karlin.mff.cuni.cz>
4809 * vfs.c (vfs_add_noncurrent_stamps): Fixed typo reported by Andrej
4810 Borsenkow <borsenkow.msk@sni.de>
4812 Tue Oct 13 12:42:10 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4814 * vfs.h (vfs_struct): renamed to avoid namespace conflict
4816 Mon Oct 12 22:42:30 1998 Pavel Machek <pavel@bug.ucw.cz>
4818 * sfs.c: reuse mmap from local.c
4820 * ftpfs.c, fish.c, shared_ftp_fish.c: horrible reget hack removed,
4821 and replaced with open(,O_LINEAR); lseek() combination
4823 Sun Oct 11 01:44:37 1998 Pavel Machek <pavel@bug.ucw.cz>
4825 * mcfs.c (open_tcp_link): Moved: it used to be in utilvfs.c, but
4826 as it deals with portmapper, it is probably useful for mcfs
4828 * vfs.h (MCERR_*): these are no longer needed
4830 * vfs.c (vfs_translate_url): translating of url's moved to vfs
4833 * all around: trying to reduce namespace pollution. All special
4834 functions (like extfs_run) should be done using mc_setctl()
4835 interface. At the end, all non-static functions in vfs layer
4836 should begin with vfs_ and should be declared in vfs.h (however
4837 that goal is far away).
4839 * all over the code: replace X_vfs_ops to vfs_X_ops
4841 Mon Oct 5 20:11:01 1998 Pavel Machek <pavel@bug.ucw.cz>
4843 * vfs.c: added stat to avoid hiding files by naming them
4844 #ftp:localhost and similar. Vfs will not treat files as local if
4845 they already exists, regardless of name.
4847 Tue Oct 6 15:34:22 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4849 * vfs.h: disable BROKEN_PATHS by default. See if you can live
4850 without cd .. from ftp tree putting you to last directory.
4852 Sat Oct 3 14:28:57 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4854 * ftpfs.c (resolve_symlink): fixed cut'n paste error in my last
4855 change, i.e. make it compile)
4857 Sat Oct 3 01:03:37 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4859 * ftpfs.c (resolve_symlink): minor speed enhancement
4861 Thu Oct 1 18:39:52 1998 Pavel Roskin <pavel_roskin@geocities.com>
4863 * vfs.h: vfs_force_expire() was incorrectly #define'd
4865 Tue Sep 29 17:23:03 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
4867 * extfs.c, sfs.c: added few static's to prevent people from doing
4870 Mon Sep 28 21:43:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4872 * vfs.h (struct vfs): renamed errno to verrno because glibc2
4873 defines errno as macro (#define errno (*__errno_location ()))
4875 Mon Sep 28 21:34:03 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
4877 * Makefile.in: search config.status in builddir and not in srcdir/..,
4878 i. e. make it compile for builddir != srcdir
4880 Sun Sep 27 16:16:52 1998 Pavel Machek <pavel@bug.ucw.cz>
4882 * COPYING.LGPL, all over the code: code is now under Library
4883 General Public License (instead of GPL), so non-free applications
4886 Wed Sep 23 22:37:40 1998 Pavel Machek <pavel@bug.ucw.cz>
4888 * all over the code: added (vfs *) as first argument for functions
4889 that have no other way to know what fs they belong to. This will
4890 be used by object-like tricks, which will allow us to do real
4891 code-sharing: I do not like #including of .c files.
4893 1998-09-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
4895 * shared_ftp_fish.c: Addaed prototypes for linear_start, linear_read,
4898 Wed Sep 23 15:09:55 1998 Tom Tromey <tromey@cygnus.com>
4900 * vfs.h (MIN, MAX): Only define if not already defined; glib.h
4903 Wed Sep 23 13:33:14 1998 Pavel Machek <pavel@ucw.cz>
4905 * ftpfs.c: Fixed segfault caused by uninitialized variable.
4907 Wed Sep 23 11:51:12 1998 Pavel Roskin <pavel_roskin@geocities.com)
4909 * ftpfs.c: Special characters were printed via print_vfs_message.
4910 This caused funny effects if "XTerm hintbar" was on.
4912 Mon Sep 21 11:40:30 1998 Pavel Machek <pavel@ucw.cz>
4914 * ftpfs.c, fish.c: added O_LINEAR mode to handle linear read of
4915 files in sane way. copy_file_file will make temporary files for a
4916 while (fix pending).
4918 * tar.c: fixed bzip/bzip2 compressed archives
4920 Wed Sep 18 12:51:51 1998 Pavel Machek <pavel@ucw.cz>
4922 * fish.c, vfs.c: created aliases /#ssh: and /#rsh:
4924 * vfs.h: created ERRNOR() macro which sets my_errno and returns,
4925 which makes vfs's _much_ more readable
4927 Fri Sep 18 10:37:28 1998 Pavel Roskin <pavel_roskin@geocities.com)
4929 * extfs.c: free() was called twice for the same place in memory
4932 Tue Sep 15 20:31:32 1998 Norbert Warmuth <k3190@fh-sw.de>
4934 * ftpfs.c (ftp_use_unix_list_options): New global variable/option.
4935 If true we try to use 'LIST -la <path>'. When it fails we use the
4936 two commands 'CWD <path>' and 'LIST' instead.
4938 (resolve_symlink): rewritten. Don't get a second directory listing
4939 with `LIST -lLa'. Instead use the cache to get the file stat of
4940 symbolic links. If the directory the symlink points to isn't
4941 already in the cache the directory listing will be fetched and
4942 stored in the directory cache (without resolving symlinks
4944 The new method to resolve symlinks is faster if symlinks
4945 the same directory or the directory the symlink points to
4946 is already in the cache.
4947 This function was small and nice until I discovered that it was
4948 broken for symlinks to symlinks. Now it looks ugly and perhaps I
4949 will revert it to use "LIST -lLa" again. With a fast connection it
4950 doesn't matter which method we use but with a slow connection I
4951 wouldn't hesitate to burn more CPU cycles on the client side.
4953 (retrieve_dir): Added parameter to tell whether to resolve
4954 symlinks (don't resolve symlinks in directory listings retrieved
4955 while resolving symlinks).
4956 When we don't get a directory listing with 'LIST -la <path>' then
4957 try to get it with `CWD <path>; LIST'.
4959 Tue Sep 15 20:27:29 1998 Norbert Warmuth <k3190@fh-sw.de>
4961 * ftpfs.c (login_server): s/ftpfs_get_host/my_get_host/
4963 (retrieve_file_start2): Don't create target file O_EXCL, in
4964 copy_file_file we check existence of the target file and know
4965 that we want to truncate it (this change was already done a
4966 while back but it was reverted with the vfs-split).
4968 Tue Sep 15 20:15:42 1998 Norbert Warmuth <k3190@fh-sw.de>
4970 * ftpfs.h (struct connection): added boolean which indicates that
4971 the ftp server doesn't understand Unix ls options
4973 * ftpfs.h (struct dir): added enum to store symlink status of the
4974 in memory directory cache (directory has no symbolic links;
4975 symbolic links but not yet resolved; symbolic links which are resolved)
4977 Tue Sep 15 20:02:08 1998 Norbert Warmuth <k3190@fh-sw.de>
4979 * shared_ftp_fish.c, fish.c: updated references to retrieve_dir to
4980 honor the additional boolean parameter
4982 Tue Sep 15 00:42:15 1998 Timur Bakeyev <mc@bat.ru>
4984 * vfs.h: add vfs_split() declaration, to make sfs.c happy.
4986 * Make-mc.in, Makefile.am: Updated to include fish.c
4988 1998-09-14 Norbert Warmuth <k3190@fh-sw.de>
4990 * sfs.c (sfs_free): assignment operator was used to check for equality
4992 Fri Sep 11 22:36:38 1998 Pavel Machek <pavel@ucw.cz>
4994 * sfs.c: memory leak fixed
4996 * vfs.c: split parse_ls_lga into more functions
4998 * fish.c added, now you can access files over rsh/ssh connection
5000 * shared*.c: reworked a bit not to include so many of ugly X_'s
5002 Wed Sep 2 13:59:47 1998 Pavel Machek <pavel@ucw.cz>
5004 * ftpfs.c: cleanup of code, few static's added
5006 * extfs/uarj: added, still, you need patches to unarj to make this
5009 * util-alone.c: now includes code from libvfs.c, so we can kill
5010 libvfs.c (which is good thing as it was non-standard in Makefiles)
5012 Sun Aug 30 13:19:49 1998 Pavel Machek <pavel@ucw.cz>
5014 * undelfs.c: fixed, it has been broken for too long
5016 * vfs.c, ../src/cmd.c: necessary minor fixes to make undelfs work
5018 * vfs.c: made more fields in *_vfs_ops optional, cleanup of errno
5019 handling in case of NULL in *_vfs_ops.
5021 * extfs.c, ftpfs.c, tar.c: made use of above change
5023 * vfs.c: cleanup of macros generating mc_*()
5025 * libvfs.c: adding variable mc_home
5027 Thu Aug 27 19:45:31 1998 Pavel Roskin <pavel_roskin@geocities.com>
5029 * extfs.c: mc_extfsdir was not defined in extfs_open()
5031 * Make-mc.in: sfs.c was not compiled, linked and copied out
5032 extfs/sfs.ini was not installed and copied out
5034 * Makefile.am: sfs.c was not linked to standalone VFS
5036 Tue Aug 25 17:54:17 1998 Pavel Machek <pavel@ucw.cz>
5038 * Added vfs_uid for use by libvfs.so users (rpc.nfsd)
5040 * Added single file filesystem (sfs)
5042 * Added vfs_flags so library users can disable selected
5045 * Minor shuffling of functions so garbage collection works for
5048 1998-08-20 Raja R Harinath <harinath@cs.umn.edu>
5050 * Makefile.am (mad.c, mad.h): Create symlinks to counterparts in
5053 Wed Aug 12 19:04:48 1998 Pavel Roskin <pavel_roskin@geocities.com>
5055 * extfs/patchfs: %k replaced with more portable %H in the format
5058 * extfs/extfs.ini: Added patchfs and mailfs. Some comments
5061 Tue Aug 11 15:25:52 1998 Pavel Roskin <pavel_roskin@geocities.com>
5063 * extfs/rpm: Fix for buggy "cut" on HP-UX 10.20 which ignores
5064 lines without end-of-line.
5066 Mon Jun 01 03:30:07 1998 Alexander Savelyev <fano@vcom.kiev.ua>
5068 * tar.c (read_header): Support for linkflag on BSDI tar (pax), it
5071 1998-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
5073 * ftpfs.c (ftpfs_open_socket): Potential security break fix.
5075 1998-08-06 Raja R Harinath <harinath@cs.umn.edu>
5077 * Makefile.am (BUILT_SOURCES): Make it `make dist' friendly.
5078 Don't try building this, yet.
5080 1998-07-31 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
5082 * Make-mc.in (install.extfs): Split install of $(EXTFS_CONST)
5083 and $(EXTFS_OUT) because the first must be installed from
5084 $(srcdir) and the second from $(builddir).
5086 Fri Jul 24 00:22:30 1998 Tom Tromey <tromey@cygnus.com>
5088 * Make-mc.in (DISTVFS): Changed Makefile.in to Make-mc.in.
5090 * Makefile.am: New file.
5091 * Make-mc.in: Renamed from Makefile.in.
5092 * Makefile.in: Removed.
5094 Mon Jun 29 15:12:55 1998 Pavel Roskin <pavel_roskin@geocities.com>
5096 * Makefile.in: Rewritten stuff concerning extfs files.
5098 Mon Jun 22 22:30:00 1998 Manish Vachharajani <mvachhar@vger.rutgers.edu>
5100 * Makefile.in: Remove arfs, since it doesn't seem to exist
5102 Wed Jun 17 Pavel Machek <pavel@ucw.cz>
5103 * Rename helper scripts (extfs/{rar|lha|...}.in), so their names
5104 are more logical (and so that things actually work, because new
5105 names are currently in extfs.ini).
5107 Wed Jun 17 Pavel Machek <pavel@ucw.cz>
5108 * Modified code to use tempnam() instead of tmpnam(), fixed
5109 tempnam() to use NULL instead of 0.
5111 Wed Jun 3 Pavel Machek <pavel@ucw.cz>
5113 * libvfs.c: adding libvfs.c which should contain things specific
5114 to stand-alone libvfs.so. (This file was missing from previous
5117 Mon Jun 1 16:00:19 1998 Norbert Warmuth <k3190@fh-sw.de>
5119 * ftpfs.c (ftpfs_fill_names): use right character to separate
5122 Mon Jun 1 14:19:20 1998 Bakeyev I. Timur <mc@bat.ru>
5123 * vfs.c (parse_ls_lga): allow a bit wider range of listings.
5125 * vfs.c (is_time, is_year): new functions
5127 Mon Jun 1 12:47:50 1998 Norbert Warmuth <k3190@fh-sw.de>
5129 * ftpfs.c (ftpfs_forget): Use the new ftpfs prefix.
5131 Thu May 28 16:42:31 1998 Pavel Machek <pavel@ucw.cz>
5133 * extfs.c, shared.c, tar.c: I changed semantics in my previous
5134 patch - _get_path() now modifies strings passed to it. I thought
5135 that I were careful enough not to introduce bugs. You guessed it -
5136 I was not. [Many tar_ and extfs_ functions modify strings passed
5137 to them, but as they are only called from vfs layer, it does not
5139 So I renamed function to alert everyone that semantics changed.
5141 Fixed bugs in timestamping (and segfaults) when you entered tar
5142 inside zip file or similar.
5144 * vfs.c (mc_open): Die if the filesystem doesn't support open
5146 ??? Pavel Machek <pavel@ucw.cz>
5148 * shared.c: Shared parts of extfs.c and tar.c are now in shared.c
5150 * util-alone.*: VFS should be able to compile stand-alone into
5151 libvfs.so usable by anyone. This is first step.
5153 * vfs.c & others: syntax change. We no longer use
5154 tar:/path.tar/file. Now, syntax is /path.tar#utar/file, which has
5155 better defined meaning. Similar changes are done to all other
5156 protocols. This change touched really _many_ places of code.
5159 1998-05-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
5161 * vfs.c (MC_DIROP): Macro now returns the proper value.
5163 1998-05-18 Tamasi Gyorgy (gt_cosy@usa.net)
5165 * Makefile.in ('install' target): 'mcserv' not installed, if
5166 net-code is not enabled by 'configure'.
5168 Thu May 14 02:05:52 1998 Norbert Warmuth <k3190@fh-sw.de>
5170 * Makefile.in (LIBS): add @LINTL@
5172 Sun May 10 14:51:03 1998 Norbert Warmuth <k3190@fh-sw.de>
5174 * ftpfs.c (__ftpfs_chdir): CWD command wasn't sent at all. This
5175 optimization is wrong because for directories containing spaces we
5176 have to "CWD <pathname>" and "LIST -la" instead of
5177 "LIST -la <pathname>".
5178 I implemented a different optimization. Now ftpfs_chdir only stores
5179 the new working directory and sets a flag. __ftpfs_chdir is called
5180 when we really want to change the directory on the ftp server.
5182 (resolve_symlink): Log the directory listing to the logfile.
5184 * ftpfs.h (struct ftpfs_connection): Added a (per connection)
5187 Mon May 4 10:27:49 1998 Norbert Warmuth <k3190@fh-sw.de>
5189 * Makefile.in: Links to mad.c and mad.h were created wrong when
5190 srcdir != builddir and directory depth to srcdir and builddir were
5191 different (e.g. srcdir=/src/mc and builddir=/src/compile/mc)
5193 * ftpfs.c (retrieve_file_start2): Don't create target file O_EXCL,
5194 in copy_file_file we check existence of the target file and know
5195 that we want to truncate it.
5197 1998-04-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
5199 * tar.c (read_header): Mark regular files with S_IFREG.
5201 Tue Apr 28 06:06:03 1998 Norbert Warmuth <k3190@fh-sw.de>
5203 * extfs.c (extfs_open, extfs_close): Changed my_system(1,...) to
5204 my_system(EXECUTE_AS_SHELL,...), this fixes the broken copyin and
5207 1998-04-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
5209 * ftpfs.c (retrieve_file_start2): Open file exclusively.
5210 (retrieve_file): likewise.
5212 1998-03-31 Philippe De Muyter <phdm@macqel.be>
5214 * vfs.h: compilation fix for m68k-motorola-sysv
5216 Wed Mar 25 19:01:48 1998 Norbert Warmuth <k3190@fh-sw.de>
5218 * extfs/hp48: Added a usage summary
5220 Mon Mar 23 00:42:21 1998 Christofer Edvardsen <ce@earthling.net>
5222 * Makefile.in, extfs/extfs.ini, extfs/hp48: New external
5223 filesystem to view and copy files to/from the HP48.
5225 Wed Feb 11 14:09:02 1998 Oleg <oleg@pobox.com>
5227 * extfs.c: Add support for writable external file systems.
5228 Required for the httpfs.
5230 Fri Jan 23 07:27:37 1998 Peter Daum <gator@cs.tu-berlin.de>
5232 * extfs.c (open_extfs_archive): Pass the quoted argument to the
5235 * mailfs: new file system.
5237 1997-12-21 Yuri Kuzmenko <Yuri.Kuzmenko@f169.n463.z2.fidonet.org>
5239 * tar.c: fix the bug which core dumps when trying to view tar file
5240 with many files (over 60000).
5242 Mon Jul 21 18:47:37 1997 Miguel de Icaza <miguel@athena.nuclecu.unam.mx>
5244 * vfs.c (mc_opendir): Do not make conversions between int/void *
5245 to make the code compile and work on the Alpha correctly.
5246 Allocate a pointer to an int and use that instead.
5248 Thu Jul 3 19:08:43 1997 Michele Marziani <marziani@axpfe1.fe.infn.it>
5250 * extfs/rpm: Small fix for older RPM files.
5252 Mon Jun 9 19:00:30 1997 Norbert Warmuth <k3190@fh-sw.de>
5254 * vfs/vfs.c (vfs_canon): Fix for the 'cd a:/somedir/..' problem
5256 * vfs/vfs.c (vfs_add_non_current_stamps): when leaving a mtools fs
5257 free the extfs buffers immediately instead of waiting for the vfs-
5260 Thu May 29 14:50:41 1997 Miguel de Icaza <miguel@athena.nuclecu.unam.mx>
5262 * vfs.c (vfs_canon): the "local:" case was consuming one extra
5263 character. This fixes the bug reported by Andrej. Also, handle
5264 the non-canonical case of arguments to local:
5266 Tue May 27 20:38:28 1997 Miguel de Icaza <miguel@athena.nuclecu.unam.mx>
5268 * mcserv.c (get_client): The parent now waits for the first forked
5269 process, getting rid of the zombies.
5271 * utilvfs.c (open_tcp_link): If we can not contact the remote
5272 portmapper, set the protocol version to 1.
5274 Fri May 16 16:42:18 1997 Tomasz K³oczko, <kloczek@rudy.mif.pg.gda.pl>
5276 * mc.spec: New spec file, this packages mc, mcserv and tkmc.
5278 * lib/mcserv.init, lib/mc.sh, lib/mcserv.pamd: added
5280 * vfs/ext/rpm: instead using sed and rpm -qpi use rpm queries,
5281 more info currently displayed (ChangeLog, OS, URL, packager).
5283 Tue May 13 18:14:49 1997 Wojtek Pilorz <wpilorz@bdk.lublin.pl>
5285 * vfs/Makefile.in (INSTALL_PROGRAM): Use -m flag for install to
5286 force vfs scripts to be executable on those systems that use
5289 * src/utilunix.c: Implement socketpair for SCO flavored systems.
5291 Mon Mar 17 12:03:50 1997 Norbert Warmuth <k3190@fh-sw.de>
5293 * configure.in (--with-hsc): fix.
5295 * vfs/ftpfs.c (ftpfs_get_proxy_host_and_port): Fixed wrong parameter
5296 passing (HSC_DEFAULT_PORT was passed as pointer to char instead of
5297 passing it as integer)
5299 Tue Feb 25 20:21:00 1997 Joseph M. Hinkle <jhinkle@rockisland.com>
5301 * extfs/lha: Updated the lha filesystem and included a command
5302 for running an executable from within an lha archive suggested
5303 by Zdenek Kabelac <kabi@informatics.muni.cz>
5305 * extfs/: Renamed cpio, deb, rar, rpm as *.in files and altered
5306 config.in to create these VFS's for cleaner compilation