mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
* extfs/uzip: Fix unsafe printf.
Reported by Jari Karppinen <jakarppi@mail.student.oulu.fi>
This commit is contained in:
parent
bde1ed0ebf
commit
15e0ddd98c
@ -1,3 +1,8 @@
|
||||
2002-01-22 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* extfs/uzip: Fix unsafe printf.
|
||||
Reported by Jari Karppinen <jakarppi@mail.student.oulu.fi>
|
||||
|
||||
2002-01-22 Andrew V. Samoilov <kai@cmail.ru>
|
||||
|
||||
* ftpfs.c (ftpfs_chmod): Add missed '/'.
|
||||
|
@ -285,7 +285,8 @@ sub print_file {
|
||||
if ($platform ne 'unx') {
|
||||
$perms = ($filename =~ /\/$/ ? 'drwxr-xr-x' : '-rw-r--r--');
|
||||
}
|
||||
printf "%-10s 1 %-8d %-8d %8d $mon $day $year $hours:$mins $filename", $perms, $<, $(, $realsize;
|
||||
printf "%-10s 1 %-8d %-8d %8d %s %s %s %s:%s %s", $perms, $<,
|
||||
$(, $realsize, $mon, $day, $year, $hours, $mins, $filename;
|
||||
if ($platform eq 'unx' && $perms =~ /^l/) {
|
||||
my $linkdest = &get_link_destination($filename);
|
||||
print " -> $linkdest";
|
||||
|
Loading…
Reference in New Issue
Block a user