Ticket #2983: patch-ls-ub.diff
File patch-ls-ub.diff, 795 bytes (added by andrew_b, 11 years ago) |
---|
-
ls
old new 137 137 if (S_ISLNK ($mode)) { 138 138 my $linkname = readlink ("$dirname/$filename"); 139 139 $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); 141 141 } 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); 143 143 } 144 144 } 145 145 printf("### 200\n");