diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-07-29 15:18:54 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-07-29 15:18:54 +0000 |
commit | 88a07c82cece62903ae68e1e2c482d810bbf8560 (patch) | |
tree | 5eee08b842d20f111fc82bba2e42425e253e8a50 /perl-install/partition_table_raw.pm | |
parent | 5dc2835bfbf1f53ad51ba540f4423c22cc94b26c (diff) | |
download | drakx-backup-do-not-use-88a07c82cece62903ae68e1e2c482d810bbf8560.tar drakx-backup-do-not-use-88a07c82cece62903ae68e1e2c482d810bbf8560.tar.gz drakx-backup-do-not-use-88a07c82cece62903ae68e1e2c482d810bbf8560.tar.bz2 drakx-backup-do-not-use-88a07c82cece62903ae68e1e2c482d810bbf8560.tar.xz drakx-backup-do-not-use-88a07c82cece62903ae68e1e2c482d810bbf8560.zip |
no_comment
Diffstat (limited to 'perl-install/partition_table_raw.pm')
-rw-r--r-- | perl-install/partition_table_raw.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/partition_table_raw.pm b/perl-install/partition_table_raw.pm index d85789a50..973961f5a 100644 --- a/perl-install/partition_table_raw.pm +++ b/perl-install/partition_table_raw.pm @@ -93,9 +93,9 @@ sub write($$$) { compute_CHS($hd, $_); local $_->{start} = $_->{local_start} || 0; $_->{active} ||= 0; $_->{type} ||= 0; $_->{size} ||= 0; # for no warning - syswrite F, pack($format, @$_{@fields}) or return 0; + syswrite F, pack($format, @$_{@fields}), psizeof($format) or return 0; } - syswrite F, $magic or return 0; + syswrite F, $magic, length $magic or return 0; 1; } sub zero_MBR($) { &write($_[0], 0, [ {} x $nb_primary ]); } |