/[mc]/mc/vfs/direntry.c
ViewVC logotype

Log of /mc/vfs/direntry.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Tag:

Revision 1.125 - (view) (download) (annotate) - [select for diffs]
Mon Sep 24 13:47:54 2007 UTC (16 years, 7 months ago) by ptsekov
Branch: MAIN
CVS Tags: HEAD
Changes since 1.124: +0 -1 lines
Diff to previous 1.124
* vfs/direntry.c (vfs_s_free_super): Remove redundant code.


Revision 1.124 - (view) (download) (annotate) - [select for diffs]
Thu Mar 30 13:04:50 2006 UTC (18 years ago) by ptsekov
Branch: MAIN
CVS Tags: MC_4_6_2_pre1
Changes since 1.123: +2 -1 lines
Diff to previous 1.123
* vfs/direntry.c (vfs_s_inode_from_path): Revert last change.


Revision 1.123 - (view) (download) (annotate) - [select for diffs]
Thu Mar 23 12:36:10 2006 UTC (18 years, 1 month ago) by ptsekov
Branch: MAIN
Changes since 1.122: +1 -2 lines
Diff to previous 1.122
* vfs/direntry.c (vfs_s_inode_from_path): Do not give up if a given path
does not exist in the directory cache. In such scenario use the underlying
vfs to determine whether the path exists or not.


Revision 1.122 - (view) (download) (annotate) - [select for diffs]
Thu Feb 23 10:46:29 2006 UTC (18 years, 2 months ago) by ptsekov
Branch: MAIN
Changes since 1.121: +17 -0 lines
Diff to previous 1.121
* vfs/ftpfs.c (ftpfs_dir_uptodate): Remove.
(init_ftpfs): Adjust the code to reflect the removal of
`ftpfs_dir_uptodate'.
* vfs/fish.c (fish_dir_uptodate): Remove.
(init_fish): Adjust the code to reflect the removal of
`fish_dir_uptodate'.
* vfs/direntry.c (vfs_s_dir_uptodate): New function.
(vfs_s_init_class): Initialize the `dir_uptodate' field of
vfs_s_subclass.


Revision 1.121 - (view) (download) (annotate) - [select for diffs]
Sat Jan 28 15:47:02 2006 UTC (18 years, 2 months ago) by ptsekov
Branch: MAIN
Changes since 1.120: +0 -3 lines
Diff to previous 1.120
* direntry.c (vfs_s_open): Be less restrictive when O_LINEAR is specified
and `linear_start' is not implemented.


Revision 1.120 - (view) (download) (annotate) - [select for diffs]
Wed Jan 25 14:04:27 2006 UTC (18 years, 3 months ago) by ptsekov
Branch: MAIN
Changes since 1.119: +12 -4 lines
Diff to previous 1.119
* xdirentry.h (LS_LINEAR_PREOPEN): New macro definition.
* direntry.c (vfs_s_open): When opening a file in linear mode,
defer the actual open operation until the first read call.
(vfs_s_read): When reading in linear mode, open the file
on the first read operation.
(vfs_s_lseek): When in linear mode, make sure that seeking is
allowed only before the first read operation.
* ftpfs.c (ftpfs_ctl): Make the code aware of LS_LINEAR_PREOPEN.
* fish.c (fish_ctl): Likewise.


Revision 1.119 - (view) (download) (annotate) - [select for diffs]
Mon Sep 5 00:52:57 2005 UTC (18 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.118: +9 -9 lines
Diff to previous 1.118
	* direntry.c: Added const qualifiers to work around gcc
	warnings.
	* extfs.c: Likewise.
	* fish.c: Likewise.
	* ftpfs.c: Likewise.
	* sfs.c: Likewise.
	* xdirentry.h: Likewise.


Revision 1.118 - (view) (download) (annotate) - [select for diffs]
Mon Aug 15 21:25:02 2005 UTC (18 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.117: +2 -2 lines
Diff to previous 1.117
	* direntry.c: Removed an unused variable.


Revision 1.117 - (view) (download) (annotate) - [select for diffs]
Tue May 24 12:09:22 2005 UTC (18 years, 11 months ago) by rillig
Branch: MAIN
CVS Tags: HEAD-merge-rillig, rillig-merge-HEAD
Branch point for: rillig-experimental
Changes since 1.116: +3 -3 lines
Diff to previous 1.116
	* dirent.c (split_dir_name): Don't assign a string literal to a
	char *. Use '\0' instead of 0 when operating on characters.


Revision 1.116 - (view) (download) (annotate) - [select for diffs]
Tue Feb 22 18:35:23 2005 UTC (19 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.115: +15 -1 lines
Diff to previous 1.115
	* *.c: Declared unused variables with (void) to avoid the gcc
	warnings.
	* extfs.c (extfs_get_path_mangle, extfs_get_path): Removed unused
	parameter.
	* ftpfs.c (ftpfs_netrc_bad_mode): Likewise.
	* vfs.c (mc_def_getlocalcopy): Likewise.


Revision 1.115 - (view) (download) (annotate) - [select for diffs]
Sat Feb 19 16:36:38 2005 UTC (19 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.114: +4 -0 lines
Diff to previous 1.114
	* utilvfs.h: Removed unneeded #includes.
	* *.c: Added the #includes that have been removed from utilvfs.h.
	* tcputil.c: Just removed the unneeded #include "utilvfs.h".


Revision 1.114 - (view) (download) (annotate) - [select for diffs]
Mon Nov 29 18:44:49 2004 UTC (19 years, 4 months ago) by pchel
Branch: MAIN
CVS Tags: MC_4_6_1_pre2, MC_4_6_1_pre3, MC_4_6_1_pre4, MC_4_6_1_release
Branch point for: MC_4_6_1, MC_4_6_1_PRE
Changes since 1.113: +1 -1 lines
Diff to previous 1.113
* direntry.c (vfs_s_readlink): Correctly calculate link length.


Revision 1.113 - (view) (download) (annotate) - [select for diffs]
Fri Nov 26 12:00:36 2004 UTC (19 years, 5 months ago) by pchel
Branch: MAIN
Changes since 1.112: +8 -4 lines
Diff to previous 1.112
* direntry.c (vfs_s_open): Fix memory leak.
(vfs_s_retrieve_file): Check write() return more carefully.


Revision 1.112 - (view) (download) (annotate) - [select for diffs]
Fri Sep 24 23:00:18 2004 UTC (19 years, 7 months ago) by pchel
Branch: MAIN
Changes since 1.111: +2 -4 lines
Diff to previous 1.111
        * direntry.c (vfs_s_free_entry): g_free handles NULL argument too,
        no need for the comparison.
        * extfs.c (extfs_free_archive): Likewise.
            (extfs_open_archive): Likewise.
            (extfs_read_archive): Likewise.
            (extfs_remove_entry): Likewise.
            (extfs_free_entry): Likewise.
        * fish.c (fish_open_archive): Likewise.
            (fish_archive_same): Likewise.
        * ftpfs.c (ftpfs_split_url):  Likewise.
        * local.c       (local_closedir): Likewise.
        * mcserv.c (close_handle): Likewise.
        * smbfs.c (smbfs_free_bucket): Likewise.
        * tar.c (tar_read_header): Likewise.
        * undelfs.c (undelfs_shutdown): Likewise.
        * vfs.c (vfs_shut): Likewise.


Revision 1.111 - (view) (download) (annotate) - [select for diffs]
Fri Sep 24 15:08:21 2004 UTC (19 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.110: +2 -2 lines
Diff to previous 1.110
	* cpio.c: Replaced NULL with (char *) NULL. Likewise for 0, where
	NULL was meant.
	* direntry.c: Likewise.
	* extfs.c: Likewise.
	* fish.c: Likewise.
	* ftpfs.c: Likewise.
	* mcfs.c: Likewise.
	* tar.c: Likewise.
	* undelfs.c: Likewise.
	* vfs.c: Likewise.


Revision 1.110 - (view) (download) (annotate) - [select for diffs]
Wed Sep 22 11:28:14 2004 UTC (19 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.109: +28 -13 lines
Diff to previous 1.109
	* direntry.c (vfs_s_new_entry): see 2004-09-19. Additionally followed the advice
	concerning g_strdup in /HACKING.
	(vfs_s_generate_entry): Likewise.
	(vfs_s_find_entry_linear): Likewise.
	(vfs_s_find_inode): Likewise.
	* xdirentry.h: Likewise.


Revision 1.109 - (view) (download) (annotate) - [select for diffs]
Wed Sep 22 05:50:45 2004 UTC (19 years, 7 months ago) by pchel
Branch: MAIN
Changes since 1.108: +10 -22 lines
Diff to previous 1.108
        * direnty.c (vfs_s_new_entry): Revert last changes.
        (vfs_s_generate_entry): Likewise.
        (vfs_s_find_entry_linear): Likewise.
        (vfs_s_find_inode): Likewise.
        * xdirentry.h: likewise.


Revision 1.108 - (view) (download) (annotate) - [select for diffs]
Sun Sep 19 16:07:17 2004 UTC (19 years, 7 months ago) by rillig
Branch: MAIN
Changes since 1.107: +24 -12 lines
Diff to previous 1.107
	* direntry.c: Added const qualifier to function declarations and
	variables. Introduced local modifiable strings where necessary.
	* xdirentry.h: likewise.


Revision 1.107 - (view) (download) (annotate) - [select for diffs]
Fri Sep 3 21:23:05 2004 UTC (19 years, 7 months ago) by pchel
Branch: MAIN
Changes since 1.106: +1 -1 lines
Diff to previous 1.106
        * vfs.c (vfs_cmp_handle): Fixing warnings on on 64-bit
        platforms.
        (vfs_op):Likewise.
        (vfs_info):Likewise.
        (vfs_free_handle):Likewise.
        * extfs/rpm (mcrpmfs_run): Quote parameters to calls
        to system/open that spawn a shell.
        * direntry.c (vfs_s_find_entry_tree): Make "size"
        size_t.


Revision 1.106 - (view) (download) (annotate) - [select for diffs]
Thu Sep 2 14:12:21 2004 UTC (19 years, 7 months ago) by pchel
Branch: MAIN
Changes since 1.105: +8 -3 lines
Diff to previous 1.105
        * local.c (local_readlink): Make "size" size_t.
        * direntry.c (vfs_s_readlink): Revert last changes. Make "size"
        size_t.
        * sfs.c (sfs_readlink): Reformat function.
        * smbfs.c (smbfs_readlink): Reformat function.


Revision 1.105 - (view) (download) (annotate) - [select for diffs]
Thu Sep 2 00:09:02 2004 UTC (19 years, 7 months ago) by pchel
Branch: MAIN
Changes since 1.104: +1 -2 lines
Diff to previous 1.104
* direntry.c (vfs_s_readlink): Use g_strlcpy instead strncpy.
* ftpfs.c (ftpfs_get_reply): Use g_strlcpy instead strncpy.
* extfs.c (extfs_readlink): Fix return value. Use g_strlcpy
        instead strncpy.
* mcfs.c (mcfs_readlink): Fix return value. Use g_strlcpy
        instead strncpy.
* tar.c (tar_read_header): Add additional check for consistency.
        Fix memory leak.
* cpio.c (cpio_defer_find): Remove recursion.
        (cpio_free_archive): Fix memory leak.
        (cpio_read_bin_head): Use union for simplicity using of header
        structure. Add additional check for consistency.
        (cpio_read_oldc_head): Add additional check for consistency.


Revision 1.104 - (view) (download) (annotate) - [select for diffs]
Thu Aug 26 08:49:25 2004 UTC (19 years, 8 months ago) by pchel
Branch: MAIN
Changes since 1.103: +1 -2 lines
Diff to previous 1.103
* direntry.c: Use g_strlcpy instead strncpy for fix buffer overrun
* extfs.c: Likewise.
* mcfs.c: Likewise.
* smbfs.c: Likewise.
* utilvfs.c: Likewise.


Revision 1.103 - (view) (download) (annotate) - [select for diffs]
Mon Aug 16 23:18:42 2004 UTC (19 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.102: +1 -0 lines
Diff to previous 1.102
Splittet the vfs.h header into a user's part (vfs.h) and an implementor's part (vfs-impl.h).


Revision 1.102 - (view) (download) (annotate) - [select for diffs]
Mon Aug 16 22:15:28 2004 UTC (19 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.101: +2 -2 lines
Diff to previous 1.101
Const-ified the rest of the vfs_class methods.


Revision 1.101 - (view) (download) (annotate) - [select for diffs]
Mon Aug 16 21:16:54 2004 UTC (19 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.100: +1 -1 lines
Diff to previous 1.100
Made the buf argument to vfs->write constant.


Revision 1.100 - (view) (download) (annotate) - [select for diffs]
Mon Aug 16 20:26:42 2004 UTC (19 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.99: +3 -3 lines
Diff to previous 1.99
Made the path argument to vfs->[l]stat constant. Created a new memory leak, which will be fixed soon.


Revision 1.99 - (view) (download) (annotate) - [select for diffs]
Mon Aug 16 16:34:11 2004 UTC (19 years, 8 months ago) by rillig
Branch: MAIN
Changes since 1.98: +1 -1 lines
Diff to previous 1.98
Added a typedef for a function. Added more const-ness to the function arguments.


Revision 1.98 - (view) (download) (annotate) - [select for diffs]
Sun Mar 7 06:12:49 2004 UTC (20 years, 1 month ago) by sav
Branch: MAIN
Changes since 1.97: +5 -3 lines
Diff to previous 1.97
* direntry.c (vfs_s_resolve_symlink): Check vfs_s_fullpath()
return value to avoid NULL dereference.
Reported by wwp <subscript@free.fr>.


Revision 1.97 - (view) (download) (annotate) - [select for diffs]
Wed Nov 26 21:10:43 2003 UTC (20 years, 5 months ago) by proski
Branch: MAIN
CVS Tags: MC_4_6_1_pre1
Changes since 1.96: +4 -17 lines
Diff to previous 1.96
* gc.c: Eliminate all code for timestamping parent filesystems.
It's broken and undocumented.  Adjust all dependencies.


Revision 1.96 - (view) (download) (annotate) - [select for diffs]
Mon Nov 24 20:30:30 2003 UTC (20 years, 5 months ago) by proski
Branch: MAIN
Changes since 1.95: +2 -2 lines
Diff to previous 1.95
* direntry.c (vfs_s_resolve_symlink): Eliminate
g_strdup_printf().
(vfs_s_fullpath): Likewise.


Revision 1.95 - (view) (download) (annotate) - [select for diffs]
Fri Nov 14 08:25:51 2003 UTC (20 years, 5 months ago) by proski
Branch: MAIN
Changes since 1.94: +26 -10 lines
Diff to previous 1.94
* vfs.c (vfs_split): Deconstify.
* direntry.c (vfs_s_get_path_mangle): Likewise.  "mangle" is in
the name for a reason.  Use vfs_s_get_path() instead where the
path should be preserved.
* extfs.c (extfs_get_path_mangle): Likewise.
* sfs.c (sfs_vfmake): Protect against changes in vfs_split().


Revision 1.94 - (view) (download) (annotate) - [select for diffs]
Thu Nov 13 08:29:38 2003 UTC (20 years, 5 months ago) by proski
Branch: MAIN
Changes since 1.93: +2 -2 lines
Diff to previous 1.93
* vfs.h: Constify chdir() and opendir() methods.  Adjust all
dependencies.
* vfs.c (mc_chdir): Constify, eliminate protection against
broken implementations of chdir() method.
(mc_opendir): Constify.


Revision 1.93 - (view) (download) (annotate) - [select for diffs]
Thu Nov 13 08:03:03 2003 UTC (20 years, 5 months ago) by proski
Branch: MAIN
Changes since 1.92: +4 -35 lines
Diff to previous 1.92
* direntry.c (vfs_s_stamp_me): Generalize and move ...
* gc.c (vfs_stamp_create): ... here.  Use whenever possible.


Revision 1.92 - (view) (download) (annotate) - [select for diffs]
Wed Nov 12 23:02:59 2003 UTC (20 years, 5 months ago) by proski
Branch: MAIN
Changes since 1.91: +2 -2 lines
Diff to previous 1.91
* gc.c: Use NULL instead of -1 for empty vfsid.  Adjust all
dependencies.
* undelfs.c (undelfs_get_path): Don't shadow static ext2_fname.
(undelfs_getid): Likewise.  Use fs for non-empty vfsid.


Revision 1.91 - (view) (download) (annotate) - [select for diffs]
Sat Nov 8 23:53:01 2003 UTC (20 years, 5 months ago) by proski
Branch: MAIN
Changes since 1.90: +3 -3 lines
Diff to previous 1.90
* gc.c: Make getid(), nothingisopen() and free() methods
optional.  Eliminate trivial implementations.
(vfs_getid): New function - safe wrapper around getid().  Use
it everywhere.
(vfs_ncs_getid): Remove dead code, inprove readability.


Revision 1.90 - (view) (download) (annotate) - [select for diffs]
Fri Nov 7 23:43:55 2003 UTC (20 years, 5 months ago) by proski
Branch: MAIN
Changes since 1.89: +1 -0 lines
Diff to previous 1.89
* vfs.c: Split garbage collection code into ...
* gc.c: ... this.
* vfs.h: Corresponding code moved ...
* gc.h: ... here.
* Makefile.am: Adjustments for the above.


Revision 1.89 - (view) (download) (annotate) - [select for diffs]
Wed Nov 5 06:08:16 2003 UTC (20 years, 5 months ago) by proski
Branch: MAIN
Changes since 1.88: +24 -2 lines
Diff to previous 1.88
* vfs.c: Move all parsing code, vfs_die() and vfs_get_password()
to utilvfs.c, vfs_print_stats() to direntry.c.
* utilvfs.c (vfs_parse_ls_lga): Disable caching current date,
it's done incorrectly.


Revision 1.88 - (view) (download) (annotate) - [select for diffs]
Wed Oct 29 00:50:37 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.87: +2 -2 lines
Diff to previous 1.87
* utilvfs.c (vfs_mkstemps): New function - create temporary file
with the name resembling the original, but safe for scripts.
* direntry.c (vfs_s_open): Use it.
(vfs_s_retrieve_file): Likewise.
* extfs.c (extfs_open): Likewise.
* sfs.c (sfs_redirect): Likewise.


Revision 1.87 - (view) (download) (annotate) - [select for diffs]
Tue Oct 28 21:52:07 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.86: +2 -3 lines
Diff to previous 1.86
* vfs.c (mc_ungetlocalcopy): Free local path here, not in class
implementations.
* vfs.h (struct vfs_s_class): Constify "local" argument for
ungetlocalcopy.  Adjust all implementations.


Revision 1.86 - (view) (download) (annotate) - [select for diffs]
Tue Oct 28 08:47:04 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.85: +1 -1 lines
Diff to previous 1.85
Typo in the last commit.


Revision 1.85 - (view) (download) (annotate) - [select for diffs]
Tue Oct 28 08:20:30 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.84: +8 -6 lines
Diff to previous 1.84
* direntry.c (vfs_s_init_class): Use our getlocalcopy for remote
filesystems that cache files, not for archives.
(vfs_s_getlocalcopy): Corresponding changes.


Revision 1.84 - (view) (download) (annotate) - [select for diffs]
Tue Oct 28 07:09:40 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.83: +58 -24 lines
Diff to previous 1.83
* direntry.c (vfs_s_init_class): Improve interface to allow more
code reuse.  Change all callers.
(vfs_s_getlocalcopy): New implementation.  Don't use
mc_def_getlocalcopy().  Use vfs_s_open() to create local copy.
(vfs_s_ungetlocalcopy): New function.
* xdirentry.h: Add new field "flags" to struct vfs_s_subclass.
* extfs.c (extfs_ungetlocalcopy): Don't use
mc_def_ungetlocalcopy() in the dead branch.
* vfs.c (mc_def_getlocalcopy): Make static.
(mc_def_ungetlocalcopy): Likewise.


Revision 1.83 - (view) (download) (annotate) - [select for diffs]
Tue Oct 28 02:10:34 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.82: +41 -36 lines
Diff to previous 1.82
* vfs.h: Constify some arguments for many functions.
* xdirentry.h: Likewise.  Adjust all dependencies.


Revision 1.82 - (view) (download) (annotate) - [select for diffs]
Mon Oct 27 03:09:40 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.81: +18 -11 lines
Diff to previous 1.81
* direntry.c (vfs_s_find_inode): Only allow search from root.
Change second argument to superblock to prevent abuse.


Revision 1.81 - (view) (download) (annotate) - [select for diffs]
Mon Oct 27 02:54:59 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.80: +2 -12 lines
Diff to previous 1.80
* direntry.c (vfs_s_find_entry_tree): Eliminate buffer of fixed
size.  Don't prepare path for vfs_s_resolve_symlink().
(vfs_s_resolve_symlink): Remove unused argument "path".


Revision 1.80 - (view) (download) (annotate) - [select for diffs]
Mon Oct 27 01:26:18 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.79: +1 -20 lines
Diff to previous 1.79
* direntry.c (vfs_s_add_dots): Remove.  Fix all callers.
(vfs_s_free_inode): Remove support for "." and ".." entries.
* ftpfs.c (dir_load): Likewise.
Support for "." and ".." entries was a hack that could make the
cache non-traversible from inodes to the root and cause infinite
loop in vfs_s_fullpath().
Reported by Frédéric L. W. Meunier <lists1@pervalidus.net>


Revision 1.79 - (view) (download) (annotate) - [select for diffs]
Sun Oct 26 04:47:20 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.78: +2 -2 lines
Diff to previous 1.78
* wtools.c: Merge mc_message() and message() into one background
safe function message().  Fix all callers.


Revision 1.78 - (view) (download) (annotate) - [select for diffs]
Sat Oct 25 21:34:57 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.77: +0 -1 lines
Diff to previous 1.77
Remove unneeded includes in ../src


Revision 1.77 - (view) (download) (annotate) - [select for diffs]
Sat Oct 25 19:54:24 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76
* background.c: Replace all message stubs with a new function
mc_message().  Protect against strlen(MSG_ERROR).  Adjust all
dependencies.


Revision 1.76 - (view) (download) (annotate) - [select for diffs]
Fri Oct 17 03:25:43 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.75: +2 -0 lines
Diff to previous 1.75
* direntry.c (vfs_s_find_entry_tree): Canonicalize path.


Revision 1.75 - (view) (download) (annotate) - [select for diffs]
Thu Oct 16 23:58:44 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.74: +77 -75 lines
Diff to previous 1.74
* direntry.c (vfs_s_resolve_symlink): Don't use buffers of fixed
size.  This fixes a security hole.  Always start from the root.
Remove broken code for making symlinks relative.
(vfs_s_find_entry_tree): Protect against long path, since this
function uses a buffer of fixed size.
(vfs_s_fullpath): Implement support for archives (real trees).


Revision 1.74 - (view) (download) (annotate) - [select for diffs]
Thu Oct 16 18:51:41 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.73: +3 -0 lines
Diff to previous 1.73
* direntry.c (vfs_s_setctl): Implement VFS_SETCTL_FLUSH.
* ftpfs.c: Remove ftpfs_flushdir.  Use MEDATA->flush.
* fish.c: Use MEDATA->flush.


Revision 1.73 - (view) (download) (annotate) - [select for diffs]
Thu Oct 16 17:08:38 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.72: +14 -8 lines
Diff to previous 1.72
* direntry.c (vfs_s_setctl): Add support to VFS_SETCTL_LOGFILE.
* ftpfs.c (ftpfs_set_debug): Remove.


Revision 1.72 - (view) (download) (annotate) - [select for diffs]
Thu Oct 16 16:12:21 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.71: +10 -16 lines
Diff to previous 1.71
* vfs.h: Rename commands for mc_ctl() and mc_setctl() to make it
clear which function they are used with.
* vfs.c (mc_ctl): Change last argument to (void*).
(mc_set): Likewise.
Adjust all dependencies.


Revision 1.71 - (view) (download) (annotate) - [select for diffs]
Thu Oct 16 08:47:33 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.70: +1 -0 lines
Diff to previous 1.70
* xdirentry.h: Move system includes to the files that need them.


Revision 1.70 - (view) (download) (annotate) - [select for diffs]
Tue Oct 14 22:24:26 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.69: +0 -29 lines
Diff to previous 1.69
* vfs.h: Remove all references to seekdir and telldir.  Adjust
all dependencies.


Revision 1.69 - (view) (download) (annotate) - [select for diffs]
Sun Oct 12 01:00:44 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.68: +43 -43 lines
Diff to previous 1.68
* xdirentry.h: Remove all typedefs, there is no need to hide the
fact that structures are structures.  Fix all dependencies.


Revision 1.68 - (view) (download) (annotate) - [select for diffs]
Sun Oct 12 00:24:01 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.67: +45 -45 lines
Diff to previous 1.67
* vfs.h: Remove typedef vfs, it's too ambiguous.  Massive
changes to use struct vfs_class instead.


Revision 1.67 - (view) (download) (annotate) - [select for diffs]
Sat Oct 11 17:30:54 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.66: +0 -2 lines
Diff to previous 1.66
* vfs.c (vfs_add_noncurrent_stamps): Call vfs_rm_parents() at
the end.  Change all callers not to call it.
(vfs_rm_parents): Make static.


Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Sat Oct 11 16:54:47 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.65: +2 -2 lines
Diff to previous 1.65
* direntry.c: Don't use vfs_local_fs directly, use VFSF_LOCAL.
* extfs.c: Likewise.
* vfs.c (vfs_addstamp): Likewise.
(vfs_init): Register vfs_local_fs like other classes.


Revision 1.65 - (view) (download) (annotate) - [select for diffs]
Sat Oct 11 10:13:36 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.64: +22 -44 lines
Diff to previous 1.64
* direntry.c: Make more functions static.  They are filled in in
vfs_s_init_class() now and don't need to be exported.


Revision 1.64 - (view) (download) (annotate) - [select for diffs]
Sat Oct 11 07:20:53 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.63: +2 -2 lines
Diff to previous 1.63
* undelfs.c (undelfs_get_path): Constify first argument.
* vfs.h (struct vfs_class): Constify path.  Fix all dependencies.


Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Sat Oct 11 06:25:29 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62
* vfs.c (vfs_type): Rename to vfs_get_class().  Fix prototype to
avoid using internal vfs type.  Adjust all dependencies.
(vfs_rosplit): Rename to _vfs_get_class().


Revision 1.62 - (view) (download) (annotate) - [select for diffs]
Fri Oct 10 23:38:03 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.61: +1 -0 lines
Diff to previous 1.61
* fish.c: Convert to calling vfs_register_class().
* fish.h: Eliminate.  Adjust all dependencies.
* direntry.c (vfs_s_init_class): Add missing vfs_s_setctl().


Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Fri Oct 10 23:13:09 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.60: +26 -0 lines
Diff to previous 1.60
* vfs.h: Rename "struct _vfs" to "struct vfs_class".  Allow
calling vfs_register() in the file defining the VFS class.
* vfs.c (vfs_init): Register cpiofs in cpio.c.
(vfs_register): Rename to vfs_register_class(), remove "static".
* direntry.c (vfs_s_init_class): New function - generic VFS
class registraction for vfs_s descendants.
* cpio.c: Register VFS class locally.


Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Tue Oct 7 22:38:29 2003 UTC (20 years, 6 months ago) by proski
Branch: MAIN
Changes since 1.59: +9 -15 lines
Diff to previous 1.59
* direntry.c: Make functions static when possible.
* xdirentry.h: Remove unneeded declarations.


Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Fri Aug 29 22:48:25 2003 UTC (20 years, 8 months ago) by proski
Branch: MAIN
Changes since 1.58: +2 -0 lines
Diff to previous 1.58
* direntry.c (vfs_s_dump): Commented out.
* extfs.c (s_readlink): Fix return value and possible buffer
overflow.
* mcfs.c (mcfs_readlink): Fix return value.
* mcserv.c (do_readlink):  Fix possible off-by-one.
(commands): Make const array and remove needless comma.


Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Wed Feb 19 14:04:36 2003 UTC (21 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.57: +6 -6 lines
Diff to previous 1.57
* direntry.c (vfs_s_dump): SunOS 5.8 warning fix.  Reformat function.


Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Thu Dec 26 02:21:43 2002 UTC (21 years, 4 months ago) by proskin
Branch: MAIN
CVS Tags: MC_4_6_0, MC_4_6_0_pre2, MC_4_6_0_pre3
Changes since 1.56: +1 -1 lines
Diff to previous 1.56
s/can not/cannot/


Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Wed Dec 25 04:57:26 2002 UTC (21 years, 4 months ago) by proskin
Branch: MAIN
Changes since 1.55: +3 -1 lines
Diff to previous 1.55
* direntry.c (vfs_s_open): If the filesystem is read-only,
disable file creation.


Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Mon Dec 16 06:04:06 2002 UTC (21 years, 4 months ago) by proskin
Branch: MAIN
Changes since 1.54: +1 -1 lines
Diff to previous 1.54
s/Dir cache/Directory cache/
"Dir cache" should be in geek.po :-)


Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Mon Oct 7 05:32:45 2002 UTC (21 years, 6 months ago) by proskin
Branch: MAIN
Changes since 1.53: +12 -10 lines
Diff to previous 1.53
* direntry.c (vfs_s_resolve_symlink): Use g_snprintf() instead
of non-portable snprintf().
Reported by Xu Qiang <Xu.Qiang@xssc.sgp.xerox.com>


Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Sun Sep 29 18:35:14 2002 UTC (21 years, 6 months ago) by proskin
Branch: MAIN
Changes since 1.52: +24 -16 lines
Diff to previous 1.52
* direntry.c (vfs_s_retrieve_file): Allow interrupt by Ctrl-C.
From Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>


Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Thu Sep 26 23:13:48 2002 UTC (21 years, 7 months ago) by proskin
Branch: MAIN
Changes since 1.51: +0 -2 lines
Diff to previous 1.51
Global removal of RCS Id: flags.


Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Fri Sep 6 01:34:12 2002 UTC (21 years, 7 months ago) by proskin
Branch: MAIN
Changes since 1.50: +3 -1 lines
Diff to previous 1.50
* direntry.c [!USE_NETCODE]: Disable functions used in networked
filesystems only.


Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Tue Aug 20 01:08:34 2002 UTC (21 years, 8 months ago) by proskin
Branch: MAIN
CVS Tags: MC_4_6_0_pre1
Changes since 1.49: +4 -2 lines
Diff to previous 1.49
* direntry.c (vfs_s_get_line): Fix off-by-one buffer overflow.


Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Thu Aug 15 21:31:54 2002 UTC (21 years, 8 months ago) by proskin
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48
* direntry.c (vfs_s_getlocalcopy): Fix potentially dangerous
strcpy().


Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Thu Aug 15 21:15:17 2002 UTC (21 years, 8 months ago) by proskin
Branch: MAIN
Changes since 1.47: +13 -17 lines
Diff to previous 1.47
* extfs.c (s_readdir): Simplify.
* direntry.c (vfs_s_readdir): Use vfs_dirent.
* mcfs.c (mcfs_readdir): Likewise.
* smbfs.c (smbfs_readdir): Likewise.
* undelfs.c (undelfs_readdir): Use vfs_dirent and
compute_namelen().


Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Thu Aug 15 19:38:17 2002 UTC (21 years, 8 months ago) by proskin
Branch: MAIN
Changes since 1.46: +2 -4 lines
Diff to previous 1.46
* direntry.c (vfs_s_readdir): Use compute_namelen().
* extfs.c (s_readdir): Likewise.
* mcfs.c (mcfs_readdir): Likewise.
* smbfs.c (smbfs_readdir): Likewise.


Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Fri Jul 26 21:58:43 2002 UTC (21 years, 9 months ago) by proskin
Branch: MAIN
Changes since 1.45: +3 -1 lines
Diff to previous 1.45
* direntry.c (vfs_s_find_entry_linear): Canonicalize path before searching


Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Fri Jul 19 16:04:27 2002 UTC (21 years, 9 months ago) by proskin
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44
* xdirentry.h: Get rid of ifree(), it's equivalent to g_free().
* direntry.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.


Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Wed Jul 10 17:56:27 2002 UTC (21 years, 9 months ago) by proskin
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43
* direntry.c (vfs_s_open): Don't pass O_LINEAR to open() -
this flag is for VFS only, and causes side effects in Cygwin.
* extfs.c (extfs_open): Likewise.
* sfs.c (sfs_open): Likewise.
Reported by Pavel Tsekov <ptsekov@gmx.net>


Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Wed May 22 17:19:24 2002 UTC (21 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42
* xdirentry.h (vfs_s_fh.u.ftp): Add append field.
(vfs_s_data.file_store): Change second argument
to (vfs_s_fh *fh).
* direntry.c (vfs_s_close): Adjust.
* fish.c (file_store): Likewise.
* ftpfs.c (file_store): Likewise.  Use "APPE" if
fh->u.ftp.append is true.
(linear_start): Care about fh->u.ftp.append.
(ftpfs_fh_open): Likewise.


Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Tue May 21 17:27:30 2002 UTC (21 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.41: +1 -4 lines
Diff to previous 1.41
* direntry.c (vfs_s_retrieve_file): Please, care about
fish.local_stat ...
* fish.c (linear_close): ... here.


Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Fri May 17 07:08:03 2002 UTC (21 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.40: +8 -8 lines
Diff to previous 1.40
* direntry.c (vfs_s_read): Move MEDATA->linear_start() ...
* (vfs_s_open): ... here.


Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Wed Mar 6 08:46:35 2002 UTC (22 years, 1 month ago) by andrew
Branch: MAIN
Changes since 1.39: +7 -8 lines
Diff to previous 1.39
* direntry.c (vfs_s_resolve_symlink): Comment out buggy code.
(vfs_s_retrieve_file): Set fh->handle to -1.
(vfs_s_read): Don't manipulate with FH->handle if it is -1.
(vfs_s_write): Likewise.
(vfs_s_close): Likewise.


Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Fri Feb 8 09:42:38 2002 UTC (22 years, 2 months ago) by andrew
Branch: MAIN
Changes since 1.38: +5 -5 lines
Diff to previous 1.38
* direntry.c (vfs_s_retrieve_file): Use off_t for total
and stat_size.

* vfs.c (vfs_s_resolve_symlink): Use snprintf
instead of sprintf.
(vfs_print_stats): Use off_t for have and need.  Cast
have to double to eliminate negative percent(s).
Fix print_vfs_message string formats.

* vfs.h (vfs_print_stats): Adjust declaration.

* ftpfs.c (file_store): Use off_t for total.
Fix print_vfs_message string format.


Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Thu Aug 16 22:23:05 2001 UTC (22 years, 8 months ago) by proskin
Branch: MAIN
CVS Tags: MC_4_5_55
Branch point for: Branch_MC_4_5_x
Changes since 1.37: +5 -3 lines
Diff to previous 1.37
* direntry.c (vfs_s_free_super): Remove i18n on commented out
developer-only code.


Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Mon Jun 25 21:34:46 2001 UTC (22 years, 10 months ago) by proskin
Branch: MAIN
Changes since 1.36: +4 -2 lines
Diff to previous 1.36
* cpio.c: Include <config.h> before everything else.
* direntry.c: Likewise.
* fish.c: Likewise.
* ftpfs.c: Likewise.
* local.c: Likewise.
* tar.c: Likewise.
* utilvfs.h: Don't include <config.h> - it should be included
in all C files instead.
* xdirentry.h: Likewise.


Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Thu Jun 14 20:08:27 2001 UTC (22 years, 10 months ago) by proskin
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35
* ftpfs.c: Declare functions without declarations static. Don't
omit `void' in declarations.
* cpio.c: Likewise.
* direntry.c: Likewise.
* extfs.c: Likewise.
* mcfs.c: Likewise.
* tar.c: Likewise.
* vfs.c: Likewise.
* vfs.h: Likewise.
* mcserv.c: Likewise. Remove unused functions.


Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Mon May 21 16:21:08 2001 UTC (22 years, 11 months ago) by proskin
Branch: MAIN
Changes since 1.34: +7 -21 lines
Diff to previous 1.34
* src/ext.c (exec_extension): Use mc_mkstemps().
* src/user.c (execute_menu_command): Use mc_mkstemps().
* src/util.c (mc_mkstemps): New function - safely create and
open temporary file. Return the handle and the name.
* src/util.h: Declarations for init_tmpdir() and mc_mkstemps().
Define TMPDIR_DEFAULT and SCRIPT_SUFFIX.
* vfs/direntry.c (vfs_s_open): Use mc_mkstemps. Create and close
temporary file to reserve its name on the filesystem.
(vfs_s_retrieve_file): Use mc_mkstemps().
(g_tempnam): Remove.
* vfs/extfs.c (extfs_open): Use mc_mkstemps().
* vfs/sfs.c (redirect): Likewise.
* vfs/shared_ftp_fish.c (_get_file_entry): Likewise.
(retrieve_file): Likewise.
* vfs/vfs.c (mc_def_getlocalcopy): Likewise.
* vfs/xdirentry.h: Remove declaration of g_tempnam().


Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Tue Oct 31 15:43:49 2000 UTC (23 years, 5 months ago) by pavel
Branch: MAIN
CVS Tags: MC_4_5_54
Changes since 1.33: +20 -3 lines
Diff to previous 1.33
Fixes from Roland: we may not g_free() strdup-ed text.


Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Wed May 10 10:19:00 2000 UTC (23 years, 11 months ago) by pavel
Branch: MAIN
CVS Tags: MC_4_5_47, MC_4_5_51
Changes since 1.32: +2 -1 lines
Diff to previous 1.32
Do not leave st_nlink uninitialized.


Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Wed May 3 19:10:52 2000 UTC (23 years, 11 months ago) by pavel
Branch: MAIN
Changes since 1.31: +9 -11 lines
Diff to previous 1.31
Fixed problems with stating / of ftp archive; minor bugfix.


Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Fri Apr 28 07:56:31 2000 UTC (24 years ago) by pavel
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30
2000-04-28  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>

        * direntry.c (vfs_s_internal_stat): added ugly special case for /
        of archive to always exist. It seems I'm hiding some underlying
        problem :-(.


Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Fri Apr 28 07:43:13 2000 UTC (24 years ago) by pavel
Branch: MAIN
Changes since 1.29: +13 -23 lines
Diff to previous 1.29
2000-04-26  Andrew V. Samoilov <sav@bcs.zp.ua>

        * direntry.c (vfs_s_find_entry_tree): segfault fixed when root is NULL

        (vfs_s_new_inode, vfs_s_new_entry): g_new replaced by g_new0

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

        (ftpfs_directory_timeout): default value changed to 900

        (netrc_next): "const char * const keywords" go to rodata and is shared


Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Sun Apr 16 19:13:00 2000 UTC (24 years ago) by pavel
Branch: MAIN
Changes since 1.28: +10 -4 lines
Diff to previous 1.28
Fix problems with stating / of ftp server + NO_LOCALHASH to prevent
podfuk deadlocs


Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Wed Apr 5 13:08:43 2000 UTC (24 years ago) by pavel
Branch: MAIN
Changes since 1.27: +8 -10 lines
Diff to previous 1.27
2000-03-31 Andrew V. Samoilov <sav@bcs.zp.ua>

	* vfs.c (mc_def_getlocalcopy): free() replaced by g_free() to prevent
	  crushes with mad, thanks to Timur I. Bakeyev <timur@bat.ru>
	* fish.c (linear_start): name wasn't freed after usage
	* cpio.c (cpio_ungetlocalcopy): return type changed to int,
	  function return 0 now
	* direntry.c (vfs_s_close, vfs_s_resolve_symlink): memory, allocated
	  by vfs_s_fullpath () is freed after use
	* ftpfs.c (linear_start): ditto;


Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Mon Jan 31 13:48:00 2000 UTC (24 years, 2 months ago) by pavel
Branch: MAIN
CVS Tags: MC_4_5_44
Changes since 1.26: +17 -23 lines
Diff to previous 1.26
2000-01-31  Andrew V. Samoilov <sav@bcs.zp.ua>

	* direntry.c: (vfs_s_resolve_symlink, vfs_s_readlink) fixed segfaults
	for broken symlinks like 2001 -> The Space Oddysea.


Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Mon Jan 24 12:35:53 2000 UTC (24 years, 3 months ago) by pavel
Branch: MAIN
Changes since 1.25: +1 -2 lines
Diff to previous 1.25
ftpfs can not handle homes nicely. Is there good way to solve this?


Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Thu Dec 16 12:55:16 1999 UTC (24 years, 4 months ago) by pavel
Branch: MAIN
Changes since 1.24: +9 -13 lines
Diff to previous 1.24
1999-12-15  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>

	* Merged changes by Andrew V. Samoilov <sav@bcs.zp.ua>. They are
	mostly internationalization + fixing stupid bugs of mine


Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Wed Dec 8 11:39:15 1999 UTC (24 years, 4 months ago) by pavel
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23
1999-12-08  Pavel Machek  <pavel@artax.karlin.mff.cuni.cz>

        * ftpfs.c: basically replaced ftpfs with new one. Unlike the
        previous one, this uses new direntry.c layer, so shared_ftp_fish.c
        can be killed.

        This is new code, so beware.


Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Wed Nov 3 14:51:22 1999 UTC (24 years, 5 months ago) by pavel
Branch: MAIN
CVS Tags: MC_4_5_42
Changes since 1.22: +111 -23 lines
Diff to previous 1.22
1999-02-17  Pavel Machek  <pavel@bug.ucw.cz>

	* direntry.c (vfs_s_getlocalcopy): fixed segfault, getlocalcopy's
	name has to be malloced.


Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Wed Aug 18 19:08:56 1999 UTC (24 years, 8 months ago) by norbert
Branch: MAIN
CVS Tags: GNOME_LIBS_1_0_13, GNOME_LIBS_1_0_15, GNOME_LIBS_1_0_16, GNOME_LIBS_1_0_17, GNOME_LIBS_1_0_18, GNOME_LIBS_1_0_40, GNOME_LIBS_1_0_42, GNOME_LIBS_1_0_50, MC_4_5_38, MC_4_5_39, MC_4_5_40, MC_4_5_41
Branch point for: gdk-pixbuf-port, hp-gdk-pixbuf
Changes since 1.21: +1 -1 lines
Diff to previous 1.21
1999-08-18  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/direntry.c (vfs_s_getlocalcopy): There's an aditional strdup
needed. In rare cases a pointer was freed twice. Pavel Machek
pointed this out a while ago but obviously it hasn't been fixed, yet.

* vfs/sfs.c (vfmake): Quote characters with a special meaning to the
shell in filenames/-pathes (Fix Bug #1931, VFS will not work if
your full path has the space character in it.).


Revision 1.21.6.1 - (view) (download) (annotate) - [select for diffs]
Wed Mar 24 12:33:36 1999 UTC (25 years, 1 month ago) by pavel
Branch: HACKS45
Changes since 1.21: +112 -24 lines
Diff to previous 1.21 , to next main 1.125
ftpfs converted to direntry.c, many small fixes


Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Sat Feb 13 21:39:26 1999 UTC (25 years, 2 months ago) by unammx
Branch: MAIN
CVS Tags: GNOME_0_99_8_1, GNOME_LIBS_1_0_0, GNOME_LIBS_1_0_1, GNOME_LIBS_1_0_10_PLUS, GNOME_LIBS_1_0_11, GNOME_LIBS_1_0_11_PRE1, GNOME_LIBS_1_0_12, GNOME_LIBS_1_0_2, GNOME_LIBS_1_0_3, GNOME_LIBS_1_0_4, GNOME_LIBS_1_0_5, GNOME_LIBS_1_0_7, GNOME_LIBS_1_0_8, GNOME_LIBS_1_0_PRE10, MC_4_5_15, MC_4_5_16, MC_4_5_18, MC_4_5_21, MC_4_5_24, MC_4_5_26, MC_4_5_27, MC_4_5_28, MC_4_5_29, MC_4_5_30, MC_4_5_31, MC_4_5_34, MC_4_5_36, MC_4_5_37, V1_0_1
Branch point for: DESKTOP_PANEL, DII_OBJECT, HACKS45, WM_CLASSES_AND_DND_DENTRY
Changes since 1.20: +1 -0 lines
Diff to previous 1.20
OS/2 portability changes by Ilya


Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Wed Jan 27 00:49:14 1999 UTC (25 years, 3 months ago) by timur
Branch: MAIN
CVS Tags: GNOME_0_99_5, GNOME_0_99_6, GNOME_0_99_7, GNOME_0_99_8, MC_4_5_10, MC_4_5_11, MC_4_5_12, MC_4_5_14
Changes since 1.19: +3 -3 lines
Diff to previous 1.19
Glibing....
Wed Jan 27 03:09:48 1999  Timur I. Bakeyev <mc@bat.ru>

	* All around the source: Changed copy_strings() to g_strconcat(). Modi-
	fy last parameter in concat_dir_and_file() to "" - to prevent stack from
	disbalancing.


Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Wed Jan 20 22:01:13 1999 UTC (25 years, 3 months ago) by timur
Branch: MAIN
Changes since 1.18: +29 -53 lines
Diff to previous 1.18
Actually commit all my changers. Fear :>


Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Sun Jan 17 23:10:53 1999 UTC (25 years, 3 months ago) by unammx
Branch: MAIN
CVS Tags: MC_4_5_8, MC_4_5_9
Changes since 1.17: +2 -2 lines
Diff to previous 1.17
Make the code compile, take 2


Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Sun Jan 17 23:10:05 1999 UTC (25 years, 3 months ago) by unammx
Branch: MAIN
Changes since 1.16: +289 -209 lines
Diff to previous 1.16

Make the code compile.

Reindent


Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Sun Jan 17 12:33:45 1999 UTC (25 years, 3 months ago) by psheer
Branch: MAIN
Changes since 1.15: +15 -13 lines
Diff to previous 1.15
more fixes to resolve symlinks


Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Sun Jan 17 11:46:42 1999 UTC (25 years, 3 months ago) by psheer
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14
vfs_s_find_entry_tree() does not actually follow symlinks - fixed


Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Sun Jan 17 10:07:37 1999 UTC (25 years, 3 months ago) by psheer
Branch: MAIN
Changes since 1.13: +29 -16 lines
Diff to previous 1.13
vfs_s_resolve_symlink(): convert absolute linknames to relative linkname with some leading ../


Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Mon Jan 11 00:48:28 1999 UTC (25 years, 3 months ago) by unammx
Branch: MAIN
CVS Tags: GNOME_0_99_3, MC_4_5_7, pre-file-context
Changes since 1.12: +34 -18 lines
Diff to previous 1.12


Lots of changes:

	- SFS-based file systems now work on GNOME edition, I was
	  not waiting for child process to finish decompressing.

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

Miguel


Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Sat Jan 2 07:46:30 1999 UTC (25 years, 3 months ago) by unammx
Branch: MAIN
CVS Tags: GNOME_0_99_2, MC_4_5_5
Branch point for: FileOpContext-changes
Changes since 1.11: +2 -0 lines
Diff to previous 1.11

1999-01-02  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gmetadata.c (gmeta_get_icon_pos): Fixed the memory leak here.

	* gicon.c (gicon_get_icon_for_file): Actually return a value
	here.

Editor fixes, vfs warning fixes;


Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Thu Dec 31 15:54:50 1998 UTC (25 years, 3 months ago) by norbert
Branch: MAIN
Changes since 1.10: +6 -4 lines
Diff to previous 1.10
Thu Dec 31 08:47:15 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* sfs.c (sfs_nothingisopen): Assume for now it's always save to free
this filesystem and delete temporary files. This needs further
investigation.

* tar.c: deleted unused empty struct tar_super.

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

* direntry.c: Split fd_usage into fd_usage and ino_usage. fd_usage
was used for external and internal reference count. This was wrong
because we can free resources taken up by the vfs as soon as the
external reference count (now fd_usage) is zero. The internal
reference count (ino_usage) mustn't matter because the vfs has to
clean up itself in the correct order.


Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Mon Dec 28 10:27:08 1998 UTC (25 years, 4 months ago) by norbert
Branch: MAIN
CVS Tags: MC_4_5_4
Changes since 1.9: +4 -2 lines
Diff to previous 1.9
Fri Dec 25 21:48:51 1998  Norbert Warmuth  <nwarmuth@privat.circular.de>

* vfs/direntry.c (vfs_s_new_inode): Moved initialization of st_ino
and st_dev from vfs_s_default_stat.

(vfs_s_default_stat): initialize st_ino and st_dev to zero

* vfs/tar.c (tar_open_archive): Make a new MEDATA->rdev for every
new archive.


Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Wed Dec 9 20:22:58 1998 UTC (25 years, 4 months ago) by pavel
Branch: MAIN
CVS Tags: FOR_GNOME_0_99_1, GNOME_STABLE_ANCHOR, MC_4_5_3
Branch point for: GNOME_STABLE, MC_MIME_TYPE
Changes since 1.8: +11 -7 lines
Diff to previous 1.8
Some fixes in src/ part (want_stale_data is now done right) and more
daring code in vfs/ (errors are now reported instead of silently
ignored)


Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Wed Dec 2 23:44:37 1998 UTC (25 years, 4 months ago) by unammx
Branch: MAIN
Changes since 1.7: +0 -1 lines
Diff to previous 1.7

Many changes:

	- Beginning of the CORBA support for the file manager.
	- Tk and XView code dropped.

Miguel


Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Wed Dec 2 13:17:25 1998 UTC (25 years, 4 months ago) by wilhelmi
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6
1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * fish.c (FISH_OP): changed snprintf to g_snprintf, as glib is
        used anyway.

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

        * vfs.h (ELAST): define it to 300, if not already defined, thats a
        bad hack, but what can we do....


Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Wed Dec 2 05:11:48 1998 UTC (25 years, 4 months ago) by namsh
Branch: MAIN
Changes since 1.5: +1 -0 lines
Diff to previous 1.5
* direntry.c (vfs_s_new_super): Added the missing return value.


Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Sun Nov 22 16:17:44 1998 UTC (25 years, 5 months ago) by pavel
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4
Small bugfixes, killing of debuging hacks that escaped me.


Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Sat Nov 21 19:36:13 1998 UTC (25 years, 5 months ago) by pavel
Branch: MAIN
Changes since 1.3: +476 -96 lines
Diff to previous 1.3
Big merge: fish now uses proper caching, small fixes almost
everywhere. I hope I did not break it too much.


Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Wed Oct 28 16:07:56 1998 UTC (25 years, 6 months ago) by pavel
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2
Bugfixes


Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Fri Oct 23 20:18:49 1998 UTC (25 years, 6 months ago) by unammx
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1
Make it compile


Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Fri Oct 23 08:26:26 1998 UTC (25 years, 6 months ago) by pavel
Branch: MAIN
BIG changes: tar now uses brand-new direntry.c. Hope it does not hurt
too much.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26