From 15e0ddd98cd4b33c3b00f620b04ab832922b5c69 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 22 Jan 2002 22:23:49 +0000 Subject: [PATCH] * extfs/uzip: Fix unsafe printf. Reported by Jari Karppinen --- vfs/ChangeLog | 5 +++++ vfs/extfs/uzip | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index bc6bf4f3c..c0bbf9e9b 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,8 @@ +2002-01-22 Pavel Roskin + + * extfs/uzip: Fix unsafe printf. + Reported by Jari Karppinen + 2002-01-22 Andrew V. Samoilov * ftpfs.c (ftpfs_chmod): Add missed '/'. diff --git a/vfs/extfs/uzip b/vfs/extfs/uzip index e48ead188..69ef0baaa 100644 --- a/vfs/extfs/uzip +++ b/vfs/extfs/uzip @@ -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";