Ticket #1450: fish_vfs_date.patch

File fish_vfs_date.patch, 701 bytes (added by IMDagger, 13 years ago)

Fix for FISHFS files modification date

  • vfs/fish.c

    diff --git a/vfs/fish.c b/vfs/fish.c
    index ec29975..c16a760 100644
    a b fish_dir_load(struct vfs_class *me, struct vfs_s_inode *dir, char *remote_path) 
    417417                   "if (opendir ( DIR, $dirname )) {\n" 
    418418                   "while( (my $filename = readdir(DIR))){\n" 
    419419                   "my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks) = lstat(\"$dirname/$filename\");\n" 
    420                    "my $mloctime= scalar localtime $mtime;\n" 
     420                   "my $mloctime= strftime(\"%%m-%%d-%%Y %%H:%%M\", localtime $mtime);\n" 
    421421        , 
    422422                   "my $strutils_shell_escape_regex= s/([;<>\\*\\|`&\\$!#\\(\\)\\[\\]\\{\\}:'\\''\"\\ \\\\])/\\\\$1/g;\n" 
    423423                   "my $e_filename = $filename;\n"