* extfs/uzip: Fix unsafe printf.

Reported by Jari Karppinen <jakarppi@mail.student.oulu.fi>
This commit is contained in:
Pavel Roskin 2002-01-22 22:23:49 +00:00
parent bde1ed0ebf
commit 15e0ddd98c
2 changed files with 7 additions and 1 deletions

View File

@ -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 '/'.

View File

@ -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";