Just so we get this upstream(ed) (security) fix in B:S, even though fish is and should stay disabled for now (bnc#856501 / mc ticket #3128). I'm committing this so that we have a common ground to work from. OBS-URL: https://build.opensuse.org/request/show/226074 OBS-URL: https://build.opensuse.org/package/show/Base:System/mc?expand=0&rev=88
19 lines
938 B
Diff
19 lines
938 B
Diff
--- src/vfs/fish/helpers/ls.orig 2013-04-10 22:04:31.000000000 +0200
|
|
+++ src/vfs/fish/helpers/ls 2014-03-15 15:35:18.000000000 +0100
|
|
@@ -137,9 +137,13 @@
|
|
if (S_ISLNK ($mode)) {
|
|
my $linkname = readlink ("$dirname/$filename");
|
|
$linkname =~ $strutils_shell_escape_regex;
|
|
- printf("R%%o %%o $uid.$gid\nS$size\nd$mloctime\n:\"$e_filename\" -> \"$linkname\"\n\n", S_IMODE($mode), S_IFMT($mode));
|
|
+ printf("R%%o %%o %%i.%%i\nS%%lld\nd%%s\n:\"%%s\" -> \"%%s\"\n\n",
|
|
+ S_IMODE($mode), S_IFMT($mode),
|
|
+ $uid, $gid, $size, $mloctime, $e_filename, $linkname);
|
|
} else {
|
|
- printf("R%%o %%o $uid.$gid\nS$size\nd$mloctime\n:\"$e_filename\"\n\n", S_IMODE($mode), S_IFMT($mode));
|
|
+ printf("R%%o %%o %%i.%%i\nS%%lld\nd%%s\n:\"%%s\"\n\n",
|
|
+ S_IMODE($mode), S_IFMT($mode),
|
|
+ $uid, $gid, $size, $mloctime, $e_filename);
|
|
}
|
|
}
|
|
printf("### 200\n");
|