summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table_raw.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-10-09 13:55:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-10-09 13:55:00 +0000
commitcce82543244847bc44ccdd9d116e2fd04599f14c (patch)
tree44b11bfefbe3868b02636ff1e79d36bc03ee3846 /perl-install/partition_table_raw.pm
parentbe169c8f9492e46ef6c587fb7d0b705039a0610e (diff)
downloaddrakx-backup-do-not-use-cce82543244847bc44ccdd9d116e2fd04599f14c.tar
drakx-backup-do-not-use-cce82543244847bc44ccdd9d116e2fd04599f14c.tar.gz
drakx-backup-do-not-use-cce82543244847bc44ccdd9d116e2fd04599f14c.tar.bz2
drakx-backup-do-not-use-cce82543244847bc44ccdd9d116e2fd04599f14c.tar.xz
drakx-backup-do-not-use-cce82543244847bc44ccdd9d116e2fd04599f14c.zip
fix detecting read-only drives (like memory-sticks)
Diffstat (limited to 'perl-install/partition_table_raw.pm')
-rw-r--r--perl-install/partition_table_raw.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/partition_table_raw.pm b/perl-install/partition_table_raw.pm
index bbeaaa5ad..a56ff7648 100644
--- a/perl-install/partition_table_raw.pm
+++ b/perl-install/partition_table_raw.pm
@@ -141,7 +141,7 @@ sub test_for_bad_drives {
my $sector = $hd->{geom}{sectors} - 1;
- local *F; openit($hd, *F, 2) or return;
+ local *F; openit($hd, *F, 2) or die "can't open device";
my $seek = sub {
c::lseek_sector(fileno(F), $sector, 0) or die "seeking to sector $sector failed";