1 2003-05-08 Pavel Roskin <proski@gnu.org>
3 * fish.c (file_store): Use block size 1. It's slower, but much
4 safer. GNU dd is not persistent enough when reading data.
6 * extfs/rpm: If rpm doesn't support --info as in Red Hat 9,
7 ignore it and don't show HEADER in the listing.
9 2003-04-29 Michael Shigorin <mike@osdn.org.ua>
11 * extfs/iso9660.in: Determine presence of Rock Ridge and Joliet
12 extensions by running "isoinfo -R". Use current charset for
15 2003-04-29 Pavel Roskin <proski@gnu.org>
17 * extfs/iso9660.in: New filesystem for ISO-9660 images.
18 From Michael Shigorin <mike@altlinux.org>
19 * extfs/extfs.ini: Add iso9660.
20 * extfs/Makefile.am: Add extfs/iso9660.in.
22 2003-04-03 Andrew V. Samoilov <sav@bcs.zp.ua>
24 * smbfs.c (open_readwrite): New function to replace open_read()
25 and open_write(). Use cli_close() if cli_qfileinfo() or
28 (smbfs_open): Use open_readwrite(). Free remote_handle if
29 open_readwrite() fails.
31 2003-03-24 Adam Byrtek <alpha@debian.org>
33 * extfs/patchfs.in: Treat '\ No newline at end of file' line
34 as valid diff contents.
36 2003-03-14 Lorinczy Zsigmond <lzsiga@mail.ahiv.hu>
38 * ftpfs.c (login_server): Ask user for account if the server
41 2003-03-13 Andrew V. Samoilov <sav@bcs.zp.ua>
43 * samba/libsmb/clientgen.c (cli_session_setup): Convert
44 username from Unix to DOS codepage before sending.
46 2003-03-10 Adam Byrtek <alpha@debian.org>
48 * extfs/patchfs.in: Minor cleanups.
50 2003-03-10 Pavel Roskin <proski@gnu.org>
52 * extfs.c (extfs_cmd): Quote localname - it's based on the entry
53 name, so it can contain dangerous symbols like "&".
55 2003-02-26 Adam Byrtek <alpha@debian.org>
57 * extfs.c (extfs_open): Retain original filename as a suffix
58 for the temporary filename.
59 * vfs.c (mc_def_getlocalcopy): Likewise.
61 2003-02-24 Adam Byrtek <alpha@debian.org>
63 * extfs/patchfs.in: rm and proper copyin support, more
64 functions to make code more clear.
66 2003-02-19 Andrew V. Samoilov <sav@bcs.zp.ua>
68 * smbfs.c (smbfs_lseek): Backport from Samba 2.2.7 Suite.
69 (fake_server_stat): Warning fix for SunOS. Reformat function.
70 (fake_share_stat): Likewise.
71 (smbfs_mkdir): Likewise.
72 * direntry.c (vfs_s_dump): Likewise.
74 * vfs.c (is_localized_month): New function for locale's
75 abbreviated month name as any 3 bytes long string without digits
76 and control characters.
77 (vfs_parse_filedate): Fallback to is_localized_month() if
78 is_month() and is_dos_date() fail and set date to Jan 1 1970.
79 (vfs_parse_ls_lga): Use is_localized_month().
81 2003-01-24 Pavel Roskin <proski@gnu.org>
83 * smbfs.c (smbfs_nothingisopen): Warning fix for 64-bit systems.
84 (smbfs_free): Likewise.
86 2003-01-24 Andrew V. Samoilov <sav@bcs.zp.ua>
88 * extfs/urar.in: Search $PATH for unrar, fallback to rar.
90 2003-01-13 Adam Byrtek <alpha@debian.org>
92 * extfs/patchfs.in: context diff format support, regular
93 expressions precompiled, some minor fixes.
95 2002-12-29 Andrew V. Samoilov <sav@bcs.zp.ua>
97 * extfs/rpm: Use --nosignature only if rpm supports this.
99 2002-12-25 Pavel Roskin <proski@gnu.org>
101 * extfs.c (read_archive): Free archive if the "list" command
102 returned non-zero, return -1.
103 Initial implementation from Adam Byrtek <alpha@debian.org>
105 2002-12-24 Pavel Roskin <proski@gnu.org>
107 * direntry.c (vfs_s_open): If the filesystem is read-only,
108 disable file creation.
110 * vfs.c (mc_chdir): Don't change current directory until the
111 low-level chdir succeeds.
113 * vfs.c (vfs_name): Eliminate - it's unused and wrong.
115 2002-12-24 Andrew V. Samoilov <sav@bcs.zp.ua>
117 * extfs/mailfs.in: Quote filename when opening mailbox.
119 2002-12-24 Adam Byrtek <alpha@debian.org>
121 * extfs/apt.in, extfs/dpkg.in: Avoid stat on non-existing file.
123 2002-12-20 Andrew V. Samoilov <sav@bcs.zp.ua>
125 * smbfs.c: Resurrect and use myumask for generated permissions.
127 2002-12-19 Adam Byrtek <alpha@debian.org>
129 * extfs/patchfs.in: Fix patch size calculation. Use bytes to
130 count size in bytes, not characters (in multibyte encodings char
131 can be two or more bytes wide).
133 2002-12-19 Andrew V. Samoilov <sav@bcs.zp.ua>
135 * extfs/patchfs.in: Don't rely on tell() - it doesn't always
136 work on pipes. Determine patch size by adding together the line
139 2002-12-19 Adam Byrtek <alpha@debian.org>
141 * extfs/patchfs.in: Allow diffs with function names after "@@".
142 Don't consider an empty newline as the end of the diff.
144 2002-12-18 Andrew V. Samoilov <sav@bcs.zp.ua>
146 * extfs/patchfs.in (openread): Use quoted $archive when opening
148 (list): Set $archive to quoted $_[0].
150 2002-12-16 Pavel Roskin <proski@gnu.org>
152 * extfs/rpm: Don't check package signatures - it creates a lot
153 of noise on stderr if the signature is missing.
155 2002-12-14 Adam Byrtek <alpha@debian.org>
157 * extfs/mailfs.in: Fixed bug when opening empty mailbox. Added
158 proper message size (not number of lines, like before) counting.
160 2002-12-13 Pavel Roskin <proski@gnu.org>
162 * extfs/uha.in (mchafs_list): Don't parse the month, use
164 (mchafs_copyout): Use cat, not mv, because the files can be on
165 different filesystems. Use "q" and don't suppress stderr.
167 * extfs/ulha.in: Don't suppress stderr.
169 * extfs/uzoo.in: Always use "q" option to avoid processing junk.
170 Always create symlink, do it in a safer directory.
172 * extfs/uarj.in: New script working with open-source ARJ.
173 Contributed by Viatcheslav Odintsov.
174 * extfs/uarj: Remove.
175 * extfs/hp48: Rename to ...
176 * extfs/hp48.in: ... this. It needs awk substitution.
177 * extfs/Makefile.am: Adjust for the above.
179 * extfs/ulha.in: Strengthen quoting.
181 * extfs/uha.in: Strengthen quoting. Remove unnecessary space
182 after filename. Update URL. Use safer temporary directory.
184 * extfs/uarj: New list-only implementation that doesn't need
186 * extfs/unarj.diff: Remove.
187 * extfs/Makefile.am: Remove extfs/unarj.diff.
189 2002-12-13 Adam Byrtek <alpha@debian.org>
191 * extfs/patchfs.in: "copyin" method added (with compressed files
192 support). Files inside archive now have '.diff' extension.
193 Temporary file not needed any more. Proper handling of
194 "/dev/null" filenames, filename heuristics based on diff info
195 page. Set files owner and group as the archive.
196 * extfs/audio.in: CDDB_TIMEOUT variable added.
198 2002-12-12 Pavel Roskin <proski@gnu.org>
200 * vfs.c (is_dos_date): Allow 4-digit years.
201 (vfs_parse_filedate): Don't limit length of the year field for
202 DOS dates, subtract 1900 if necessary.
204 * extfs/apt.in: Fix Y2K bug.
205 * extfs/deba.in: Likewise.
206 * extfs/debd.in: Likewise.
207 * extfs/dpkg.in: Likewise.
208 Reported by Adam Byrtek <alpha@debian.org>
210 * extfs/patchfs.in: Print 4-digit year. If str2time is not
211 available, use current time, not 0.
213 2002-12-12 Andrew V. Samoilov <sav@bcs.zp.ua>
215 * extfs/urar.in: rar lists directories after files, so sort "list"
216 command output by names to prevent duplications.
218 2002-12-12 Pavel Roskin <proski@gnu.org>
220 * extfs/urar.in: Strengthen quoting. Don't use full path to rar
221 and unrar. Don't redirect stderr to /dev/null.
223 * extfs/uar.in: Simplify "list" command, don't use current year.
224 Use more careful quoting.
226 2002-12-12 Adam Byrtek <alpha@debian.org>
228 * extfs/apt.in: Add non-interactive remove using dpkg.
230 2002-12-11 Adam Byrtek <alpha@debian.org>
232 * extfs/apt.in: Add 1 to the month number. Perl localtime()
233 uses range 0..11 while extfs expects range 1..12.
234 * extfs/deba.in: Likewise.
235 * extfs/debd.in: Likewise.
236 * extfs/dpkg.in: Likewise.
238 * extfs/audio: Move ...
239 * extfs/audio.in: ... here. Add CDDB support.
240 * extfs/Makefile.am: Adjust for the above.
242 2002-12-11 Pavel Roskin <proski@gnu.org>
244 * extfs/mailfs: Try using UnixDate() from Date::Manip if it's
245 available. Warning fix.
247 2002-12-11 Andrew V. Samoilov <sav@bcs.zp.ua>
249 * extfs/patchfs: Use quotemeta() before giving filename to
252 * vfs.c (mc_stat): Make first argument const.
253 (mc_lstat): Likewise.
254 * vfs.h: Adjust declarations and remove some useless defines.
256 2002-12-10 Pavel Roskin <proski@gnu.org>
258 * extfs/a: Enable Perl warnings. Ignore entries without a date.
259 Warning fixes. Don't redirect stderr to /dev/null - it doesn't
262 2002-12-09 Adam Byrtek <alpha@debian.org>
264 * extfs/patchfs: Rewritten in Perl. File size is now displayed
267 2002-12-09 Pavel Roskin <proski@gnu.org>
269 * extfs/ftplist.in: Remove, it's obsoleted by the hotlist.
270 * extfs/ucpio.in: Remove, it's obsoleted by cpio.c.
271 * extfs/Makefile.am: Remove all references to them.
272 * extfs/extfs.ini: Likewise.
274 * extfs.c (__find_entry): When creating entries for regular
275 files, set initial permissions to S_IFREG | 0666. This fixes
276 problems with viewing and editing newly added files.
278 * extfs/bpp: Fix file sizes, contents of INSTALL and UPGRADE.
280 2002-12-08 Pavel Roskin <proski@gnu.org>
282 * extfs/uar.in: Fix "copyin" command.
284 2002-12-06 Pavel Roskin <proski@gnu.org>
286 * extfs.c (extfs_open): Don't run "copyout" if the file just has
287 been created or O_TRUNC is given in the flags.
288 Reported by Adam Byrtek 'alpha' <alpha@irc.pl>
290 * extfs/uar.in: Implement "copyin" and "rm" commands.
292 2002-12-06 Andrew V. Samoilov <sav@bcs.zp.ua>
294 * extfs.c: Don't include ../src/profile.h.
295 (extfs_open): Remove local_filename if copyout fails.
297 2002-12-05 Pavel Roskin <proski@gnu.org>
299 * extfs.h: Remove "extfsstat" from struct archive - it's unused
300 outside open_archive(). Adjust the dependencies.
301 * extfs.c: Make hstat local variable.
303 * sfs.c: Remove "uid" from struct cachedfile - it's unused now.
305 * vfs.h: Remove vfs_uid and vfs_gid. Fix all dependencies.
307 2002-12-05 Andrew V. Samoilov <sav@bcs.zp.ua>
309 * extfs.c (open_archive): Use open_error_pipe before popen() and
310 close_error_pipe() if popen() fails to handle stderr.
311 (read_archive): Use close_error_pipe() after pclose().
313 2002-12-05 Pavel Roskin <proski@gnu.org>
315 * ftpfs.c: Define INADDR_NONE if it's not already defined.
316 Needed for Solaris 9.
317 Reported by Roman Dorokhin <dorokhin@cybermail.net>
319 2002-12-03 Andrew V. Samoilov <sav@bcs.zp.ua>
321 * extfs.c (open_archive): Don't use open_error_pipe() and
322 close_error_pipe() - it gets stuck on output that exceeds 4
325 2002-12-01 Andrew V. Samoilov <sav@bcs.zp.ua>
327 * extfs.c (open_archive): Use open_error_pipe() and
328 close_error_pipe() to prevent stderr from extfs scripts pollute
330 (extfs_cmd): New function to run extfs scripts and handle stderr
332 (extfs_open): Use extfs_cmd().
333 (extfs_close): Likewise.
334 (extfs_unlink): Likewise.
335 (extfs_mkdir): Likewise.
336 (extfs_rmdir): Likewise.
338 2002-12-01 Pavel Roskin <proski@gnu.org>
340 * extfs/Makefile.am: Add uzip to EXTFS_OUT.
342 2002-11-16 Pavel Roskin <proski@gnu.org>
344 * mcserv.c (do_classic_auth): Restore support for shadow
345 passwords. Use crypt() instead of pw_encrypt() - the later is
346 missing on Slackware 8.0. Reported by
347 Christian Laubscher <christian.laubscher@tiscalinet.ch>
349 * Makefile.am: Consolidate mcserv libraries into MCSERVLIBS.
351 2002-11-15 Pavel Roskin <proski@gnu.org>
353 * mcserv.c: Include getopt.h, don't redefine optarg.
355 * names.c: Only leave actually used functions.
357 * ftpfs.c (ftpfs_open_socket): Use INADDR_NONE, not -1.
359 2002-11-12 Pavel Roskin <proski@gnu.org>
361 * fish.c (fish_which): Remove.
363 2002-11-12 Andrew V. Samoilov <sav@bcs.zp.ua>
365 * ftpfs.c (linear_abort): Close data socket dsock.
367 2002-11-11 Pavel Roskin <proski@gnu.org>
369 * vfs.h [USE_VFS] (mc_setctl): Specify argument types.
371 * cpio.c (cpiofs_data): Warning fix in initization.
372 * tar.c (tarfs_data): Likewise.
374 * vfs.c: Leave only necessary includes from ../src.
376 2002-11-10 Pavel Roskin <proski@gnu.org>
378 * vfs.c: Make the last argument to MC_OP non-empty in the
379 definition of MC_HANDLEOP. Needed for Mac OS X.
380 Reported by Wim Rijnders <wimrijnders@home.nl>
382 2002-11-08 Pavel Roskin <proski@gnu.org>
384 * extfs/a: Set environment to force date and time format
385 suitable for VFS. Fix support for long filenames with spaces.
387 2002-11-06 Andrew V. Samoilov <sav@bcs.zp.ua>
389 * smbfs.c (new_dir_entry): Initialize st_ino, so recursive
390 directory copying is possible now.
391 * vfs.c (mc_get_current_wd): Make sure returned string is null
394 2002-11-03 Pavel Roskin <proski@gnu.org>
396 * vfs.c: Remove unused code.
397 * vfs.h: Define vfs_uid and vfs_gid as 0, they never change.
399 2002-11-01 Andrew V. Samoilov <sav@bcs.zp.ua>
401 * fish.c: Use name_quote() to quote filenames.
402 (file_store): Close localname on error.
404 2002-10-25 Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
406 * ftpfs.c (linear_abort): Close data socket, ProFTPD 1.2.6
407 expects the client to close it.
409 2002-10-13 Pavel Roskin <proski@gnu.org>
411 * vfs.h: Remove tar_gzipped_memlimit.
412 From Christian Laubscher <christian.laubscher@tiscalinet.ch>
414 2002-10-11 Andrew V. Samoilov <sav@bcs.zp.ua>
416 * smbfs.c (fake_share_stat): Make sure share exists by
417 smbfs_get_path() and fill buf with realistic data
418 if current_share_info is NULL. Reformat function.
419 (smbfs_get_path): Add const qualifier to path.
421 2002-10-09 Andrew V. Samoilov <sav@bcs.zp.ua>
423 * smbfs.c: Allow username in URL (/#smb:[user@]machine) and
424 reformat changed functions.
425 (smbfs_get_host_and_username): Fix comment.
426 (smbfs_fill_names): Add username@ before hostname.
427 (smbfs_open_link): Use IPC$ if share is empty.
428 (smbfs_get_path): Pass remote_path to smbfs_open_link().
429 (smbfs_stat): Copy username@ to server_url if passed.
431 2002-10-07 Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
433 * ftpfs.c (linear_abort): Add a timeout after which a reconnect
434 is performed instead of further fetching of the remaining data.
436 2002-10-07 Pavel Roskin <proski@gnu.org>
438 * direntry.c (vfs_s_resolve_symlink): Use g_snprintf() instead
439 of non-portable snprintf().
440 Reported by Xu Qiang <Xu.Qiang@xssc.sgp.xerox.com>
442 2002-10-04 Pavel Roskin <proski@gnu.org>
444 * mcfs.c (mcfs_lseek): Explicity cast offset to int. This fixes
445 viewing and editing files on mcfs.
447 * tcputil.c: Split mcfs-specific part to
448 * mcfsutil.c: ... this.
449 * tcputil.h: Split mcfs-specific part to
450 * mcfsutil.h: ... this.
451 * Makefile.am: Add mcfsutil.c and mcfsutil.h.
452 * mcserv.c: Define own got_sigpipe, which is always 0, since
453 mcserv doesn't call tcp_init().
455 * Makefile.am: Don't link mcserv with glib. It's unreasonable
456 to require a glib port for embedded systems mcserv may run on.
457 * mcserv.c: Replace all glib calls with standard libc calls.
458 * tcputil.c (rpc_get): Likewise.
460 * mcserv.c (get_client): Don't try to find the address family
461 from the hostname. Always use AF_INET, because everything else
464 2002-10-04 Andrew V. Samoilov <sav@bcs.zp.ua>
466 * sfs.c (vfmake): Use open_error_pipe() and close_error_pipe().
468 2002-10-01 Andrew V. Samoilov <sav@bcs.zp.ua>
470 * xdirentry.h: Comment out magic field everywhere.
472 2002-10-01 Pavel Roskin <proski@gnu.org>
474 * Makefile.am (VFSHDRS): Remove container.h.
476 * tcputil.c (check_hooks): Remove, it does nothing. Also remove
477 all related data structures.
479 * tcputil.c (get_remote_port): Move to mcfs.c.
480 (send_string): Move to mcserv.c.
481 (rpc_add_get_callback): Remove, it's unused.
483 * container.h: Remove, it's unused.
485 * utilvfs.c: Remove tests, since get_host_and_username() is
487 * mcfs.c (open_tcp_link): Make static.
488 * tcputil.h: Remove unused definitions.
490 2002-09-29 Pavel Roskin <proski@gnu.org>
492 * direntry.c (vfs_s_retrieve_file): Allow interrupt by Ctrl-C.
493 From Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>
495 2002-09-26 Pavel Roskin <proski@gnu.org>
497 * sfs.c (sfs_init): Parametrize sfs.ini to allow reuse of the
498 messages in other places.
500 2002-09-25 Pavel Roskin <proski@gnu.org>
502 * vfs.c (vfs_parse_filemode): Fix parsing for filenames that
504 From Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
506 2002-09-24 Andrew V. Samoilov <sav@bcs.zp.ua>
508 * smbfs.c: Undef USE_NCURSES - no needs to include *curses.h.
509 (smbfs_loaddir): Fix warning.
511 2002-09-21 Pavel Roskin <proski@gnu.org>
513 * mcfs.c: Move config.h to the beginning.
515 2002-09-19 Andrew V. Samoilov <sav@bcs.zp.ua>
517 * tcputil.c [!WITH_MCFS]: Disable mcfs related code.
518 * mcfs.c [!WITH_MCFS]: Disable all code.
520 2002-09-16 Andrew V. Samoilov <sav@bcs.zp.ua>
522 * smbfs.c: Don't define BOOL_DEFINED to fix compilation on
525 2002-09-13 Andrew V. Samoilov <sav@bcs.zp.ua>
527 * (get_stat_info): Fix some possible NULL dereferences.
528 * smbfs.c (smbfs_set_debugf): New function to specify
530 * smbfs.h: Declare smbfs_set_debugf().
532 2002-09-12 Pavel Roskin <proski@gnu.org>
534 * mcserv.c: Declare crypt if crypt.h is missing and we are not
537 2002-09-11 Andrew V. Samoilov <sav@bcs.zp.ua>
539 * smbfs.c (statfile_helper): Merge with loaddir_helper().
540 (get_remote_stat): Use loaddir_helper(). Care about
541 single_entry instead of eliminated statfile_helper().
543 * samba/libsmb/clientgen.c (cli_NetServerEnum): Add void*
544 parameter to (*fn)() and void *state parameter.
545 (cli_list): Likewise.
546 (cli_RNetShareEnum): Likewise. Return int.
547 * samba/include/proto.h: Adjust declarations.
548 * smbfs.c: Adjust all helpers and dependencies.
549 From Samba patchsets.
551 * smbfs.c (loaddir_helper): Remove write permissions if file
552 has readonly attribute. Add execute permissions for directory.
553 Reformat whole function.
554 (statfile_helper): Likewise.
555 (server_browsing_helper): Add execute permissions. Reformat.
556 (browsing_helper): Likewise.
558 2002-09-10 Pavel Roskin <proski@gnu.org>
560 * vfs.h: Remove BROKEN_PATHS, it's unused.
562 * Make-alone.am: Get rid of all standalone code, it has been
563 unmaintained for years.
565 2002-09-05 Pavel Roskin <proski@gnu.org>
567 * direntry.c [!USE_NETCODE]: Disable functions used in networked
570 * vfs.c (vfs_init) [!USE_NETCODE]: Don't register fish.
572 * ftpfs.c: Check for existance of arpa/inet.h when using it.
574 * mcserv.c: Likewise.
575 * tcputil.c: Likewise.
576 * utilvfs.c: Likewise.
578 2002-09-03 Pavel Roskin <proski@gnu.org>
580 * vfs.c (vfs_get_password): Use INPUT_PASSWORD to request a
583 2002-09-02 Andrew V. Samoilov <sav@bcs.zp.ua>
585 * smbfs.c (smbfs_close): Return -1 if cli->outbuf is NULL and
586 set my_errno to EINVAL - temporary fix. Reformat function.
588 2002-09-01 Andrew V. Samoilov <sav@bcs.zp.ua>
590 * samba/param/loadparm.c: Add global_scope variable.
591 (parm_table): Add netbios scope parameter.
592 * samba/lib/util.c: Remove scope variable. Use global_scope instead.
593 * samba/libsmb/nmblib.c (make_nmb_name): Remove scope parameter and
594 use global_scope instead.
595 * samba/libsmb/namequery.c: Adjust make_nmb_name() calls.
596 * samba/include/proto.h: Adjust make_nmb_name() declaration.
598 From samba 2.0.7 patchset.
600 * samba/param/loadparm.c (lp_adduser_script): Commented out.
601 (lp_deluser_script): Likewise.
602 (lp_add_printer): Likewise.
603 (lp_add_one_printer): Likewise.
604 * samba/lib/util.c (reduce_name): Likewise.
605 (transfer_file): Likewise.
607 * smbfs.c (smbfs_do_connect): Adjust make_nmb_name() calls.
609 2002-08-26 Pavel Roskin <proski@gnu.org>
611 * extfs/urar.in: Use rar if unrar is missing.
612 From PLD Linux Distribution.
614 * extfs/a: Use more portable way to redirect all output to
615 /dev/null. From PLD Linux Distribution.
617 2002-08-24 Pavel Roskin <proski@gnu.org>
619 * vfs.c (vfs_parse_ls_lga): Better error message, avoid empty
622 2002-08-23 Pavel Roskin <proski@gnu.org>
624 * Makefile.am: Use mcserv_LDFLAGS, not mcserv_LDADD for the
627 2002-08-22 Pavel Roskin <proski@gnu.org>
629 * mcserv.c: Remove old-style Linux-only support for shadow
631 * Makefile.am: Remove reference to SHADOWLIB.
633 2002-08-21 Andrew V. Samoilov <sav@bcs.zp.ua>
635 * ftpfs.c (dir_load): Don't handle empty remote_path in special
638 2002-08-19 Pavel Roskin <proski@gnu.org>
640 * direntry.c (vfs_s_get_line): Fix off-by-one buffer overflow.
642 * fish.c (pipeopen): Use _exit(), not vfs_die() to terminate the
643 child if execvp() fails.
645 * sfs.c: Don't use flag EXECUTE_SETUID because it's being
646 removed as insecure and EXECUTE_WAIT because it has no effect.
649 * mcfs.c [!WITH_MCFS]: Disable most code.
651 2002-08-18 Pavel Roskin <proski@gnu.org>
653 * vfs.h: Declare vfs_timeout and tar_gzipped_memlimit.
655 2002-08-15 Pavel Roskin <proski@gnu.org>
657 * vfs.c (mc_def_getlocalcopy): Preserve existing extension.
659 * direntry.c (vfs_s_getlocalcopy): Fix potentially dangerous
662 * extfs.c (s_readdir): Simplify.
663 * direntry.c (vfs_s_readdir): Use vfs_dirent.
664 * mcfs.c (mcfs_readdir): Likewise.
665 * smbfs.c (smbfs_readdir): Likewise.
666 * undelfs.c (undelfs_readdir): Use vfs_dirent and
669 * vfs.h: Introduce union vfs_dirent to ensure that we have
670 enough space for the filename.
671 * extfs.c (s_readdir): Use vfs_dirent. Avoid strcpy().
673 * direntry.c (vfs_s_readdir): Use compute_namelen().
674 * extfs.c (s_readdir): Likewise.
675 * mcfs.c (mcfs_readdir): Likewise.
676 * smbfs.c (smbfs_readdir): Likewise.
678 2002-08-14 Pavel Roskin <proski@gnu.org>
680 * vfs.h [!USE_VFS]: Declare mc_setctl as static inline function
683 2002-08-06 Andrew V. Samoilov <kai@cmail.ru>
685 * smbfs.c (myumask): Removed. It is only written and never read.
686 (smbfs_init): Use PATH_SEP_STR and reformat.
688 2002-08-01 Pavel Roskin <proski@gnu.org>
690 * mcserv.c: Remove all references to MAD.
693 2002-07-31 Andrew V. Samoilov <kai@cmail.ru>
695 * samba/libsmb/clientgen.c (cli_send_tconX): Add missing
697 (cli_printjob_del): Commented out.
698 (cli_print_queue): Ditto.
699 * samba/lib/system.c (sys_waitpid): Ditto.
700 * samba/lib/util.c (reg_split_key): Ditto.
701 (reg_get_subkey): Ditto.
703 2002-07-29 Andrew V. Samoilov <kai@cmail.ru>
705 * samba/configure.in: Don't check for union semun.
706 * samba/include/includes.h [!HAVE_UNION_SEMUN]: Don't
709 2002-07-26 Pavel Roskin <proski@gnu.org>
711 * direntry.c (vfs_s_find_entry_linear): Canonicalize path before
714 2002-07-25 Andrew V. Samoilov <kai@cmail.ru>
716 * xdirentry.h (vfs_s_fh.u.fish): Add append field.
717 * fish.c (fish_fh_open): Care about append.
718 (linear_open): Likewise.
719 (fish_store): Append data to target file if append is true.
721 * mcserv.c [HAVE_MAD]: Include "../src/mad.c" at the end of
722 file to fix compilation.
723 (main): Add mad_init() and mad_finalize().
725 2002-07-19 Pavel Roskin <proski@gnu.org>
727 * ftpfs.c: Don't use SUP.home, use SUP.cwdir.
729 (dir_load): Update SUP.cwdir.
730 * xdirentry.h: Remove "home" field for fish and ftpfs.
732 * xdirentry.h: Get rid of ifree(), it's equivalent to g_free().
733 * direntry.c: Likewise.
737 * fish.c (fish_fill_names): New function, replacement for
738 generic vfs_s_fill_names() which didn't work right with fish.
740 * undelfs.c (undelfs_opendir): Use parametrized messages without
741 VFS name for success and failure.
742 * fish.c (dir_load): Use new messages from undelfs.c, indicate
743 success by printing "done".
744 * ftpfs.c (dir_load): Likewise.
746 2002-07-15 Pavel Roskin <proski@gnu.org>
748 * cpio.c (cpio_read_crc_head): Undo change in the error message.
750 * ftpfs.c: Replace bzero and bcopy with memset and memcpy.
752 * mcserv.c: Likewise.
756 2002-07-14 Pavel Roskin <proski@gnu.org>
758 * fish.c (open_archive_int): Don't combine "export" and
759 assignment into one command - it's not portable. Set LC_TIME
762 * fish.c (open_archive_int): Set remote locale to C, otherwise
763 timestamps cannot be parsed in some locales.
765 2002-07-12 Pavel Roskin <proski@gnu.org>
767 * fish.c (file_store): Reduce input block size to 256 bytes,
768 otherwise dd gets partial blocks.
770 * ftpfs.c (login_server) [HSC_PROXY]: Fix crash.
772 * ftpfs.c (ftp_split_url): Implement looking up password in
773 .netrc for known user.
775 * ftpfs.c (ftp_split_url): Don't expect lookup_netrc() to always
777 (netrc_has_incorrect_mode): Don't free anything, it can result
778 in freeing some variables twice.
779 (find_machine): New function to find matching "machine" or
781 (lookup_netrc): Eliminate external loop - scan for login and
782 password, but don't fallback to another string in case of
785 * ftpfs.c: Introduce enum keyword_t to improve readability.
786 (netrc_next): Fix return value for unknown keywords.
787 (lookup_netrc): Remove special processing of "*netrc*".
789 * ftpfs.c (ftp_split_url): Move protection against pass being
791 (lookup_netrc): ... here.
793 2002-07-11 Pavel Roskin <proski@gnu.org>
795 * xdirentry.h: Eliminate use_proxy field.
796 * ftpfs.c (open_archive_int): Use SUP.proxy instead of
798 (open_archive): Set SUP.proxy to ftpfs_proxy_host.
799 * ftpfs.h: Eliminate unused structures.
801 * vfs.h: Rename URL_DEFAULTANON to URL_ALLOW_ANON.
802 * utilvfs.c (vfs_split_url): Return NULL as username if
803 URL_ALLOW_ANON is set and no username is found in the URL,
804 otherwise use current name.
805 * ftpfs.c (ftp_split_url): New function - split URL and look up
806 username and password if needed.
807 (login_server): Use ftp_split_url().
808 (archive_same): Likewise.
810 2002-07-10 Pavel Roskin <proski@gnu.org>
812 * tcputil.h: Move use_netrc declaration ...
814 * ftpfs.c: Implement .netrc support unconditionally.
815 (lookup_netrc): Make static.
816 * utilvfs.c: Initialize default_is_netrc.
817 From Thomas Zajic <zlatko@gmx.at>
819 * direntry.c (vfs_s_open): Don't pass O_LINEAR to open() -
820 this flag is for VFS only, and causes side effects in Cygwin.
821 * extfs.c (extfs_open): Likewise.
822 * sfs.c (sfs_open): Likewise.
823 Reported by Pavel Tsekov <ptsekov@gmx.net>
825 2002-07-03 Pavel Roskin <proski@gnu.org>
827 * ftpfs.c (setup_passive): Cast arguments to isdigit() to
828 unsigned char for compatibility with non-GNU libc.
829 * tar.c (from_oct): Likewise with isspace().
830 Reported by Roland Illig <1illig@informatik.uni-hamburg.de>
832 2002-07-03 Andrew V. Samoilov <kai@cmail.ru>
834 * extfs.c (extfs_fill_names): Generate filename#vfsname/dir
835 instead of #vfsname/filename/dir. Use PATH_SEP_STR.
837 * sfs.c (sfs_free): Fix memory leak.
838 (sfs_init): Use PATH_SEP_STR.
840 2002-07-03 Pavel Roskin <proski@gnu.org>
842 * cpio.c (cpio_open_cpio_file): Fix type initialization.
843 From Andrew V. Samoilov <kai@cmail.ru>
845 2002-07-02 Pavel Roskin <proski@gnu.org>
847 * Makefile.am: Add samba to SUBDIRS. Forcedly set DISTDIRS to
848 extfs. Remove parts that are now handled by samba/Makefile.
849 * samba/Makefile.in: Add more empty targets for Automake
852 * ftpfs.c (send_ftp_command): Use "anonymous@" as default
854 From Eduardo Perez Ureta <eperez@it.uc3m.es>
856 2002-06-25 Pavel Roskin <proski@gnu.org>
858 * vfs.c: Add protection against NULL strings to all is_*()
861 2002-06-21 Andrew V. Samoilov <kai@cmail.ru>
863 * smbfs.c: Undefine PACKAGE_BUGREPORT, PACKAGE_NAME,
864 PACKAGE_STRING, PACKAGE_TARNAME and PACKAGE_VERSION
865 before including "samba/include/config.h" to prevent warnings.
866 (smbfs_init): Set DEBUGLEVEL to 0.
867 (do_connect): Rename to ...
868 (smbfs_do_connect): ... this to avoid namespace clash and
869 make static. Make server const. Adjust all callers.
870 (smbfs_add_dots): Remove.
871 (smbfs_stat): Remove code duplication.
872 (smbfs_lstat): Define as smbfs_stat.
874 * samba/lib/system.c (sys_ftruncate): Commented out.
875 * samba/lib/util.c (set_filelen): Likewise.
876 (setbuffer): Likewise.
878 * Makefile.am (SAMBA_DIST): Remove tests/ftruncate.c
879 * samba/tests/ftruncate.c: Removed.
880 * samba/configure.in: Don't check if ftruncate() can
883 2002-06-06 Andrew V. Samoilov <kai@cmail.ru>
885 * cpio.c (cpio_read_oldc_head): Use char[] for buf instead
886 of char*[]. Remove unneeded casts. Fix error message.
887 (cpio_create_entry): G_free name. Fix offset calculation
890 2002-05-22 Pavel Roskin <proski@gnu.org>
892 * Makefile.am (mcserv_SOURCES): Remove $(top_srcdir)/src/mad.c,
893 it breaks "make distcheck".
895 * Makefile.am: Set samba_libsamba_a_SOURCES to an empty value
896 to override the default.
898 2002-05-22 Andrew V. Samoilov <kai@cmail.ru>
900 * xdirentry.h (vfs_s_fh.u.ftp): Add append field.
901 (vfs_s_data.file_store): Change second argument
903 * direntry.c (vfs_s_close): Adjust.
904 * fish.c (file_store): Likewise.
905 * ftpfs.c (file_store): Likewise. Use "APPE" if
906 fh->u.ftp.append is true.
907 (linear_start): Care about fh->u.ftp.append.
908 (ftpfs_fh_open): Likewise.
910 * fish.c (fish_fh_open): Generate fh->ino->localname
911 if this one is NULL and file is opened for writting only.
912 * ftpfs.c (ftpfs_fh_open): Likewise if control_connection_buzy
915 2002-05-21 Andrew V. Samoilov <kai@cmail.ru>
917 * direntry.c (vfs_s_retrieve_file): Please, care about
919 * fish.c (linear_close): ... here.
921 * ftpfs.c (linear_read): Unset control_connection_buzy on EOF.
922 (ftpfs_fh_close): Call vfs_s_invalidate ().
924 * fish.c (fish_fh_open): Don't retrieve file if it is
925 opened for writting only.
927 2002-05-17 Andrew V. Samoilov <kai@cmail.ru>
929 * xdirentry.h (vfs_s_super): Add control_connection_buzy
932 * ftpfs.c (linear_start): Set control_connection_buzy.
933 (linear_abort): Unset control_connection_buzy.
934 (ftpfs_fh_open): Don't retrieve file if it is
935 opened for writting only. Open data connection as
936 fh->handle and unlink/unset local temporary file
937 if control connection isn't buzy.
938 (ftpfs_fh_close): New function to serve opened in
939 ftpfs_fh_open() data connection. Unset fh->changed
940 to prevent MEDATA->file_store() call from vfs_s_close().
942 * direntry.c (vfs_s_read): Move MEDATA->linear_start() ...
943 (vfs_s_open): ... here.
945 * samba/include/includes.h: Eliminate all references to
948 2002-05-14 Andrew V. Samoilov <kai@cmail.ru>
950 * Makefile.am (noinst_LIBRARIES): Add samba/libsamba.a
951 if USE_SAMBA_FS is true.
952 (libvfs-mc.a): Don't merge object files with libsamba.a.
954 2002-05-13 Andrew V. Samoilov <kai@cmail.ru>
956 * Makefile.am (mcserv_SOURCES): Add $(top_srcdir)/src/mad.c.
958 * vfs.c (MC_RENAMEOP): Make arguments const.
959 * vfs.h (mc_rename): Adjust declaration.
962 2002-05-11 Andrew V. Samoilov <kai@cmail.ru>
964 * samba/configure.in: Add AC_SYS_LARGEFILE.
965 Don't check atexit, setreuid, setregid, setegid and setluid.
967 2002-04-31 Pavel Roskin <proski@gnu.org>
969 * samba/acconfig.h: Remove.
970 * Makefile.am: Remove references to samba/acconfig.h.
971 * samba/Makefile.in: Likewise.
972 * samba/aclocal.m4: Remove unused test AC_DIRENT_D_OFF.
973 * samba/configure.in: Add descriptions to AC_DEFINE calls.
975 * samba/include/includes.h: Cleanup for the symbols that
976 samba/configure.in doesn't define.
977 * samba/lib/netmask.c: Likewise.
979 * samba/include/includes.h: Eliminate all references to
980 HAVE_EXPLICIT_LARGEFILE_SUPPORT.
981 * samba/lib/system.c: Likewise.
983 2002-04-24 Andrew V. Samoilov <kai@cmail.ru>
985 * vfs.c (vfs_print_stats): s/transfered/transferred/
987 * samba/lib/signal.c: Remove.
989 * samba/lib/debug.c (sig_usr2): Commented out.
990 (sig_usr1): Likewise.
991 * samba/lib/util_file.c (gotalarm): Commented out.
992 (gotalarm_sig): Likewise.
993 (do_file_lock): Likewise.
994 (file_lock): Likewise.
995 (file_unlock): Likewise.
996 (startfilepwent): Likewise.
997 (endfilepwent): Likewise.
999 * samba/Makefile.in (SAMBAFILES): Remove lib/signal.o.
1000 * Makefile.am (SAMBA_DIST): Remove lib/signal.c.
1002 2002-04-19 Andrew V. Samoilov <kai@cmail.ru>
1004 * vfs.c (vfs_init) [!WITH_MCFS]: Don't register mcfs.
1006 2002-04-12 Pavel Roskin <proski@gnu.org>
1008 * extfs/trpm: update to work with rpm 4.x.
1009 Reported by m.lusini@palazzochigi.it
1010 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=62306
1012 2002-04-12 Andrew V. Samoilov <kai@cmail.ru>
1014 * cpio.c (cpio_skip_padding): Handle old ASCII format.
1016 2002-04-08 Pavel Roskin <proski@gnu.org>
1018 * samba/configure.in: Require Autoconf 2.52 to make Debian
1019 wrapper around Autoconf happy.
1020 From Björn Eriksson <bjorn@bjornen.nu>
1022 2002-03-06 Andrew V. Samoilov <kai@cmail.ru>
1024 * direntry.c (vfs_s_resolve_symlink): Comment out buggy code.
1025 (vfs_s_retrieve_file): Set fh->handle to -1.
1026 (vfs_s_read): Don't manipulate with FH->handle if it is -1.
1027 (vfs_s_write): Likewise.
1028 (vfs_s_close): Likewise.
1030 2002-02-27 Andrew V. Samoilov <kai@cmail.ru>
1032 * samba/lib/debug.c: Remove syslog support.
1034 2002-02-19 Pavel Roskin <proski@gnu.org>
1036 * Makefile.am: Don't compile mcserv if VFS is disabled.
1037 * extfs/Makefile.am: Don't install anything if VFS is disabled.
1039 * extfs.c (extfs_open): Only create a new entry if it has not
1040 been found and O_CREAT is set. Consider file as changed only
1041 if it has been successfully created.
1042 (extfs_getlocalcopy): Open file only for reading. This prevents
1043 marking file as changed. Actually use the has_changed argument.
1044 Reported by Nerijus Baliunas <nerijus@users.sourceforge.net>
1046 2002-02-12 Pavel Roskin <proski@gnu.org>
1048 * extfs/lslR.in: Fix parsing of old entries (with year number).
1049 From Daniel Skarda <0rfelyus@atrey.karlin.mff.cuni.cz>
1051 2002-02-08 Andrew V. Samoilov <kai@cmail.ru>
1053 * direntry.c (vfs_s_retrieve_file): Use off_t for total
1055 (vfs_s_resolve_symlink): Use snprintf instead of sprintf.
1057 * vfs.c (vfs_print_stats): Use off_t for have and need.
1058 Cast `have' to double to eliminate negative percent(s).
1059 Fix print_vfs_message string formats.
1061 * vfs.h (vfs_print_stats): Adjust declaration.
1063 * ftpfs.c (file_store): Use off_t for total.
1064 Fix print_vfs_message string format.
1066 2002-02-07 Andrew V. Samoilov <kai@cmail.ru>
1068 * ftpfs.c (dir_load): Speed up cd_first calculation.
1069 (ftpfs_flushdir): Resurrect.
1071 2002-02-06 Andrew V. Samoilov <kai@cmail.ru>
1073 * ftpfs.c (dir_load): Use "LIST -la" instead of "LIST -la ."
1074 to eliminate problem with wu-ftpd.
1075 Close sock on error. Eliminate goto.
1077 (ftpfs_chmod): Don't ignore errors.
1079 (reconnect): Restore cwdir if login_server fails.
1081 2002-02-01 Andrew V. Samoilov <kai@cmail.ru>
1083 * ftpfs.c (translate_path): Remove leading slash(es) more
1085 (initconn): Check getsockname() return value.
1087 (linear_abort): Make ipbuf const array.
1089 2002-01-29 Andrew V. Samoilov <kai@cmail.ru>
1091 * ftpfs.c (reconnect): New function to restore closed connection.
1092 (command): Use reconnect if EPIPE received.
1093 (dir_load): Eliminate recursion.
1094 (login_server): Constify netrcpass parameter.
1095 (is_same_dir): Constify path parameter.
1097 * samba/lib/charset.c (cp_850): Make const array.
1099 (codepage_p): Likewise.
1100 * samba/lib/debug.c (priority_map): Make const array.
1101 * samba/lib/username.c (get_home_dir): Make pass auto.
1102 * samba/lib/util.c (become_daemon): Commented out.
1105 2002-01-24 Pavel Roskin <proski@gnu.org>
1107 * cpio.c: Don't include glib.h directly.
1109 2002-01-22 Pavel Roskin <proski@gnu.org>
1111 * extfs/uzip: Fix unsafe printf.
1112 Reported by Jari Karppinen <jakarppi@mail.student.oulu.fi>
1114 2002-01-22 Andrew V. Samoilov <kai@cmail.ru>
1116 * ftpfs.c (ftpfs_chmod): Add missed '/'.
1118 2002-01-21 Pavel Roskin <proski@gnu.org>
1120 * vfs.h: Remove all tricks with system headers, they all should
1122 * cpio.c: Include utilvfs.h earlier.
1125 * vfs.h: Include dirent.h only if it's present.
1127 2002-01-21 Andrew V. Samoilov <kai@cmail.ru>
1130 * vfs.c (mc_return_cwd): Fix comment. Check whatever mc_stat
1131 returns. Make mc_return_cwd static const char *.
1132 Reorder if statement to eliminate unneeded mc_stat calls.
1134 2002-01-17 Pavel Roskin <proski@gnu.org>
1136 * vfs.h: Remove OS/2 specific code.
1138 2002-01-11 Andrew V. Samoilov <kai@cmail.ru>
1140 * Makefile.am (AM_CFLAGS): Add -DCONFIGDIR=\""@configdir@"\"
1141 if smbfs support is enabled.
1143 * smbfs.c (smbfs_init): Use CONFIGDIR for smb.conf.
1145 2002-01-02 Pavel Roskin <proski@gnu.org>
1147 * Makefile.am: Add *clean-local targets to take care of the
1150 * samba/configure.in: Use explicit AC_CONFIG_AUX_DIR because
1151 this setting is not inherited from the top-level configure.
1153 2001-12-31 Pavel Roskin <proski@gnu.org>
1155 * Make-mc.in: convert to ...
1156 * Makefile.am: ... this.
1158 * Makefile.am: rename to ...
1159 * Make-alone.am: ... this. Automake 1.5b doesn't allow Makefile
1160 and Makefile.am to coexist peacefully unless the former is
1161 generated from the later.
1162 * Make-mc.in: Remove all references to the standalone VFS.
1164 2001-12-18 Pavel Roskin <proski@gnu.org>
1166 * extfs/ulha.in: Support for "[unknown]" and other permissions
1167 in brackets. Pass the date unchanged - mc can now deal with it.
1168 Use "lha lq" to list the archive and don't remove headers and
1169 footers of the listing.
1171 2001-11-14 Pavel Roskin <proski@gnu.org>
1173 * undelfs.c: Use ext2_ino_t to avoid warnings with e2fsprogs
1176 2001-11-13 Andrew V. Samoilov <kai@cmail.ru>
1178 * samba/acconfig.h: Remove WITH_SYSLOG.
1179 * samba/lib/system.c (sys_chroot): Removed.
1180 * samba/configure.in: Remove RUNPROG. Don't check
1181 for chroot and execl functions.
1182 Remove syslog logging support.
1183 Add --with-codepagedir and --with-configdir from samba 2.2.2.
1185 * samba/Makefile.in: Use configdir and codepagedir.
1187 2001-11-08 Pavel Roskin <proski@gnu.org>
1189 * Make-mc.in (SAMBA_DIST): Remove lib/getsmbpass.c.
1191 2001-11-05 Andrew V. Samoilov <kai@cmail.ru>
1193 * smbfs.c (smbfs_add_dots): New function. Insert a "." and ".."
1194 entries into the linked list.
1195 (smbfs_loaddir): Call smbfs_add_dots() for shares or servers.
1196 (smbfs_get_free_bucket): Eliminate time.
1197 (fake_share_stat): Make path const.
1199 * samba/configure.in: Don't check whether getpass
1202 2001-11-02 Andrew V. Samoilov <kai@cmail.ru>
1204 * vfs.c (mc_return_cwd): Memory leak fixed.
1206 2001-11-01 Andrew V. Samoilov <kai@cmail.ru>
1208 * samba/smblib/pwd_cache.c (pwd_read): Commented out.
1209 * samba/Makefile.in (SAMBAFILES): Remove lib/getsmbpass.o.
1210 * samba/lib/getsmbpass.c: Removed.
1212 2001-10-30 Andrew V. Samoilov <kai@cmail.ru>
1214 * smbfs.c: Include <config.h> before everything else.
1215 Don't include "tcputil.h".
1216 (myhostname): Declare extern.
1218 (loaddir): Symplify.
1219 (fake_share_stat): Declare server_url const.
1220 Use "%4o" for st_mode.
1221 (fake_server_stat): Likewise. Return -1 if server_list != True.
1223 (get_master_browser): Declare ipzero extern.
1224 By David Kaelbling <drk@sgi.com>.
1225 http://bugzilla.gnome.org/show_bug.cgi?id=60933
1227 * cpio.c (cpio_read_bin_head): Release name if mc_read() fails.
1228 (cpio_read_crc_head): Likewise.
1230 2001-10-25 Andrew V. Samoilov <kai@cmail.ru>
1232 * cpio.c (cpio_read_crc_head): Fix buffer overflow.
1233 (cpio_read_oldc_head): Likewise.
1234 By David Kaelbling <drk@sgi.com>.
1235 http://bugzilla.gnome.org/show_bug.cgi?id=60933
1237 * (cpio_read_oldc_head): Release name if mc_read() fails.
1239 2001-10-24 Andrew V. Samoilov <kai@cmail.ru>
1241 * tcputil.c (rpc_get): Add missing va_end()s.
1243 * smbfs.h: Declare smbfs_set_debug().
1245 2001-10-20 Pavel Roskin <proski@gnu.org>
1247 * ftpfs.c (command): Declare with the printf attribute.
1248 * undelfs.c: Remove declaration of print_vfs_message().
1250 * fish.c (file_store): Fix incorrect format string
1251 for print_vfs_message().
1252 * ftpfs.c (file_store): Likewise.
1254 2001-10-19 Pavel Roskin <proski@gnu.org>
1256 * fish.c (command): Declare with the printf attribute to enable
1258 (file_store): Cast all expressions with file sizes to unsigned
1259 long. This should fix uploading when large file support is on.
1260 File size is limited to 4096 * ULONG_MAX for now.
1262 2001-10-18 Andrew V. Samoilov <kai@cmail.ru>
1264 * samba/configure.in: Don't check readline.h, history.h and
1267 2001-10-16 Andrew V. Samoilov <kai@cmail.ru>
1269 * samba/libsmb/clientgen.c (cli_RNetShareEnum): Fix Win2k
1270 "out of server memory" error. From samba 2.0.7 patchset.
1272 2001-10-07 Pavel Roskin <proski@gnu.org>
1274 * vfs.c (vfs_parse_filetype): Fix fallback to fifo if sockets
1275 are not supported locally. Support Solaris doors, also fall
1278 2001-10-02 Andrew V. Samoilov <kai@cmail.ru>
1280 * sfc.c (sfs_getid): Don't use vfs_die(), return (vfsid)(-1)
1283 2001-10-01 Pavel Roskin <proski@gnu.org>
1285 * vfs.h [!USE_VFS]: Define macros with no effect to an empty
1286 statement "do { } while (0)".
1288 2001-09-30 Pavel Roskin <proski@gnu.org>
1290 * samba/acconfig.h: Only leave symbols required by Autoconf-2.52.
1292 2001-09-17 Pavel Roskin <proski@gnu.org>
1294 * vfs.c: Manually expand macros for mc_stat(), mc_lstat() and
1295 mc_fstat() because they don't expand correctly on Solaris 8 with
1298 2001-09-10 Pavel Roskin <proski@gnu.org>
1300 * Make-mc.in: Use USE_VFS conditional instead of relying on
1303 2001-09-07 Pavel Roskin <proski@gnu.org>
1305 * Make-mc.in: Include necessary parts of Make.common to
1306 eliminate the later.
1308 2001-08-23 Pavel Roskin <proski@gnu.org>
1310 * names.c (finduname): Don't use HAVE_GETPWUID - it's never
1311 defined. Don't redeclare getpwuid().
1312 (findgname): Don't use HAVE_GETGRGID - it's never defined.
1313 Don't redeclare getgrgid().
1315 * fish.c: Remove useless semicolons after functions.
1317 2001-08-19 Pavel Roskin <proski@gnu.org>
1319 * vfs.c (vfs_parse_ls_lga): Warning fix if st_nlink is unsigned.
1320 Disallow st_nlink = 0.
1322 2001-08-18 Pavel Roskin <proski@gnu.org>
1324 * cpio.c (cpio_read_head): Check return value of cpio_find_head,
1325 because it's not equal to super->u.cpio.type in case of errors.
1327 2001-08-16 Pavel Roskin <proski@gnu.org>
1329 * direntry.c (vfs_s_free_super): Remove i18n on commented out
1330 developer-only code.
1332 * extfs.c (extfs_init): Internationalize error message, it's
1335 2001-08-11 Pavel Roskin <proski@gnu.org>
1337 * sfs.c (sfs_init): Use g_free(), not free() on mc_sfsini.
1339 2001-08-07 Pavel Roskin <proski@gnu.org>
1341 * extfs.h: Move private structures ...
1342 * extfs.c: ... here.
1344 * extfs.h (struct entry): Remove unused `has_changed' field.
1345 It's only written but never read.
1346 (struct inode): Likewise.
1347 * extfs.c: All dependencies changed.
1348 (extfs_open): Mark file as changed if it's open for writing.
1350 2001-08-07 Oskar Liljeblad <osk@hem.passagen.se>
1352 * extfs/uzip: Update to version 1.4.0.
1353 * extfs/README.uzip: Likewise.
1355 2001-08-06 Andrew V. Samoilov <kai@cmail.ru>
1357 * smbfs.c: Eliminate smbfs_get_free_bucket_init(). convert_path()
1358 gives malloc()ed filename, so this memory must be released after use.
1360 (reconnect): Fix segmentation fault.
1361 (smbfs_loadddir): Don't g_strdup() path.
1362 (smbfs_get_free_bucket): Eliminate smbfs_get_free_bucket_init() and
1363 smbfs_connections initialisation.
1364 (smbfs_open_link): Likewise. Release host after get_master_browser().
1365 (get_stat_info): Fix unneeded g_strdup/g_free calls.
1366 (smbfs_mkdir): Release path after use.
1367 (smbfs_mkdir): Likewise.
1368 (smbfs_open): Fix memory leak.
1369 (smbfs_unlink): Likewise. Fix error message.
1370 (smbfs_rename): Fix memory leaks.
1371 (smbfs_stat): Fix url parsing.
1373 * samba/lib/charcnv.c (unix2dos_format): Fix possible buffer overflow.
1374 (dos2unix_format): Likewise.
1376 * ftpfs.c (ftpfs_fill_names): New function.
1377 (vfs_ftpfs_ops): Use ftpfs_fill_names insted of vfs_s_fill_names.
1379 2001-08-03 Andrew V. Samoilov <kai@cmail.ru>
1381 * utilvfs.c, vfs.h (vfs_split_url): Make path parameter const.
1383 * xdirentry.h (struct vfs_s_super): Remove u.ftp.result_pending field.
1384 * ftpfs.h (struct connection): Remove result_pending field.
1386 * samba/libsmb/clientgen.c (cli_chkpath): Fix possible buffer overflow.
1387 * smbfs.c (new_dir_entry): New function with repeated code from
1388 browsing_helper(), loaddir_helper() and server_browsing_helper().
1389 (browsing_helper): Use new_dir_entry().
1390 (loaddir_helper): Likewise.
1391 (server_browsing_helper): Likewise.
1393 (cached_lstat_info): Eliminated.
1394 (smbfs_readdir): Make dirent_dest static const.
1395 Eliminate cached_lstat_info.
1396 (smbfs_open_link): Make user parameter const. Fix memory leak.
1397 (fake_server_stat): Make path parameter const. Symplify.
1398 (smbfs_fstat): Set my_errno to EFAULT before return.
1400 2001-08-01 Pavel Roskin <proski@gnu.org>
1402 * Make-mc.in: Make it possible to run "make install" before
1403 "make all". Use more Automake-compatible target names.
1405 2001-08-01 Andrew V. Samoilov <kai@cmail.ru>
1407 * smbfs.c: Undefine VERSION to prevent warning. Comments fixes.
1408 (do_connect): Symplify.
1409 (get_stat_info): Symplify. Eliminate another fake_stat.
1410 (smbfs_chdir): Release remote_dir after use.
1411 (smbfs_stat): Likewise. Fix another 2 memory leaks.
1412 (smbfs_mkdir): Release remote_file after use.
1413 (smbfs_rmdir): Likewise.
1414 (smbfs_open): Likewise. Indentation fixes.
1415 (smbfs_unlink): Likewise.
1416 (smbfs_rename): Release rb and ra after use.
1417 (search_dir_entry): Make text parameter const.
1418 (smbfs_get_host_and_username): Make macro.
1420 2001-07-20 Pavel Roskin <proski@gnu.org>
1422 * extfs.c (extfs_init) [GTK]: Use mc_home instead of LIBDIR.
1423 From Ludovic Drolez <ludovic.drolez@freealter.com>.
1425 2001-07-17 Pavel Roskin <proski@gnu.org>
1427 * vfs.c (mc_return_cwd): Use g_get_current_dir().
1429 2001-07-15 Pavel Roskin <proski@gnu.org>
1431 * smbfs.c: Rename authinfo to smb_authinfo and
1432 authinfo_get_authinfo_from_user() to vfs_smb_get_authinfo()
1433 and remove their definitions.
1434 * vfs.h: Declare smb_authinfo and vfs_smb_get_authinfo().
1436 2001-07-10 Pavel Roskin <proski@gnu.org>
1438 * extfs.c: Include contents of shared_tar_ext.c - it's no
1440 * shared_tar_ext.c: Remove.
1441 * Make-mc.in (VFSSRCS): Remove shared_tar_ext.c.
1443 * smbfs.c (vfs_smbfs_ops): Use short name "smbfs" for the
1444 filesystem. Don't translate it.
1446 2001-07-09 Pavel Roskin <proski@gnu.org>
1448 * tar.c (ReadStatus): Fix compilation on AIX.
1449 From Dan McNichol <mcnichol@austin.ibm.com>.
1451 * extfs/mailfs: Strip trailing DOS newlines from mail files.
1452 From Christian Gennerat <christian.gennerat@vz.cit.alcatel.fr>
1454 * fish.c (fish_chown): Do nothing and return success if
1455 getpwuid() or getgrgid() fails.
1457 2001-07-05 Pavel Roskin <proski@gnu.org>
1459 * README.fish: Spelling fixes.
1461 2001-06-29 Pavel Roskin <proski@gnu.org>
1463 * Make-mc.in: Don't ever link mcserv with libintl - it must not
1466 2001-06-27 Andrew V. Samoilov <sav@bcs.zp.ua>
1468 * smbfs.c: Include <config.h>. Make all internal variables static.
1469 (get_stat_info): Eliminate fake_stat, memory leak fixed.
1470 (IPC, URL_HEADER): Make static const.
1471 (smbfs_stat): Fix segmentation violation.
1472 (statfile_helper): Allocate memory for single_entry once. It is never
1473 freed now, and only my_stat element of this structure is used.
1475 2001-06-26 Pavel Roskin <proski@gnu.org>
1477 * vfs.h: Don't include <config.h>.
1479 2001-06-25 Pavel Roskin <proski@gnu.org>
1481 * cpio.c: Include <config.h> before everything else.
1482 * direntry.c: Likewise.
1484 * ftpfs.c: Likewise.
1485 * local.c: Likewise.
1487 * utilvfs.h: Don't include <config.h> - it should be included
1488 in all C files instead.
1489 * xdirentry.h: Likewise.
1491 2001-06-19 Pavel Roskin <proski@gnu.org>
1493 * local.c (local_telldir): Warn and abort if telldir() is not
1495 (local_seekdir): Warn and abort if seekdir() is not available.
1497 2001-06-18 Pavel Roskin <proski@gnu.org>
1499 * tcputil.c (sig_pipe): Use the same declaration with one int
1500 argument - it's used everywhere else and it fixes a warning on
1501 systems unlisted in the ifdef, e.g. OpenBSD.
1503 2001-06-14 Pavel Roskin <proski@gnu.org>
1505 * ftpfs.c: Declare functions without declarations static. Don't
1506 omit `void' in declarations.
1508 * direntry.c: Likewise.
1509 * extfs.c: Likewise.
1514 * mcserv.c: Likewise. Remove unused functions.
1516 * util-alone.c: Use indented #error.
1517 * vfs.h: Use indented #warning instead of hiding it from non-gcc
1520 2001-06-11 Pavel Roskin <proski@gnu.org>
1522 * cpio.c (vfs_cpiofs_ops): Use short name for the filesystem.
1523 This avoids creating long filenames in dirent.c when the "name"
1525 * extfs.c (vfs_extfs_ops): Likewise.
1526 * fish.c (vfs_fish_ops): Likewise.
1527 * ftpfs.c (vfs_ftpfs_ops): Likewise.
1528 * local.c (vfs_local_ops): Likewise.
1529 (vfs_nil_ops): Likewise.
1530 * mcfs.c (vfs_mcfs_ops): Likewise.
1531 * sfs.c (vfs_sfs_ops): Likewise.
1532 * tar.c (vfs_tarfs_ops): Likewise.
1533 * undelfs.c (vfs_undelfs_ops): Likewise.
1535 2001-06-07 Pavel Roskin <proski@gnu.org>
1537 * sfs.c (sfs_init): Change some warning messages to simplify
1540 2001-06-06 Pavel Roskin <proski@gnu.org>
1542 * shared_ftp_fish.c: Remove.
1543 * Make-mc.in: Remove shared_ftp_fish.c.
1544 * Makefile.am: Likewise.
1546 2001-06-02 Pavel Roskin <proski@gnu.org>
1548 * vfs.c (vfs_canon): s/canonize/canonicalize/.
1550 2001-06-01 Andrew V. Samoilov <sav@bcs.zp.ua>
1552 * ftpfs.h: Declare use_netrc, ftpfs_retry_seconds,
1553 ftpfs_first_cd_then_ls, ftpfs_use_passive_connections and
1554 ftpfs_use_unix_list_options.
1556 * vfs.c [VFS_STANDALONE]: Undefine WITH_SMBFS, they are mutually
1558 (is_week): Unmade week static.
1559 (is_month): Unmade month static.
1560 (vfs_parse_ls_lga): Optimize memory usage.
1562 * .cvsignore: *.sor added.
1563 * sfs.c (sfs_init): Optimized.
1565 * vfs/samba/lib/util_sock.c (socket_options): Made static const.
1567 2001-05-30 Ludovic Drolez <ludovic.drolez@freealter.com>
1569 * sfs.c (sfs_init): Don't hardcode location of sfs.ini,
1570 use mc_home to make mc relocatable.
1571 * util-alone.c (shell): ... here
1573 2001-05-27 Pavel Roskin <proski@gnu.org>
1575 * fish.c: Redirect stderr of all commands to /dev/null.
1577 2001-05-25 Pavel Roskin <proski@gnu.org>
1579 * sfs.c (vfs_sfs_ops): Typo fix.
1581 2001-05-22 Pavel Roskin <proski@gnu.org>
1583 * vfs.c (vfs_split_text): Fill `columns' with zeroes before
1584 writing new data into it.
1586 * fish.c (free_archive): Use `exit' instead of `logout' - the
1587 later fails under non-login shells.
1588 (pipeopen): Redirect stderr of ssh to /dev/null.
1590 (dir_load): Redirect stderr of ls to /dev/null.
1591 (linear_start): Likewise.
1593 2001-05-22 Andrew V. Samoilov <sav@bcs.zp.ua>
1595 * Make-mc.in (mostlyclean): Remove $(VFSSOOBJS).
1596 (clean): Remove *.so.
1598 * smbfs.c: Include utilvfs.h instead of ../config.h, ../src/main.h,
1599 ../src/tty.h and ../src/global.h.
1601 (password, username): Made static.
1602 (is_error): Commented out.
1603 (loaddir_helper): Don't ignore hidden files, style fixes.
1604 (browsing_helper): typestr declared as char *, fstrcpy replaced by =.
1606 (do_connect): Call cli_shutdown() and authinfo_remove() if
1607 cli_session_setup() fails. It is not good idea to remember
1608 wrong username/password.
1610 (smbfs_free_dir): Nested between #ifdef SMBFS_FREE_DIR ... #endif.
1611 (smbfs_readdir): #ifdef SMBFS_FREE_DIR used instead of C comment.
1613 2001-05-22 Pavel Roskin <proski@gnu.org>
1615 * sfs.c (redirect): Don't free the filename after failed
1616 mc_mkstemps() - it's not needed anymore.
1618 2001-05-21 Pavel Roskin <proski@gnu.org>
1620 * direntry.c (vfs_s_open): Use mc_mkstemps. Create and close
1621 temporary file to reserve its name on the filesystem.
1622 (vfs_s_retrieve_file): Use mc_mkstemps().
1623 (g_tempnam): Remove.
1624 * extfs.c (extfs_open): Use mc_mkstemps().
1625 * sfs.c (redirect): Likewise.
1626 * shared_ftp_fish.c (_get_file_entry): Likewise.
1627 (retrieve_file): Likewise.
1628 * vfs.c (mc_def_getlocalcopy): Likewise.
1629 * xdirentry.h: Remove declaration of g_tempnam().
1631 2001-05-18 Pavel Roskin <proski@gnu.org>
1633 * vfs.c (vfs_addstamp): Rename st1 to last_stamp. Initialize it
1634 with NULL to suppress compiler warning.
1636 2001-05-14 Pavel Roskin <proski@gnu.org>
1638 * ftpfs.c: Warning fixes.
1640 * utilvfs.h: Include background.h.
1641 * cpio.c: Include utilvfs.h.
1643 2001-05-14 Pavel Machek <pavel@bug.ucw.cz>
1645 * Make-mc.in: add possibility to build libvfs.so
1647 2001-04-19 Pavel Roskin <proski@gnu.org>
1649 * extfs/rpm (mcrpmfs_list): Use cpio for the listing since the
1650 rpm output varies between versions.
1651 (mcrpmfs_copyout): Fix processing of CONTENTS.cpio. Match
1652 filenames beginning with "./" - they are used in the version 4
1655 2001-04-17 Pavel Roskin <proski@gnu.org>
1657 * fish.c (open_archive_int): Redirect stderr of start_fish_server
1658 to stdout so we don't get confused if it doesn't exist.
1660 2001-04-09 Andrew V. Samoilov <sav@bcs.zp.ua>
1662 * samba/includes/proto.h, samba/libsmb/nterr.c (get_nt_error): return
1663 NULL when suitable error message can't be found as it is expected
1664 in cli_errstr(). Return type changed to const char *
1666 * smbfs.c (smbfs_fill_names): implemented
1668 (smbfs_stat): unneeded g_strdup/g_free calls removed
1669 (smbfs_loaddir): memory leaking fixed
1671 * samba/libsmb/clientgen.c (rap_errmap, prots): constified
1673 2001-04-06 Pavel Roskin <proski@gnu.org>
1675 * Make-mc.in: Use a single variable SAMBA_DIST to hold all
1676 distributable samba files.
1678 2001-03-15 Andrew V. Samoilov <sav@bcs.zp.ua>
1680 * samba/libsmb/smbdes.c: Undefine uchar before redefine it
1682 * smbfs.c (smbfs_close): Honour changed semantics for return value
1683 (on error -1 is expected).
1685 * (fs): It is at least strange use char * for counter. Changed to int
1687 2001-03-14 Pavel Roskin <proski@gnu.org>
1689 * Make-mc.in: Use Automake conditional USE_SAMBA_FS.
1690 Remove any knowledge of SAMBAFILES. Merge object files with
1691 libsamba.a if USE_SAMBA_FS is true. Propagate "mostlyclean"
1692 to the `samba' directory. Don't ignore errors from ranlib.
1694 * samba/Makefile.in: Make *clean targets Automake-compatible.
1695 Don't ignore errors from `rm'.
1697 * samba/configure.in: Use AC_CHECK_TOOL to find AR.
1698 * samba/Makefile.in: Remove useless rules, including defunct
1699 dependency tracking. Create libsamba.a from the object files.
1701 2001-03-07 Pavel Roskin <proski@gnu.org>
1703 * cpio.c (cpio_skip_padding): Warning fix.
1704 * fish.c (dir_load): Likewise.
1707 * extfs/uzip: New file from Oskar Liljeblad.
1708 * extfs/README.uzip: Likewise.
1709 * extfs/Makefile.am: Adjust for constant uzip.
1711 2001-03-07 Pavel Machek <pavel@bug.ucw.cz>
1713 * extfs/*uzip*: replace uzip with perl version by
1714 Oskar Liljeblad <osk@hem.passagen.se>
1716 2001-03-05 Andrew V. Samoilov <sav@bcs.zp.ua>
1718 * vfs.[ch] (vfs_parse_ls_lga, vfs_parse_filemode): p constified
1719 (vfs_strip_suffix_from_filename): filename constified
1720 (vfs_parse_ls_lga): memory leaking fixed when line can't be parsed,
1723 2001-03-04 Andrew V. Samoilov <sav@bcs.zp.ua>
1725 * extfs/patchfs: LANG overrides LC_TIME at least in glibc,
1726 so use LC_ALL=C to override any locale
1727 * smbfs.c (smbfs_open_link): service initialized
1728 * (my_forget): new features of vfs_split_url used
1730 2001-03-01 Pavel Roskin <proski@gnu.org>
1732 * extfs/uzip.in (mczipfs_list): Allow filenames with colons.
1733 Reported by Christian Gennerat.
1735 2001-02-28 Pavel Machek <pavel@bug.ucw.cz>
1737 * vfs.c (mc_def_ungetlocalcopy): Cleanup of error handling.
1739 2001-02-27 Pavel Machek <pavel@bug.ucw.cz>
1741 * vfs.c (mc_ungetlocalcopy): Do not ignore errors. (Courtesy of
1742 "K. Leif D. Van Horn" <leif@kaivo.com>)
1744 2001-02-23 Pavel Roskin <proski@gnu.org>
1746 * extfs/lslR (mclslRfs_list): Don't use gawk-specific features.
1747 Don't hardcode gawk. Don't rely on the date format occupying a
1748 fixed number of fields.
1750 * extfs/uzip.in (mczipfs_list): Don't check zipinfo support on
1751 the real file - check usage info instead. Use more robust checks
1752 for valid lines. Suppress stderr from unzip. Workaround for jar
1753 files - fix mode for files ending with slash.
1755 2001-02-20 Pavel Roskin <proski@gnu.org>
1757 * vfs.h: Include sys/timeb.h if it's present. Include time.h and
1758 sys/time.h as recommended by Autoconf documentation.
1759 * cpio.c: Remove all time-related includes - they are in vfs.h.
1760 * extfs.c: Likewise.
1761 * ftpfs.c: Likewise.
1763 * mcserv.c: Likewise.
1765 * util-alone.c: Likewise.
1766 * vfs.c: Likewise. Include xdirentry.h.
1768 * extfs.c: Include xdirentry.h. Undefine ERRNOR before
1771 2001-02-19 Pavel Roskin <proski@gnu.org>
1773 * shared_tar_ext.c (__find_entry): Make sure that the parent is a
1774 directory even if the child is not.
1776 * extfs/mailfs (parse_date): Correctly handle two-digit years
1777 between 1970 and 1999.
1779 2001-02-14 Pavel Roskin <proski@gnu.org>
1781 * vfs.c (vfs_parse_filedate): Don't reset got_year to 0 while
1782 checking for ctime() format.
1785 2001-02-11 Pavel Roskin <proski@gnu.org>
1787 * extfs/mailfs (parse_date): Workaround for Y2K bugs. Support
1788 for dates found in AOLMail(SM) messages. Accept single-digit
1789 hours and missing seconds. Provide a fallback if cannot parse
1791 (process_header): Typo fix. Use \s instead of space in regular
1794 2001-02-10 Pavel Roskin <proski@gnu.org>
1796 * extfs/uzip.in: Preserve permissions of FAT and NTFS archives,
1797 including the directory bit. This fixes crashes on some FAT
1800 2001-02-09 Pavel Roskin <proski@gnu.org>
1802 * samba/configure.in: Remove more useless tests.
1803 * samba/tests/crypttest.c: Remove.
1804 * samba/tests/fcntl_lock.c: Likewise.
1805 * samba/tests/shared_mmap.c: Likewise.
1806 * samba/tests/sysv_ipc.c: Likewise.
1807 * samba/samba-files: Likewise.
1808 * samba/smbadduser: Likewise.
1809 * Make-mc.in: Adjust for the above.
1810 * samba/include/includes.h: Removed definitions related to the
1813 * Make-mc.in: Eliminate ubiqx.
1814 * samba/Makefile.in: Likewise. Remove some unused variables.
1815 * samba/include/includes.h: Eliminate dependency on ubiqx.
1816 * samba/include/nameserv.h: Likewise.
1817 * samba/include/proto.h: Remove prototypes from nmbd/*.
1818 * samba/ubiqx/*: Remove.
1820 * samba/configure.in: More useless stuff removed.
1821 * samba/Makefile.in: Likewise.
1822 * Make-mc.in: Remove samba/smbwrapper directory.
1823 * samba/smbwrapper/smbw.h: Remove.
1824 * samba/include/includes.h: Don't include smbw.h.
1826 * samba/configure.in: Don't check for things that are unused.
1827 Remove support for building shared libraries.
1828 * samba/Makefile.in: Remove support for shared libraries and
1831 * samba/configure.in: Don't check for any 64-bit functions and
1832 syscall() - they are not needed.
1834 * samba/configure.in: Remove the test for
1835 HAVE_EXPLICIT_LARGEFILE_SUPPORT, since it's incompatible with
1836 the rest of the source that doesn't use explicit 64-bit calls.
1838 * Make-mc.in: Always check for samba/Makefile before descending
1839 there. Don't ever ignore errors from "cd". Use $(MAKE), not
1840 make. Formatting changes.
1842 2001-02-08 Pavel Roskin <proski@gnu.org>
1844 * Make-mc.in: Undo previous fix. Don't run "make clean" in
1845 samba/ if samba/Makefile is missing.
1847 * Make-mc.in: Don't run "make clean" in samba/ as samba/Makefile
1848 may be missing. Clean using the rule from samba/Makefile.in.
1850 * cpio.c: Eliminate C++ comments.
1853 * Make-mc.in: Use mkinstalldirs to create $(distdir)/extfs,
1854 since CVS Automake already creates that directory.
1856 * Make-mc.in: Don't add _LARGEFILE64_SOURCE to CFLAGS without
1857 testing - it breaks on HP-UX 10.20.
1859 2001-02-07 Pavel Roskin <proski@gnu.org>
1861 * Make-mc.in: Don't distribute samba/tests/trapdoor.c and
1862 samba/tests/ftruncroot.c.
1864 * samba/configure.in: Remove tests for setresuid and setresgid.
1865 * samba/include/includes.h: Remove declarations of setresuid and
1868 * samba/configure.in: Don't check for root permissions. Don't
1869 call tests/trapdoor.c and tests/ftruncroot.c.
1870 * samba/tests/trapdoor.c: Remove.
1871 * samba/tests/ftruncroot.c: Likewise.
1872 * samba/tests/summary.c: Don't warn about trapdoor uid systems.
1874 * Make-mc.in: Don't link container.o into libvfs-mc.a - it's
1877 * samba/aclocal.m4: Fix underquoting.
1878 * samba/configure.in: Fix underquoting. Don't use loff_t as the
1879 second argument to AC_CHECK_TYPE - it's not a builtin type.
1881 * samba/configure.in: Remove checks for statvfs and friends -
1882 they are irrelevant to the client code.
1883 * samba/tests/summary.c: Likewise.
1885 2000-12-15 Andrew V. Samoilov <sav@bcs.zp.ua>
1887 * extfs/urar.in (list): better solution to prevent duplication
1889 2000-12-14 Andrew V. Samoilov <sav@bcs.zp.ua>
1891 * extfs/urar.in (LC_ALL): set to C to prevent localization,
1892 (mcrarfs_list): directories placed first to prevent duplication
1894 2000-10-31 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
1896 * ftpfs.c (dir_load): From Roland Mainz
1897 <Roland.Mainz@informatik.med.uni-giessen.de>: add '.' and '..'
1900 * *.c: From Roland: it is not possible to g_free() something
1901 allocated by strdup(), because g_malloc might be different for
1902 malloc. Therefore wrapped strdup into g_strdup() wrapper.
1904 2000-10-22 Andrew V. Samoilov <sav@bcs.zp.ua>
1906 * samba/libsmb/nterr.c (nt_errs): constified
1908 * samba/libsmb/smberr.c (dos_msgs, server_msgs, hard_msgs,
1911 (smb_errstr): err constified to avoid warnings
1913 2000-10-16 Andrew V. Samoilov <sav@bcs.zp.ua>
1915 * ftpfs.c (open_data_connection): don't generate //filename, some
1916 ftp servers can't store it;
1918 (command): g_strdup_vprintf() and g_strconcat() replaced
1919 by g_strdup_vprintf(), g_realloc() and strcpy()
1920 to reduce memory usage when trailing "\r\n" added;
1922 (ftpfs_set_debug, ftp_data): ftp_data.logfile assigned with logfile
1923 value to log servers replies
1925 2000-10-09 Andrew V. Samoilov <sav@bcs.zp.ua>
1927 * sfs.c (redirect): temporary file unlinked on error;
1929 (sfs_init): warnings are localized
1931 2000-10-05 Pavel Roskin <proski@gnu.org>
1933 * extfs/rpm: If rpm indicates an error create a virtual file
1934 ERROR and put error messages there.
1936 2000-09-25 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
1938 * extfs/mcunarj.diff: better version from Christian Gennerat
1939 <christian.gennerat@vz.cit.alcatel.fr>
1941 2000-09-21 Pavel Roskin <proski@gnu.org>
1943 * extfs/uzoo.in: Suppress output from grep. Don't use '~',
1944 use $HOME instead - it's more portable.
1946 2000-08-24 Pavel Roskin <proski@gnu.org>
1948 * extfs/Makefile.am: all scripts should be executable
1950 2000-09-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
1952 * extfs/patchfs (LC_TIME): patch by Martin Bialasinski:
1953 override locale for dates
1955 2000-09-14 Pavel Machek <pavel@bug.ucw.cz>
1957 * vfs.c, extfs/{a,extfs.ini}: Improved /#a filesystem
1959 2000-09-14 Pavel Roskin <proski@gnu.org>
1961 * Make-mc.in: direntry.c was listed twice in VFSSRCS
1963 * Make-mc.in: removed commands to build standalone libvfs -
1964 they are now in Makefile.am. Create links in the build
1965 directory - source directory may be read-only. Removed hack
1966 with mcservx - it's no longer needed.
1968 * ftpfs.h: include "xdirentry.h" instead of "vfs/xdirentry.h"
1970 2000-09-05 Pavel Roskin <proski@gnu.org>
1972 * Make-mc.in: don't ignore errors in the distdir target
1974 2000-08-24 Pavel Roskin <proski@gnu.org>
1976 * extfs/Makefile.am: new file
1977 * Make-mc.in: remove stuff pertinent to the extfs directory
1979 2000-08-24 Pavel Roskin <proski@gnu.org>
1981 * Make-mc.in: don't ignore error installing mcserv.
1982 Create directories before installing into them.
1984 2000-08-18 Pavel Roskin <proski@gnu.org>
1986 * Make-mc.in: adjusted lists of distributed files.
1987 Makefile rebuilding fixed.
1989 2000-08-08 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
1991 * ftpfs.c (dir_load): taken it out, it needs to correctly provide
1992 parent, this way it breaks things.
1994 * uzip.in: change by Dmitry Borodaenko <d.borodaenko@belcaf.com> to
1995 display zip files in fat and ntf formats
1997 2000-08-04 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
1999 * ftpfs.c (dir_load): add . and .. to ftpfs listings, courtesy of
2000 Roland.Mainz@informatik.med.uni-giessen.de
2002 * util-alone.c (message_1s1d): added missing function
2004 2000-08-03 Pavel Roskin <proski@gnu.org>
2006 * undelfs.h: Removed
2008 2000-08-02 Pavel Roskin <proski@gnu.org>
2010 * Make-mc.in: Filters apt, audio, deba, debd and dpkg are now
2011 distributed. Added some comments to prevent future errors.
2012 "make distclean" now cleans generated filters.
2014 * samba/configure.in: Fixed sloppy output. The fix also sent to
2017 * samba/include/stamp-h.in: Added to CVS.
2019 2000-05-23 Andrew V. Samoilov <sav@bcs.zp.ua>
2021 * vfs.c (mc_[un]def_getlocalcopy): better error handling on writing
2023 2000-05-18 Andrew V. Samoilov <sav@bcs.zp.ua>
2025 * ftpfs.c: (my_get_host_and_username) space between macro name and
2028 2000-05-15 Andrew V. Samoilov <sav@bcs.zp.ua>
2030 * tar.c (read_header): memory leaking for empty symlink's names fixed
2032 * utilvfs.c (vfs_split_url): *host is not assigned if host is null
2034 * ftpfs.c (login_server): new features of vfs_split_url () used,
2035 my_get_host_and_username became macro
2037 * vfs.c (mc_opendir, mc_chdir): unneeded calls to concat_dir_and_file
2038 removed (vfs_canon removes trailing '/')
2040 * sfs.c (vfmake, redirect): allocated memory realeased on errors
2042 2000-05-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2044 * direntry.c (vfs_s_new_inode): Do not leave st_nlink uninitialized.
2046 2000-05-08 Valery Kornienkov <vlk@dimavb.st.simbirsk.su>
2048 vfs/extfs/uha.in: add HSC type archives
2050 2000-05-01 Pavel Machek <pavel@bug.ucw.cz>
2052 * direntry.c (vfs_s_inode_from_path): fix for stating / directory
2055 * vfs.c: == 0 is right test of eof.
2057 2000-04-28 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2059 * direntry.c (vfs_s_internal_stat): added ugly special case for /
2060 of archive to always exist. It seems I'm hiding some underlying
2063 2000-04-26 Andrew V. Samoilov <sav@bcs.zp.ua>
2065 * direntry.c (vfs_s_find_entry_tree): segfault fixed when root is NULL
2067 (vfs_s_new_inode, vfs_s_new_entry): g_new replaced by g_new0
2069 * ftpfs.c (dir_load): ent->name is free()d for "." and ".."
2071 (ftpfs_directory_timeout): default value changed to 900
2073 (netrc_next): "const char * const keywords" go to rodata and is shared
2075 2000-04-16 Pavel Machek <pavel@bug.ucw.cz>
2077 * vfs.c (vfs_type): FL_NO_LOCALHASH for prevention of obscure
2078 deadlocks with podfuk
2080 * direntry.c: fix behaviour when stating / directory of ftp
2083 2000-04-15 Timur Bakeyev <mc@bat.ru>
2085 * ftpfs.c (netrc_next): "const char * keywords" is pretty nice.
2087 * ftpfs.c (dir_load): At last, found place, that broke handling
2088 directories with spaces in name. Problem was in prepending "/"
2089 to "." for current directory. Which was, obviously, wrong. Hacked
2090 to make just "LIST -la ." instead.
2092 2000-04-12 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2094 * extfs/lslR.in: Patch by tnovak@ipex.cz: allow spaces in filenames
2096 2000-04-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2098 * extfs/audio: Added a way to browse audio CDs conviently
2100 * undelfs.c: use NULLs instead of 0s when you assign to pointers!
2102 2000-04-05 Andrew V. Samoilov <sav@bcs.zp.ua>
2104 * utilfs.c (vfs_split_url): Don't assign *pass if pass is NULL
2105 * fish.c (archive_open, archive_same): memory allocated by
2106 vfs_split_url() must be released after use, don't strdup()
2107 values allocated by vfs_split_url() and NULL passed to
2108 vfs_split_url() when password value is unused
2109 * ftpfs.c (archive_open, archive_same): ditto plus same for
2110 ftpfs_get_proxy_host_and_port()
2112 2000-04-06 Timur Bakeyev <mc@bat.ru>
2114 * ftpfs.c (netrc_next): Turned strange "const char * const
2115 keywords" into more alike "const char const * keywords". Still,
2116 think, it's too strict.
2118 * smbfs.c: Add #define BOOL_DEFINED before inclusion of samba
2119 headers. Libncurses(or slang?) defines BOOL and that can cause
2120 problems. (In fact, I can't find references to that const, but
2121 sure, I hade reason to do that:)
2123 * util-alone.h: Declare load_anon_passwd() to avoid warnings.
2125 2000-03-31 Andrew V. Samoilov <sav@bcs.zp.ua>
2127 * vfs.c (mc_def_getlocalcopy): free() replaced by g_free() to prevent
2128 crashes with mad, thanks to Timur I. Bakeyev <timur@bat.ru>
2129 * fish.c (linear_start): Name wasn't freed after usage.
2130 * cpio.c (cpio_ungetlocalcopy): Return type changed to int,
2131 function return 0 now.
2132 * direntry.c (vfs_s_close, vfs_s_resolve_symlink): Memory allocated
2133 by vfs_s_fullpath() is freed after use.
2134 * ftpfs.c (linear_start): Ditto.
2136 2000-04-03 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2138 * ftpfs.c (send_ftp_command): return from vfs_s_get_path_mangle is
2139 not strdupped(), so it must not be g_free'd.
2141 2000-03-29 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2143 * fish.c: Patch by <rebel@atrey.karlin.mff.cuni.cz>: make
2144 fish work better with files files like "this is sentence"
2146 2000-03-28 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2148 * extfs/*rpm: Patch by <rebel@atrey.karlin.mff.cuni.cz>: set
2149 locale to C so that rpm does not confuse us
2151 2000-03-06 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2153 Patch by Andrew V. Samoilov <sav@bcs.zp.ua>
2155 * vfs.c (vfs_parse_ls_lga): Don't hard code st_ino and st_dev to
2156 0's, these variables must be assigned in vfs_s_new_inode() or
2157 extfs layer, so ftpfs subdirectories now can be copied.
2159 2000-02-25 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2161 Patch by Andrew V. Samoilov <sav@bcs.zp.ua>
2163 * vfs.[ch] (vfs_canon, mc_open, vfs_file_is_local,
2164 mc_(un)?getlocalcopy): added const qualifier
2165 (mc_def_getlocalcopy): tempnam() returns malloc()ed buffer,
2166 so, free() it, not g_free();
2167 (vfs_canon): prepend filename by cwd when tilde '~' cannot be expanded;
2169 2000-02-23 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2171 * cpio.c: cpio.h is missing, so don't try to include it. (It is
2172 not needed, anyway. Strange.)
2174 * Makefile.in (NONETFILES): cpio added to compilation list
2176 2000-02-23 Norbert Warmuth <nwarmuth@privat.circular.de>
2178 * ftpfs.c: Definition of PORT changed in the middle of ftpfs.c
2179 with unexpected side effects (only when HSC_PROXY was
2180 defined). Introduce HSC_PROXY_PORT and FTP_COMMAND_PORT and use
2183 (dir_load): Do not hard code the directory cache timeout to 10
2184 seconds. Instead use the setting from Options/Virtual VFS ...
2186 * fish.c (file_store): honour changed semantics for return value
2187 (on error -1 is expected).
2189 * ftpfs.c (file_store): dito
2191 2000-02-22 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2193 * cpio.c: added. Thanx to Jan Hudec <bulb@centrum.cz>, who wrote
2194 it using code from tarfs.
2196 2000-02-21 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2198 * extfs/uzip.in (nam): y2k fixes (workarounds) by
2199 christian.gennerat@vz.cit.alcatel.fr
2201 2000-02-04 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2203 * ftpfs.c (ftpfs_unlink, *): prepend / so that it actually works
2205 2000-02-03 Andrew V. Samoilov <sav@bcs.zp.ua>
2207 * xdirentry.h: added prototype for vfs_s_retrieve_file
2209 2000-01-31 Andrew V. Samoilov <sav@bcs.zp.ua>
2211 * direntry.c: (vfs_s_resolve_symlink, vfs_s_readlink) fixed segfaults
2212 for broken symlinks like 2001 -> The Space Oddysea.
2214 2000-01-24 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2216 * ftpfs.c: vfs semantics has some problems with ~s. What will
2217 happen if we just don't go to home directory of user? (We used to
2218 have /#ftp:hobit/~/ mean home directory of anonymous at
2219 hobit. Thats pretty broken.)
2221 * direntry.c (vfs_s_find_entry_linear): don't sleep after showing
2224 * ftpfs.c: cosmetic fixes by Andrew V. Samoilov
2226 2000-01-18 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2228 * ftpfs.c: cosmetic fixes + killed ugly infinite loop, patch
2229 from Andrew V. Samoilov
2231 2000-01-13 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2233 * extfs.c (extfs_chdir): removed unneeded statment, plus applied
2234 cosmetics fixes from Andrew V. Samoilov
2236 2000-01-02 Martin Bialasinski <martin@internet-treff.uni-koeln.de>
2238 * extfs/deb.in: Change to the deb vfs. tar has changed, and
2239 depending on the version, it saves files as "./filename" or
2242 * From debian: added deba, debd, dpkg, apt script file systems.
2244 1999-12-28 Andrew V. Samoilov <sav@bcs.zp.ua>
2246 * vfs.c (vfs_parse_filedate): don't decode last columns as year
2249 1999-12-21 Pavel Roskin <pavel_roskin@geocities.com>
2251 * vfs/vfs.h: use #warning only for gcc. Not all compilers
2254 1999-12-15 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2256 * Merged changes by Andrew V. Samoilov <sav@bcs.zp.ua>. They are
2257 mostly internationalization + fixing stupid bugs of mine
2259 1999-12-08 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2261 * ftpfs.c: basically replaced ftpfs with new one. Unlike the
2262 previous one, this uses new direntry.c layer, so shared_ftp_fish.c
2265 This is new code, so beware.
2267 1999-11-11 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2269 * shared_ftp_fish.c (s_ungetlocalcopy): need to supply some return
2270 value, too. This code is going to be killed, the sooner the better.
2272 * *.c (mc_[un]getlocalcopy): we really need some return value,
2273 because we can have errors
2275 * fish.c: don't use directory expiration, it does not work,
2276 use retrieve_file from direntry.c
2279 1999-02-17 Pavel Machek <pavel@bug.ucw.cz>
2281 * direntry.c (vfs_s_getlocalcopy): fixed segfault, getlocalcopy's
2282 name has to be malloced.
2284 1999-10-07 Miguel de Icaza <miguel@gnu.org>
2286 * ftpfs.c (linear_read): Applied patch from Alexander V. Lukyanov
2287 <lav@yars.free.net> that makes the code compliant to RFC959
2289 1999-08-30 Miguel de Icaza <miguel@gnu.org>
2291 * ftpfs.c (insert_dots): Use g_new here.
2293 * shared_ftpfs_fish.c: Style fixes and small fixes
2295 1999-09-22 Bjorn Eriksson <mdeans@algonet.se>
2297 * extfs/uzip.in: Better handling of zip-archives that contain files
2298 which contain spaces.
2300 1999-09-19 Norbert Warmuth <nwarmuth@privat.circular.de>
2302 * ftpfs.c (ftpfs_set_debug), vfs.h: added const qualifier.
2304 * mcserv.c: removed definition of mad_strconcat which is also
2307 1999-09-17 Federico Mena Quintero <federico@redhat.com>
2309 * smbfs.c: #define NO_CONFIG_H before including the samba
2310 includes; this way it will not re=define HAVE_LIBREADLINE. This
2311 situation sucks. Should we change the names of the widget.h
2312 history_*() functions?
2314 1999-09-14 Norbert Warmuth <nwarmuth@privat.circular.de>
2316 * smbfs.c (various places): Store filenames in memory with the unix
2317 character set and convert it back to the dos character set when
2318 filenames are passed back to the samba server. If samba is configured
2319 correctly this will fix the problems with filenames which contain
2320 national characters.
2322 (bucket_set_authinfo): Set domain, username and password which will
2323 be used to log on and authenticate against the samba server and remember
2324 this information on a host/share basis. If set use PASSWD to get the
2325 password. If already authenticated against the host and share use this
2326 information. If already authenticated against host and IPC$ use this
2327 information. If neither of the former is true ask the user how to
2330 (authinfo_get_authinfo_from_user): New function. Query the user for
2331 domain, username and password to use for authentication.
2333 (authinfo_free): New function. Free memory in authentication structure.
2335 (authinfo_free_all): New function. Free the list used to remember
2336 authentication information.
2338 (authinfo_compare_host_and_share, authinfo_compare_host): New functions.
2339 Helper functions used to search the authentication list.
2341 (authinfo_add): New function. Add one authentication entry to the
2344 (authinfo_remove): New function. Remove one entry from the authlist.
2346 (free_bucket): Free memory associated with one bucket.
2348 (smbfs_get_free_bucket): Initialize the complete connection array
2349 with 0. Free the memory allocated for a bucket and initialize the
2350 bucket before reusing it.
2352 (smbfs_open_link): use new functions to get authentication information
2354 (get_stat_info, smbfs_stat): remove unused variables.
2356 1999-08-31 Federico Mena Quintero <federico@redhat.com>
2358 * extfs/uzip.in: Handle filenames with spaces better. Thanks to
2359 Spyridon Papadimitriou <Spyridon_Papadimitriou@gs91.sp.cs.cmu.edu>
2362 1999-08-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
2364 * ftpfs.c (translate_path): Remove static buffer from here.
2365 Return a strdupped string now.
2366 (send_ftp_command): Release translate_path result here.
2367 (open_data_connection): Release translate_path result here.
2368 (ftpfs_chdir_internal): Release it here too.
2370 1999-08-30 Norbert Warmuth <nwarmuth@privat.circular.de>
2372 * shared_ftp_fish.c (get_line): Fixed off by one error ('\0' might
2373 have been written one slot past the supplied character array).
2375 * ftpfs.c (resolve_symlink_without_ls_options): Don't dump core on
2376 strange symlinks (ls -la doesn't reveal where the symlink points to
2377 and ls -lLa doesn't resolve the symlink either)
2379 Added protection against recursive symbolic links.
2381 1999-08-19 Norbert Warmuth <nwarmuth@privat.circular.de>
2383 * smbfs.c: added missing include file
2385 (browsing_helper): use g_strdup instead of g_new + pstrcpy
2386 (Btw. this is an example why the handholding of smblib gives a
2387 false security feeling. pstrcpy limits the number of characters
2388 copied and is used with a buffer which is smaler than the hard
2389 coded limit in pstrcpy)
2390 (loaddir_helper): ditto
2391 (server_browsing_helper): ditto
2393 (get_remote_stat): fixed memory leaks
2394 (smbfs_loaddir): ditto
2395 (get_stat_info): ditto
2398 (convert_path): rewritten, now it's much cleaner what it does.
2399 This rewrite was necessary because gcc -O2 choked on glibc 2.1
2400 systems. In that combination strncat is a macro which expands to
2401 strlen and strcat and in vfs/samba/include/includes.h the latter is
2402 defined to __ERROR__XX__NEVER_USE_STRCAT___;.
2404 1999-08-18 Norbert Warmuth <nwarmuth@privat.circular.de>
2406 * direntry.c (vfs_s_getlocalcopy): There's an aditional strdup
2407 needed. In rare cases a pointer was freed twice. Pavel Machek
2408 pointed this out a while ago but obviously it hasn't been fixed yet.
2410 * sfs.c (vfmake): Quote characters with a special meaning to the
2411 shell in filenames/-pathes (Fix Bug #1931, VFS will not work if
2412 your full path has the space character in it.).
2414 1999-08-17 Kjartan Maraas <kmaraas@online.no>
2418 1999-08-15 David Martin <dmartina@usa.net>
2420 * vfs.c (vfs_print_stats): Translate vfs stats
2422 * shared_ftp_fish.c (s_read, s_lseek): Mark strings for translation
2424 * fish.c: Translate messages
2426 1999-08-06 Norbert Warmuth <nwarmuth@privat.circular.de>
2428 * tar.c (read_header): Don't segfault when a symlink points to the
2431 1999-08-01 Norbert Warmuth <nwarmuth@privat.circular.de>
2433 * vfs.c: Don't close a function definition with "};". SunCC from
2434 2.5.1 chokes on the extra semicolon
2436 (mc_munmap): Don't dereference function pointer when checking for
2437 NULL (this check is supposed to prevent a segfault instead of
2438 causing one). This haven't got noticed up to now becaue there's no
2439 file system with mmap but without munmap.
2441 Tue Jul 6 11:22:40 1999 Timur I. Bakeyev <mc@bat.ru>
2443 * samba/include/config.h: Removed. Should be generated.
2445 Tue Jul 6 11:18:45 1999 Timur I. Bakeyev <mc@bat.ru>
2447 * Make-mc.in(XCPPFLAGS): Add necessary paths to allow compile sambafs
2448 when builddir != srcdir. Removed some junk after not coherent patching.
2450 1999-07-04 Federico Mena Quintero <federico@nuclecu.unam.mx>
2452 * Make-mc.in (distcopy): Added a bunch of new lists of files for
2453 the directories in vfs/samba. Use them in this rule, because
2454 plain wildcards will not work right.
2455 (SAMBA_DIST_TOPLEVEL): Added configure to the list of distributed
2457 Added smbfs.[ch] to the list of sources.
2459 1999-07-02 Tuomas J. Lukka <lukka@iki.fi>
2461 * Make-mc.in: $SAMBAFILES -> @SAMBAFILES@ in the rule
2462 as well as the dependencies.
2464 1999-06-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
2466 * smbfs.c (get_remote_stat): Change debug level.
2468 (get_stat_info): 2 line fixes from Wayne to check the
2469 cache properly. WOOOOHOOOO! Works like a charm.
2471 1999-06-14 Wayne Roberts <wroberts1@cx983858-b.orng1.occa.home.com>
2473 * vfs/smbfs.c: New file. Implements the Samba-based file system.
2475 * vfs/vfs.h: Declare vfs_smbfs_ops, vfs_file_is_smb.
2477 * vfs/vfs.c (vfs_file_is_smb): implemented.
2478 (vfs_init) register smbfs.
2480 * vfs/samba: Incorporate SAMBA source code required for smbfs
2482 Fri Jun 18 11:49:05 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2484 * ftpfs.c (resolve_symlink_with_ls_options): Some ftp servers don't
2485 make a difference between "LIST -la" and "LIST -lLa". If we find such
2486 a server don't use -lLa when resolving symbolic links.
2488 1999-05-12 Christian GENNERAT <christian.gennerat@alcatel.fr>
2490 * urar.in, uzip.in: patches to use in #urar and #uzip the new features
2491 added in mc-4.5.31 (unlink, mkdir, rmdir)
2493 1999-04-30 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2495 * extfs/deb.in (mcdebfs_run): Quote string properly, fix suggested
2498 1999-04-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
2500 * extfs/uzip.in (nam): Handle new unzips.
2502 Fri Apr 23 21:02:32 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2504 * ftpfs.c (retrieve_dir): If we don't get any valid directory entry
2505 (i.e. not even "." and "..") check whether the directory is empty
2506 or not existend (instead of failing with "ftpfs: failed").
2508 1999-04-23 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2510 * vfs.c (vfs_parse_filemode): fix for solaris which uses 'l'
2512 (vfs_parse_ls_lga): do not silently ignore parsing errors.
2514 Wed Apr 21 21:59:50 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2516 * extfs.c (extfs_open): tempnam returns a malloced string, no need
2519 (various places): use free instead of g_free to free string returned
2522 1999-04-21 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2524 * urar.in, uzip.in: rolled in patches from "christian.gennerat"
2525 <christian.gennerat@vz.cit.alcatel.fr> for better handling of
2526 spaces and copyin-feature-addon.
2528 1999-04-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
2530 * extfs.c (get_path_from_entry): Fix a crash here.
2532 1999-04-12 Andrew T. Veliath <andrewtv@usa.net>
2534 * extfs.c (extfs_unlink):
2537 (remove_entry): New functions.
2538 (vfs_extfs_ops): Add unlink, mkdir and rmdir functions to table.
2539 Add descriptions for these to the extfs README.
2541 1999-04-12 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2543 * Make-mc.in (DISTVFS): try to distribute files needed for
2544 building libvfs.so alone
2545 (EXTFS_MISC): include uarj and unarj.diff in distribution
2547 1999-04-08 Owen Taylor <otaylor@redhat.com>
2549 * extfs/deb.in extfs/ulha.in extfs/ucpio.in: Fix
2550 up "TMP RACE" comments so they are at least secure,
2551 if not terribly robust.
2553 1999-03-31 Serge Winitzki <swinitzk@hotmail.com>
2555 * added copy_in capability to mtools filesystem
2557 1999-03-30 Federico Mena Quintero <federico@nuclecu.unam.mx>
2559 * vfs.c (vfs_add_current_stamps): Only do stamping of the panels
2562 * mcserv.c: #include <sys/wait.h>
2563 (get_client): Put `#ifdef __EMX__' around an otherwise-unused
2566 * utilvfs.c (vfs_split_url): Fix NULL <-> 0 confusion when
2567 comparing characters.
2569 * ftpfs.c (retrieve_dir): Removed unused variable dot_dot_found.
2571 * extfs.c (extfs_init): Assign `key' to c, not `&key'.
2573 Sun Mar 28 23:50:47 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2575 * vfs.h (vfs_translate_url): Fixed the macro which is used when
2576 compiling without vfs.
2578 1999-03-22 David Martin <dmartina@mailexcite.com>
2580 * ftpfs.c: Internationalize the messages that are displayed as
2583 1999-03-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
2585 * extfs.c (extfs_init): Fix the code here: If the key is empty or
2586 only contains a new line, C would be pointing into an invalid location.
2588 Mon Mar 22 02:56:23 1999 Timur I. Bakeyev <mc@bat.ru>
2590 * Makefile-mc.in: s/$(libdir)\/extfs/$(extfsdir)/
2592 Mon Mar 22 02:00:16 1999 Valery Kornienkov <vlk@st.simbirsk.su>
2594 * extfs/uha.in: Add support for ha archives.
2596 1999-03-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
2598 * vfs.c (vfs_parse_ls_lga): Handle stupid servers that send n_link
2601 1999-03-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
2603 * vfs.h: Make it compile in AIX. Boy do those guys polute the
2606 1999-03-09 Shooby Ban <bansz@szif.hu>
2608 * extfs/extfs.ini: Corrected rpms -> rpms:
2609 by Balazs Nagy <julian7@kva.hu>
2611 1999-03-09 Miguel de Icaza <miguel@nuclecu.unam.mx>
2613 * vfs.c (parse_ls_lga): kill the messages on each error.
2615 Tue Feb 16 12:11:04 1999 Paul Sheer <psheer@obsidian.co.za>
2617 * mcserv.c, mcfs.c: mcserv and mcfs exchange st_dev instead
2618 of st_rdev. This makes stats on device files useless. Fixing
2619 this does not break anything, but adds the ability to copy
2620 device files properly. Ideally, both st_dev and st_rdev should
2621 be returned for those programs that use the vfs to properly
2622 recreate hardlinks. Whose idea was it to only return one of
2625 1999-02-12 Sergey Korshunoff <seyko@p5.f434.n5020.z2.fidonet.org>
2627 * unlha.in: Fix the problem of having incorrect pathnames when
2628 pulling out files from the LHA file.
2630 Sat Feb 6 23:44:28 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2632 * tar.c (read_header): Treat hardlinks correctly.
2634 Mon Feb 1 19:32:12 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2636 * ftpfs.c (insert_dots): renamed from insert_dot. We have to
2637 insert ".." as well or directories from ftp servers which don't
2638 list "." and ".." are displayed with an additional "/".
2640 Mon Feb 1 02:55:07 1999 Timur I. Bakeyev <mc@bat.ru>
2642 * tcputil.c: One more my bug with '\0' -> NULL. Oops..
2644 Mon Feb 1 01:45:08 1999 Timur I. Bakeyev <mc@bat.ru>
2646 * mcserv.c: If setuid() is avaliable, use it, even, streuid() also
2647 present. (BTW, bsdi uses it's own auth system..)
2649 Sun Jan 31 20:51:17 1999 Alexander Savelyev <fano@vcom.kiev.ua>
2651 * mcserv.c (do_auth): mcserv never auth properly on bsdi.
2652 (mc/vfs/mcserv.c do_auth() on bsdi we must use setuid() not
2655 * tcputil.c: use correct signal handler (void func(int)) on BSDI
2657 Sun Jan 31 20:41:00 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2659 * mcserv.c (do_link): Removed duplicate invokation of link. Thanks
2660 to Grzegorz Makarewicz <mak@mikroplan.com.pl> for spotting this.
2662 Sun Jan 31 20:04:13 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2664 * vfs.c (vfs_strip_suffix_from_filename): Whoever replaces every
2665 occurance of 0 with NULL should stop this stupidy. And replacing
2666 '\0' with NULL is plan wrong!!. Reverted this replacement.
2668 * ftpfs.c (load_no_proxy_list): ditto
2670 Sun Jan 31 19:57:24 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2672 * ftpfs.c (insert_dot): New function. Insert a "." into the linked
2673 list. Stat'ing the root directory of a ftpfs fails if the dot is
2676 (retrieve_dir): insert "." into the linked list if the ftp server
2679 Sun Jan 31 19:50:24 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2681 * The following changes make ftpfs work with a remote AmiTCP
2682 server are the result of somehow longish EMail debugging session. I
2683 don't know any public server of this kind but I was told the
2684 combination Unix/Amiga boxes are often used in intranets.
2686 * ftpfs.c (translate_path): New function. Translate a Unix path,
2687 i.e. MC's internal path representation (e.g. /somedir/somefile) to
2688 a path valid for the remote server. Every path transfered to the
2689 remote server has to be mangled by this function right prior to
2690 sending it. Currently only Amiga ftp servers are handled in a
2693 * ftpfs.c (various places): use translate_path
2695 * ftpfs.c (login_server): Assume we have to mangle pathnames if
2696 the greatings string from the server contains the word Amiga. If
2697 this assumption is wrong I have to find another way to turn on
2700 * ftpfs.c (ftpfs_get_current_directory): Prepend a leading slash
2701 if it is missing. MC needs it as seperator between hostname and
2702 path in its internal url representation.
2704 1999-01-26 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
2706 * vfs.c (vfs_parse_ls_lga): attempt to correctly work against
2709 Wed Jan 27 03:09:48 1999 Timur I. Bakeyev <mc@bat.ru>
2711 * All around the source: Changed copy_strings() to g_strconcat(). Modi-
2712 fy last parameter in concat_dir_and_file() to "" - to prevent stack from
2715 1999-01-25 Federico Mena Quintero <federico@nuclecu.unam.mx>
2717 * Makefile.am (libvfs_la_SOURCES): Added utilvfs.h.
2718 * Make-mc.in (VFSHDRS): Likewise.
2720 Sat Jan 23 18:40:19 1999 Timur I. Bakeyev <mc@bat.ru>
2722 * utilvfs.c (append_path_sep): Removed - concat_dir_and_file(dir, NULL);
2723 gives the same effect.
2725 1999-01-21 Federico Mena Quintero <federico@nuclecu.unam.mx>
2727 * utilvfs.c (append_path_sep): Fixed, it was broken for paths
2728 which already have a / at the end.
2730 Fri Jan 22 01:41:25 1999 Timur I. Bakeyev <mc@bat.ru>
2732 * undelfs.c: Found one more unconverted realloc() call.
2734 1999-01-20 Miguel de Icaza <miguel@nuclecu.unam.mx>
2736 * undelfs.c (undelfs_loaddel): Fix Timur's changes.
2738 Thu Jan 21 00:58:12 1999 Timur I. Bakeyev <mc@bat.ru>
2740 * Actually commit all changes :>
2742 Tue Jan 19 05:15:49 1999 Timur I. Bakeyev <mc@bat.ru>
2744 * Converted all occurences of DIR_SEP_CHAR and "/" to PATH_SEP and
2745 PATH_SEP_STR. Additionall cleanups of the memory code.
2747 * utilvfs.h: Added several defenitions for common sizes for buffers.
2748 It seems, most of us experience problems, when inventing size for new
2749 buffer. This is much better and portable way to eliminate the problem.
2751 1999-01-18 Miguel de Icaza <miguel@nuclecu.unam.mx>
2753 * vfs.h: The correct thing to use is PATH_SEP and PATH_SEP_STR
2755 Sun Jan 17 16:19:48 1999 Timur I. Bakeyev <mc@bat.ru>
2757 * Converted memory managment to Glib. Now we use g_new()/g_malloc()/
2758 g_strdup()/g_free() routings. Also, copy_strings() replaced by
2759 g_strconcat(), and sprintf() by g_snprintf().
2761 * utilvfs.h: New header file. Introduced as a stock header, which keeps
2762 all includes in a right order, to avoid order-dependence mistakes.
2764 Sun Jan 17 15:49:39 1999 Paul Sheer <psheer@obsidian.co.za>
2766 * direntry.c: vfs_s_find_entry_tree changed to follow
2767 symlinks properly. Symlinks are now always followed
2768 except for the last part of the filename.
2769 vfs_s_resolve_symlink() now converts absolute paths to
2770 ../../file notation so that they can be easily resolved
2773 * tar.c: . and .. are missing from directory entries,
2774 making it impossible to resolve links - fixed.
2776 1999-01-12 Miguel de Icaza <miguel@nuclecu.unam.mx>
2778 * vfs.c (mc_get_current_wd): Do not die. Truncate the pathname.
2780 1999-01-10 Miguel de Icaza <miguel@nuclecu.unam.mx>
2782 * sfs.c (redirect): tempnam returns a malloc()ed buffer.
2784 Sat Jan 9 19:15:00 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2786 * vfs.c (vfs_timeout_handler): Guard from recursive invocation.
2788 Sat Jan 9 19:13:28 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
2790 * sfs.c (sfs_free): Fixed wrong linked list handling (head was
2791 lost after the first iteration).
2793 (sfs_getid): dito, return value was wrong.
2795 Sat Jan 9 22:49:02 1999 Timur I. Bakeyev <mc@bat.ru>
2797 * vfs.c (parse_ls_lga): Rewrite function to make it more stright.
2798 Also, fixed some bugs in parsing (and add new ones:), which diasallowed
2799 proper parsing of device major and minor numbers. Some other fixes. Add
2800 several new is_*() functions to make code readable.
2802 1999-01-08 Ilya Zakharevich <ilya@math.ohio-state.edu>
2804 * vfs.h (vfs_strip_suffix_from_filename): Typo fix. Include
2805 defines for non-vfs compilation.
2807 Fri Jan 8 20:03:36 1999 Andrej Borsenkow <borsenkow.msk@sni.de>
2809 * vfs.c (vfs_parse_filedate): I forgot to set got_year in one place
2810 (where YY-MM-DD is parsed).
2812 Thu Jan 7 06:24:25 1999 Andrej Borsenkow <borsenkow.msk@sni.de>
2814 * vfs.c (vfs_parse_filedate): If the date is less than 6 months
2815 in the past, it is shown without year. In this case MC assumed
2816 the current year which is wrong from Jan to Jun.
2818 Thu Jan 7 03:47:35 1999 Timur I. Bakeyev <mc@bat.ru>
2820 * vfs.c (parse_ls_lga): Fixed Y2K typo pointed by Alex.
2822 Thu Dec 31 08:47:15 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
2824 * sfs.c (sfs_nothingisopen): Assume for now it's always save to free
2825 this filesystem and delete temporary files. This needs further
2828 * tar.c: deleted unused empty struct tar_super.
2830 Thu Dec 31 08:40:44 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
2832 * direntry.c: Split fd_usage into fd_usage and ino_usage. fd_usage
2833 was used for external and internal reference count. This was wrong
2834 because we can free resources taken up by the vfs as soon as the
2835 external reference count (now fd_usage) is zero. The internal
2836 reference count (ino_usage) mustn't matter because the vfs has to
2837 clean up itself in the correct order.
2839 Fri Dec 25 21:48:51 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
2841 * direntry.c (vfs_s_new_inode): Moved initialization of st_ino
2842 and st_dev from vfs_s_default_stat.
2844 (vfs_s_default_stat): initialize st_ino and st_dev to zero
2846 * tar.c (tar_open_archive): Make a new MEDATA->rdev for every
2849 Mon Dec 21 22:55:48 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
2851 * tar.c: Deleted global variable tar_gzipped_memlimit.
2853 Wed Dec 16 06:36:42 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
2855 * vfs.c (vfs_strip_suffix_from_filename): New function which strips
2856 known vfs suffixes from a filename and returns a malloced string
2857 which has to be freed. Possible improvement: strip vfs suffix from
2858 last path component.
2860 * extfs/*: added "umask 077" to every script.
2862 Tue Dec 15 16:41:50 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
2864 * extfs.c (extfs_open), sfs.c (redirect): create files 0600 and
2865 safely w.r.t. symlinks in /tmp
2867 Mon Nov 30 23:49:11 1998 Pavel Machek <pavel@bug.ucw.cz>
2869 * direntry.c: Hopefully got want_stale_data right...
2871 Wed Nov 25 23:54:23 1998 Pavel Machek <pavel@bug.ucw.cz>
2873 * vfs.h: use ENETUNREACH if EREMOTEIO error code is not defined,
2874 this is neccessary for Solaris and probably others
2876 Mon Nov 23 17:39:33 1998 Pavel Machek <pavel@bug.ucw.cz>
2878 * vfs.c (vfs_type_from_op): removing unneccessary code
2880 Wed Dec 9 12:24:52 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
2882 * extfs/rpm: commit fix for files with spaces in name by Marc
2883 Merlin (marcsoft@merlins.org)
2885 Mon Dec 7 11:04:57 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
2887 * fish.c: default to normal ssh
2888 (open_archive_int): debugging hack killed
2890 1998-12-02 Raja R Harinath <harinath@cs.umn.edu>
2892 * Makefile.am (EXTRA_DIST): Distribute files that the
2893 BUILT_SOURCES depend on.
2894 (mad.c, mad.h): Don't use GNU make specific features in rule.
2895 (libvfs_la_SOURCES): Update from Make-mc.in.
2897 1998-12-02 Miguel de Icaza <miguel@nuclecu.unam.mx>
2899 * direntry.c (vfs_s_insert_super): This routine does not return
2902 1998-12-02 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
2904 * fish.c (FISH_OP): changed snprintf to g_snprintf, as glib is
2907 * xdirentry.h (LINK_NO_FOLLOW):
2908 * tar.c (read_header):
2909 * direntry.c (vfs_s_resolve_symlink):
2910 (vfs_s_inode_from_path):
2911 (vfs_s_open): renamed NO_FOLLOW and FOLLOW to LINK_NO_FOLLOW and
2912 LINK_FOLLOW resp. to avoid problems on solaris, where FOLLOW and
2913 NO_FOLLOW are defined in an enum.
2915 * vfs.h (ELAST): define it to 300, if not already defined, thats a
2916 bad hack, but what can we do....
2918 Wed Dec 2 14:06:49 KST 1998 Sung-Hyun Nam <namsh@lgic.co.kr>
2920 * direntry.c (vfs_s_new_super): Added the missing return value.
2922 Sun Nov 29 02:54:54 1998 Timur I. Bakeyev <mc@bat.ru>
2924 * vfs.h: (Temporary?) fix to the compiling error: Some of the error
2925 codes, defined here are Linux specific and unknown to other systems.
2926 Changed to #ifdef's with assigning new codes by means ELAST+offset.
2928 Tue 24 Nov 12:43:20 1998 Peter Kleiweg <kleiweg@let.rug.nl>
2930 * vfs.c (vfs_parse_ls_lga): ignore trailing + in permission string
2931 which indicate a file with extented attributes (ACL)
2933 Mon Nov 23 21:19:43 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
2935 * ftpfs.c (resolve_symlink_with_ls_options): that's resolve_symlinks
2936 we used up to release 4.1.35. It uses LIST -lLa to get symlink stats.
2938 (resolve_symlink_without_ls_options): that's resolve_symlinks
2939 we used in release 4.1.36 and 4.5.[01]. It gets symlink stats from the
2940 directory cache fetching directories if necessary. We got some
2941 complaints about slower ftpfs in the above releases. Now this methode
2942 is no longer the default methode to resolve symbolic links. It is still
2943 needed for ftp servers which don't understand the LIST -lLa command.
2945 (resolve_symlink): Dispatch between the two methods to
2948 Sat Nov 21 21:38:08 1998 Pavel Machek <pavel@bug.ucw.cz>
2950 * vfs.c (vfs_parse_ls_lga): corrected stupid bug in parse_ls_lga,
2951 thanks to Pavel Roskin for reporting
2953 * direntry.c (vfs_s_lseek): -1 is invalid filehandle, not 0
2955 * utilvfs.c (vfs_split_url): initialize variables so that we do
2958 Sat Nov 7 20:19:14 1998 Pavel Machek <pavel@bug.ucw.cz>
2960 * vfs.c: Converted g_return_if_fail into vfs_dies(), removed them
2961 where unneccessary. I do not see why passing NULL to vfs_add_stamp
2962 should be invalid -> removed check.
2964 Mon Nov 2 23:09:55 1998 Pavel Machek <pavel@bug.ucw.cz>
2966 * direntry.c, xdirentry.h: should be now prepared to handle
2967 ftp-like filesystems. This is rather BIG change, altrough it does
2968 not look so. I hope I do not break too many things.
2970 Mon Nov 16 16:39:39 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
2972 * vfs.c (vfs_parse_ls_lga): Report unrecognized lines.
2974 Thu Nov 12 11:28:48 1998 Pavel Roskin <pavel_roskin@geocities.com>
2976 * extfs/rpm: Fix to display files belonging to users with
2977 excessively long usernames
2979 1998-10-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
2981 * fish.c (command): Replace vnsprintf with g_strdup_vprintf. This
2982 is both safe and more correct, as there is no limit on the
2985 * ftpfs.c (command): Same as above.
2987 * util-alone.c (print_vfs_message): Same as above.
2989 Wed Oct 28 17:06:57 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
2991 * ftpfs.c: report which directory you are listing, fix behaviour
2992 with servers that don't like LIST //. (Nowell) Fix behaviour even
2995 * direntry.c (vfs_s_automake): insert newly generated entry
2997 * direntry.c (vfs_s_free_entry): Debugging printf() killed.
2999 Mon Oct 26 00:38:30 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3001 * Make-mc.in: added xdirentry.h to VFSHDRS
3003 Fri Oct 23 12:29:48 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
3005 * tar.c (tar_open_archive): do not double-free memory if you can
3006 not open archive, better error handling
3008 * Makefile.in: add direntry.o to list of NONETFILES so we actually compile
3010 * sfs.c, tar.c: remove debugging messages (which really should not
3011 escape from my tree)
3013 Thu Oct 22 22:24:44 1998 Pavel Machek <pavel@bug.ucw.cz>
3015 * README: added. If you are using emacs or hacking libvfs, please
3018 * direntry.{c,h}: new library created, so that same entry/inode
3019 code does not have to be copied in every handler.
3021 * tar.c: converted to use direntry.c library, which means BIG changes.
3023 * ftpfs.c: small updates to make code look nicer
3025 Mon Oct 19 19:40:58 1998 Pavel Machek <pavel@bug.ucw.cz>
3027 * vfs.h (&more): killed ERRNOR() from vfs.h and put it into files
3028 which actually need it.
3030 * extfs.c: extfs_current_dir killed - it was unneccessary.
3032 * mcfs.c (mcfs_get_path): It is possible for path not to begin
3033 with /#mc:, for example if user does /etc/#mc:. (It is not
3034 correct, of course). Return error, but do not vfs_die().
3036 Sun Oct 18 23:48:00 1998 Pavel Machek <pavel@bug.ucw.cz>
3038 * lib/mc.ext.in: cpio support fixed. It was broken since time we
3039 started to do #ext syntax.
3041 Sat Oct 17 20:43:20 1998 Pavel Machek <pavel@bug.ucw.cz>
3043 * vfs.c (mc_open): die() if open is unsupported. If filesytem does
3044 not support open, it is probably stupid typo, so we want bug to be
3047 Thu Oct 22 20:30:28 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3049 * ftpfs.c (resolve_symlink, retrieve_dir): Don't timeout and
3050 free dcache while resolving symlinks (i.e. don't free some
3051 pointers which are in use by resolve_symlink).
3053 Mon Oct 19 11:44:47 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
3055 * mcfs.c: prefix is mc:, not mcfs:. So now mcfs actually works.
3057 Thu Oct 15 17:17:17 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
3059 * shared_ftp_fish.c (s_write): stupid bug fixed
3061 Tue Oct 13 00:22:52 1998 Pavel Machek <pavel@bug.ucw.cz>
3063 * extfs/*: marked obvious security holes with FIXME: TMP RACE
3065 * vfs.c (mc_def_getlocalcopy): creat->open(..,O_EXCL), to prevent
3066 symlink attack, fixed memory leak along the path
3068 1998-10-13 Miguel de Icaza <miguel@nuclecu.unam.mx>
3070 * vfs.c, vfs.h: Indentation chages, ugly macros removed. I am
3071 going to split this file in the future.
3073 Tue Oct 13 18:43:18 1998 Pavel Machek <pavel@lomikel.karlin.mff.cuni.cz>
3075 * vfs.c (vfs_add_noncurrent_stamps): Fixed typo reported by Andrej
3076 Borsenkow <borsenkow.msk@sni.de>
3078 Tue Oct 13 12:42:10 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
3080 * vfs.h (vfs_struct): renamed to avoid namespace conflict
3082 Mon Oct 12 22:42:30 1998 Pavel Machek <pavel@bug.ucw.cz>
3084 * sfs.c: reuse mmap from local.c
3086 * ftpfs.c, fish.c, shared_ftp_fish.c: horrible reget hack removed,
3087 and replaced with open(,O_LINEAR); lseek() combination
3089 Sun Oct 11 01:44:37 1998 Pavel Machek <pavel@bug.ucw.cz>
3091 * mcfs.c (open_tcp_link): Moved: it used to be in utilvfs.c, but
3092 as it deals with portmapper, it is probably usefull for mcfs
3094 * vfs.h (MCERR_*): these are no longer needed
3096 * vfs.c (vfs_translate_url): translating of url's moved to vfs
3099 * all around: trying to reduce namespace pollution. All special
3100 functions (like extfs_run) should be done using mc_setctl()
3101 interface. At the end, all non-static functions in vfs layer
3102 should begin with vfs_ and should be declared in vfs.h (however
3103 that goal is far away).
3105 * all over the code: replace X_vfs_ops to vfs_X_ops
3107 Mon Oct 5 20:11:01 1998 Pavel Machek <pavel@bug.ucw.cz>
3109 * vfs.c: added stat to avoid hiding files by naming them
3110 #ftp:localhost and similar. Vfs will not treat files as local if
3111 they already exists, regardless of name.
3113 Tue Oct 6 15:34:22 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
3115 * vfs.h: disable BROKEN_PATHS by default. See if you can live
3116 without cd .. from ftp tree putting you to last directory.
3118 Sat Oct 3 14:28:57 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3120 * ftpfs.c (resolve_symlink): fixed cut'n paste error in my last
3121 change, i.e. make it compile)
3123 Sat Oct 3 01:03:37 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3125 * ftpfs.c (resolve_symlink): minor speed enhancement
3127 Thu Oct 1 18:39:52 1998 Pavel Roskin <pavel_roskin@geocities.com>
3129 * vfs.h: vfs_force_expire() was incorrectly #define'd
3131 Tue Sep 29 17:23:03 1998 Pavel Machek <pavel@atrey.karlin.mff.cuni.cz>
3133 * extfs.c, sfs.c: added few static's to prevent people from doing
3136 Mon Sep 28 21:43:16 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3138 * vfs.h (struct vfs): renamed errno to verrno because glibc2
3139 defines errno as macro (#define errno (*__errno_location ()))
3141 Mon Sep 28 21:34:03 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
3143 * Makefile.in: search config.status in builddir and not in srcdir/..,
3144 i. e. make it compile for builddir != srcdir
3146 Sun Sep 27 16:16:52 1998 Pavel Machek <pavel@bug.ucw.cz>
3148 * COPYING.LGPL, all over the code: code is now under Library
3149 General Public License (instead of GPL), so non-free applications
3152 Wed Sep 23 22:37:40 1998 Pavel Machek <pavel@bug.ucw.cz>
3154 * all over the code: added (vfs *) as first argument for functions
3155 that have no other way to know what fs they belong to. This will
3156 be used by object-like tricks, which will allow us to do real
3157 code-sharing: I do not like #including of .c files.
3159 1998-09-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
3161 * shared_ftp_fish.c: Addaed prototypes for linear_start, linear_read,
3164 Wed Sep 23 15:09:55 1998 Tom Tromey <tromey@cygnus.com>
3166 * vfs.h (MIN, MAX): Only define if not already defined; glib.h
3169 Wed Sep 23 13:33:14 1998 Pavel Machek <pavel@ucw.cz>
3171 * ftpfs.c: Fixed segfault caused by unitialized varialble
3173 Wed Sep 23 11:51:12 1998 Pavel Roskin <pavel_roskin@geocities.com)
3175 * ftpfs.c: Special characters were printed via print_vfs_message.
3176 This caused funny effects if "XTerm hintbar" was on.
3178 Mon Sep 21 11:40:30 1998 Pavel Machek <pavel@ucw.cz>
3180 * ftpfs.c, fish.c: added O_LINEAR mode to handle linear read of
3181 files in sane way. copy_file_file will make temporary files for a
3182 while (fix pending).
3184 * tar.c: fixed bzip/bzip2 compressed archives
3186 Wed Sep 18 12:51:51 1998 Pavel Machek <pavel@ucw.cz>
3188 * fish.c, vfs.c: created aliases /#ssh: and /#rsh:
3190 * vfs.h: created ERRNOR() macro which sets my_errno and returns,
3191 which makes vfs's _much_ more readable
3193 Fri Sep 18 10:37:28 1998 Pavel Roskin <pavel_roskin@geocities.com)
3195 * extfs.c: free() was called twice for the same place in memory
3198 Tue Sep 15 20:31:32 1998 Norbert Warmuth <k3190@fh-sw.de>
3200 * ftpfs.c (ftp_use_unix_list_options): New global variable/option.
3201 If true we try to use 'LIST -la <path>'. When it fails we use the
3202 two commands 'CWD <path>' and 'LIST' instead.
3204 (resolve_symlink): rewritten. Don't get a second directory listing
3205 with `LIST -lLa'. Instead use the cache to get the file stat of
3206 symbolic links. If the directory the symlink points to isn't
3207 already in the cache the directory listing will be fetched and
3208 stored in the directory cache (without resolving symlinks
3210 The new method to resolve symlinks is faster if symlinks
3211 the same directory or the directory the symlink points to
3212 is already in the cache.
3213 This function was small and nice until I discovered that it was
3214 broken for symlinks to symlinks. Now it looks ugly and perhaps I
3215 will revert it to use "LIST -lLa" again. With a fast connection it
3216 doesn't matter which methode we use but with a slow connection I
3217 wouldn't hesitate to burn more cpu cycles on the client side.
3219 (retrieve_dir): Added parameter to tell whether to resolve
3220 symlinks (don't resolve symlinks in directory listings retrieved
3221 while resolving symlinks).
3222 When we don't get a directory listing with 'LIST -la <path>' then
3223 try to get it with `CWD <path>; LIST'.
3225 Tue Sep 15 20:27:29 1998 Norbert Warmuth <k3190@fh-sw.de>
3227 * ftpfs.c (login_server): s/ftpfs_get_host/my_get_host/
3229 (retrieve_file_start2): Don't create target file O_EXCL, in
3230 copy_file_file we check existance of the target file and know
3231 that we want to truncate it (this change was already done a
3232 while back but it was reverted with the vfs-split).
3234 Tue Sep 15 20:15:42 1998 Norbert Warmuth <k3190@fh-sw.de>
3236 * ftpfs.h (struct connection): added boolean which indicates that
3237 the ftp server doesn't understand Unix ls options
3239 * ftpfs.h (struct dir): added enum to store symlink status of the
3240 in memory directory cache (directory has no symbolic links;
3241 symbolic links but not yet resolved; symbolic links which are resolved)
3243 Tue Sep 15 20:02:08 1998 Norbert Warmuth <k3190@fh-sw.de>
3245 * shared_ftp_fish.c, fish.c: updated references to retrieve_dir to
3246 honour the additional boolean parameter
3248 Tue Sep 15 00:42:15 1998 Timur Bakeyev <mc@bat.ru>
3250 * vfs.h: add vfs_split() declaration, to make sfs.c happy.
3252 * Make-mc.in, Makefile.am: Updated to include fish.c
3254 1998-09-14 Norbert Warmuth <k3190@fh-sw.de>
3256 * sfs.c (sfs_free): assignment operator was used to check for equality
3258 Fri Sep 11 22:36:38 1998 Pavel Machek <pavel@ucw.cz>
3260 * sfs.c: memory leak fixed
3262 * vfs.c: split parse_ls_lga into more functions
3264 * fish.c added, now you can access files over rsh/ssh connection
3266 * shared*.c: reworked a bit not to include so many of ugly X_'s
3268 Wed Sep 2 13:59:47 1998 Pavel Machek <pavel@ucw.cz>
3270 * ftpfs.c: cleanup of code, few static's added
3272 * extfs/uarj: added, still, you need patches to unarj to make this
3275 * util-alone.c: now includes code from libvfs.c, so we can kill
3276 libvfs.c (which is good thing as it was non-standard in Makefiles)
3278 Sun Aug 30 13:19:49 1998 Pavel Machek <pavel@ucw.cz>
3280 * undelfs.c: fixed, it has been broken for too long
3282 * vfs.c, ../src/cmd.c: neccessary minor fixes to make undelfs work
3284 * vfs.c: made more fields in *_vfs_ops optional, cleanup of errno
3285 handling in case of NULL in *_vfs_ops.
3287 * extfs.c, ftpfs.c, tar.c: made use of above change
3289 * vfs.c: cleanup of macros generating mc_*()
3291 * libvfs.c: adding variable mc_home
3293 Thu Aug 27 19:45:31 1998 Pavel Roskin <pavel_roskin@geocities.com>
3295 * extfs.c: mc_extfsdir was not defined in extfs_open()
3297 * Make-mc.in: sfs.c was not compiled, linked and copied out
3298 extfs/sfs.ini was not installed and copied out
3300 * Makefile.am: sfs.c was not linked to standalone VFS
3302 Tue Aug 25 17:54:17 1998 Pavel Machek <pavel@ucw.cz>
3304 * Added vfs_uid for use by libvfs.so users (rpc.nfsd)
3306 * Added single file filesystem (sfs)
3308 * Added vfs_flags so library users can disable selected
3311 * Minor shuffling of functions so garbage collection works for
3314 1998-08-20 Raja R Harinath <harinath@cs.umn.edu>
3316 * Makefile.am (mad.c, mad.h): Create symlinks to counterparts in
3319 Wed Aug 12 19:04:48 1998 Pavel Roskin <pavel_roskin@geocities.com>
3321 * extfs/patchfs: %k replaced with more portable %H in the format
3324 * extfs/extfs.ini: Added patchfs and mailfs. Some comments
3327 Tue Aug 11 15:25:52 1998 Pavel Roskin <pavel_roskin@geocities.com>
3329 * extfs/rpm: Fix for buggy "cut" on HP-UX 10.20 which ignores
3330 lines without enf-of-line.
3332 Mon Jun 01 03:30:07 1998 Alexander Savelyev <fano@vcom.kiev.ua>
3334 * tar.c (read_header): Support for linkflag on BSDI tar (pax), it
3337 1998-06-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
3339 * ftpfs.c (ftpfs_open_socket): Potential security break fix.
3341 1998-08-06 Raja R Harinath <harinath@cs.umn.edu>
3343 * Makefile.am (BUILT_SOURCES): Make it `make dist' friendly.
3344 Don't try building this, yet.
3346 1998-07-31 Nuno Ferreira <nmrf@rnl.ist.utl.pt>
3348 * Make-mc.in (install.extfs): Splitted install of $(EXTFS_CONST)
3349 and $(EXTFS_OUT) because the first must be installed from
3350 $(srcdir) and the second from $(builddir).
3352 Fri Jul 24 00:22:30 1998 Tom Tromey <tromey@cygnus.com>
3354 * Make-mc.in (DISTVFS): Changed Makefile.in to Make-mc.in.
3356 * Makefile.am: New file.
3357 * Make-mc.in: Renamed from Makefile.in.
3358 * Makefile.in: Removed.
3360 Mon Jun 29 15:12:55 1998 Pavel Roskin <pavel_roskin@geocities.com>
3362 * Makefile.in: Rewritten stuff concerning extfs files.
3364 Mon Jun 22 22:30:00 1998 Manish Vachharajani <mvachhar@vger.rutgers.edu>
3366 * Makefile.in: Remove arfs, since it doesn't seem to exist
3368 Wed Jun 17 Pavel Machek <pavel@ucw.cz>
3369 * Rename helper scripts (extfs/{rar|lha|...}.in), so their names
3370 are more logical (and so that things actually work, because new
3371 names are currently in extfs.ini).
3373 Wed Jun 17 Pavel Machek <pavel@ucw.cz>
3374 * Modified code to use tempnam() instead of tmpnam(), fixed
3375 tempnam() to use NULL instead of 0.
3377 Wed Jun 3 Pavel Machek <pavel@ucw.cz>
3379 * libvfs.c: adding libvfs.c which should contain things specific
3380 to stand-alone libvfs.so. (This file was missing from previous
3383 Mon Jun 1 16:00:19 1998 Norbert Warmuth <k3190@fh-sw.de>
3385 * ftpfs.c (ftpfs_fill_names): use right character to seperate
3388 Mon Jun 1 14:19:20 1998 Bakeyev I. Timur <mc@bat.ru>
3389 * vfs.c (parse_ls_lga): allow a bit wider range of listings.
3391 * vfs.c (is_time, is_year): new functions
3393 Mon Jun 1 12:47:50 1998 Norbert Warmuth <k3190@fh-sw.de>
3395 * ftpfs.c (ftpfs_forget): Use the new ftpfs prefix.
3397 Thu May 28 16:42:31 1998 Pavel Machek <pavel@ucw.cz>
3399 * extfs.c, shared.c, tar.c: I changed semantics in my previous
3400 patch - _get_path() now modifies strings passed to it. I thought
3401 that I were carefull enough not to introduce bugs. You guessed it -
3402 I was not. [Many tar_ and extfs_ functions modify strings passed
3403 to them, but as they are only called from vfs layer, it does not
3405 So I renamed function to alert everyone that semantics changed.
3407 Fixed bugs in timestamping (and segfaults) when you entered tar
3408 inside zip file or similar.
3410 * vfs.c (mc_open): Die if the filesystem doesn't support open
3412 ??? Pavel Machek <pavel@ucw.cz>
3414 * shared.c: Shared parts of extfs.c and tar.c are now in shared.c
3416 * util-alone.*: VFS should be able to compile stand-alone into
3417 libvfs.so usable by anyone. This is first step.
3419 * vfs.c & others: syntax change. We no longer use
3420 tar:/path.tar/file. Now, syntax is /path.tar#utar/file, which has
3421 better defined meaning. Similar changes are done to all other
3422 protocols. This change touched really _many_ places of code.
3425 1998-05-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
3427 * vfs.c (MC_DIROP): Macro now returns the proper value.
3429 1998-maj-18 Tamasi Gyorgy (gt_cosy@usa.net)
3431 * Makefile.in ('install' target): 'mcserv' not installed, if
3432 net-code is not enabled by 'configure'.
3434 Thu May 14 02:05:52 1998 Norbert Warmuth <k3190@fh-sw.de>
3436 * Makefile.in (LIBS): add @LINTL@
3438 Sun May 10 14:51:03 1998 Norbert Warmuth <k3190@fh-sw.de>
3440 * ftpfs.c (__ftpfs_chdir): CWD command wasn't sent at all. This
3441 optimation is wrong because for directories containing spaces we
3442 have to "CWD <pathname>" and "LIST -la" instead of
3443 "LIST -la <pathname>".
3444 I implemented a different optimation. Now ftpfs_chdir only stores
3445 the new working directory and sets a flag. __ftpfs_chdir is called
3446 when we really want to change the directory on the ftp server.
3448 (resolve_symlink): Log the directory listing to the logfile.
3450 * ftpfs.h (struct ftpfs_connection): Added a (per connection)
3453 Mon May 4 10:27:49 1998 Norbert Warmuth <k3190@fh-sw.de>
3455 * Makefile.in: Links to mad.c and mad.h were created wrong when
3456 srcdir != builddir and directory depth to srcdir and builddir were
3457 different (e.g. srcdir=/src/mc and builddir=/src/compile/mc)
3459 * ftpfs.c (retrieve_file_start2): Don't create target file O_EXCL,
3460 in copy_file_file we check existance of the target file and know
3461 that we want to truncate it.
3463 1998-04-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
3465 * tar.c (read_header): Mark regular files with S_IFREG.
3467 Tue Apr 28 06:06:03 1998 Norbert Warmuth <k3190@fh-sw.de>
3469 * extfs.c (extfs_open, extfs_close): Changed my_system(1,...) to
3470 my_system(EXECUTE_AS_SHELL,...), this fixes the broken copyin and
3473 1998-04-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
3475 * ftpfs.c (retrieve_file_start2): Open file exclusively.
3476 (retrieve_file): likewise.
3478 1998-03-31 Philippe De Muyter <phdm@macqel.be>
3480 * vfs.h: compilation fix for m68k-motorola-sysv
3482 Wed Mar 25 19:01:48 1998 Norbert Warmuth <k3190@fh-sw.de>
3484 * extfs/hp48: Added a usage summary
3486 Mon Mar 23 00:42:21 1998 Christofer Edvardsen <ce@earthling.net>
3488 * Makefile.in, extfs/extfs.ini, extfs/hp48: New external
3489 filesystem to view and copy files to/from the HP48.
3491 Wed Feb 11 14:09:02 1998 Oleg <oleg@pobox.com>
3493 * extfs.c: Add support for writtable external file systems.
3494 Required for the httpfs.
3496 Fri Jan 23 07:27:37 1998 Peter Daum <gator@cs.tu-berlin.de>
3498 * extfs.c (open_extfs_archive): Pass the quoted argument to the
3501 * mailfs: new file system.
3503 1997-12-21 Yuri Kuzmenko <Yuri.Kuzmenko@f169.n463.z2.fidonet.org>
3505 * tar.c: fix the bug which core dumps when trying to view tar file
3506 with many files (over 60000).
3508 Mon Jul 21 18:47:37 1997 Miguel de Icaza <miguel@athena.nuclecu.unam.mx>
3510 * vfs.c (mc_opendir): Do not make conversions between int/void *
3511 to make the code compile and work on the Alpha correctly.
3512 Allocate a pointer to an int and use that instead.
3514 Thu Jul 3 19:08:43 1997 Michele Marziani <marziani@axpfe1.fe.infn.it>
3516 * extfs/rpm: Small fix for older RPM files.
3518 Mon Jun 9 19:00:30 1997 Norbert Warmuth <k3190@fh-sw.de>
3520 * vfs/vfs.c (vfs_canon): Fix for the 'cd a:/somedir/..' problem
3522 * vfs/vfs.c (vfs_add_non_current_stamps): when leaving a mtools fs
3523 free the extfs buffers immediatly instead of waiting for the vfs-
3526 Thu May 29 14:50:41 1997 Miguel de Icaza <miguel@athena.nuclecu.unam.mx>
3528 * vfs.c (vfs_canon): the "local:" case was consuming one extra
3529 character. This fixes the bug reported by Andrej. Also, handle
3530 the non-canonical case of arguments to local:
3532 Tue May 27 20:38:28 1997 Miguel de Icaza <miguel@athena.nuclecu.unam.mx>
3534 * mcserv.c (get_client): The parent now waits for the first forked
3535 process, getting rid of the zombies.
3537 * utilvfs.c (open_tcp_link): If we can not contact the remote
3538 portmapper, set the protocol version to 1.
3540 Fri May 16 16:42:18 1997 Tomasz K³oczko, <kloczek@rudy.mif.pg.gda.pl>
3542 * mc.spec: New spec file, this packages mc, mcserv and tkmc.
3544 * lib/mcserv.init, lib/mc.sh, lib/mcserv.pamd: added
3546 * vfs/ext/rpm: instead using sed and rpm -qpi use rpm queries,
3547 more info currently displayed (changeslogs, Os, URL, packager
3549 Tue May 13 18:14:49 1997 Wojtek Pilorz <wpilorz@bdk.lublin.pl>
3551 * vfs/Makefile.in (INSTALL_PROGRAM): Use -m flag for install to
3552 force vfs scripts to be executable on those systems that use
3555 * src/utilunix.c: Implement socketpair for SCO flavored systems.
3557 Mon Mar 17 12:03:50 1997 Norbert Warmuth <k3190@fh-sw.de>
3559 * configure.in (--with-hsc): fix.
3561 * vfs/ftpfs.c (ftpfs_get_proxy_host_and_port): Fixed wrong parameter
3562 passing (HSC_DEFAULT_PORT was passed as pointer to char instead of
3563 passing it as integer)
3565 Tue Feb 25 20:21:00 1997 Joseph M. Hinkle <jhinkle@rockisland.com>
3567 * extfs/lha: Updated the lha filesystem and included a command
3568 for running an executable from within an lha archive suggested
3569 by Zdenek Kabelac <kabi@informatics.muni.cz>
3571 * extfs/: Renamed cpio, deb, rar, rpm as *.in files and altered
3572 config.in to create these VFS's for cleaner compilation