aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-10-04 20:36:25 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-10-04 20:36:25 -0700
commit13bc29482e0535b05531f234baf10e1b7192e675 (patch)
treeba67abdf5537cfe4b1c2b252ba40e38ef1baff77
parentf4a0e5eb5385f99992b349e76b52d51d5c52ef1d (diff)
downloadkup-13bc29482e0535b05531f234baf10e1b7192e675.tar.gz
kup: cat_file should output the size, not the filename
The second parameter to DATA or SIGN is the size, not the filename. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rwxr-xr-xkup2
1 files changed, 1 insertions, 1 deletions
diff --git a/kup b/kup
index 8b8436f..1acc1e9 100755
--- a/kup
+++ b/kup
@@ -249,7 +249,7 @@ sub cat_file($$$)
if (!defined($fmt)) {
$fmt = get_data_format($blk);
- print "${cmd} ${file} ${fmt}\n";
+ print "${cmd} ${size} ${fmt}\n";
}
print $blk;