Ticket #2983: vfs_fish_helpers_ls-percent.diff

File vfs_fish_helpers_ls-percent.diff, 949 bytes (added by dnh, 11 years ago)

vfs_fish_helpers_ls-percent.diff

  • src/vfs/fish/helpers/ls

    old new  
    137137    if (S_ISLNK ($mode)) { 
    138138        my $linkname = readlink ("$dirname/$filename"); 
    139139        $linkname =~ $strutils_shell_escape_regex; 
    140         printf("R%%o %%o $uid.$gid\nS$size\nd$mloctime\n:\"%%s\" -> \"%%s\"\n\n", S_IMODE($mode), S_IFMT($mode), $e_filename, $linkname); 
     140        printf("R%%o %%o %%i.%%i\nS%%i\nd%%s\n:\"%%s\" -> \"%%s\"\n\n", 
     141             S_IMODE($mode), S_IFMT($mode), 
     142             $uid, $gid, $size, $mloctime, $e_filename, $linkname); 
    141143    } else { 
    142         printf("R%%o %%o $uid.$gid\nS$size\nd$mloctime\n:\"%%s\"\n\n", S_IMODE($mode), S_IFMT($mode), $e_filename); 
     144        printf("R%%o %%o %%i.%%i\nS%%i\nd%%s\n:\"%%s\"\n\n", 
     145             S_IMODE($mode), S_IFMT($mode), 
     146             $uid, $gid, $size, $mloctime, $e_filename); 
    143147    } 
    144148} 
    145149    printf("### 200\n");