Ticket #2983: patch-ls-ub.diff

File patch-ls-ub.diff, 795 bytes (added by andrew_b, 11 years ago)

Patch of Dieter Werner

  • 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:\"$e_filename\" -> \"$linkname\"\n\n", S_IMODE($mode), S_IFMT($mode)); 
     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); 
    141141    } else { 
    142         printf("R%%o %%o $uid.$gid\nS$size\nd$mloctime\n:\"$e_filename\"\n\n", S_IMODE($mode), S_IFMT($mode)); 
     142        printf("R%%o %%o $uid.$gid\nS$size\nd$mloctime\n:\"%%s\"\n\n", S_IMODE($mode), S_IFMT($mode), $e_filename); 
    143143    } 
    144144} 
    145145    printf("### 200\n");