From 9d0490fbc17c2eb713c99377c794747e9e81a60c Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 1 Dec 2005 17:12:28 +0000 Subject: Patch by Blino to be less liberal in what we detect in /proc/mount to figure out if a filesystem is read-only --- urpm/sys.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpm') diff --git a/urpm/sys.pm b/urpm/sys.pm index d398120f..9ab60dc8 100644 --- a/urpm/sys.pm +++ b/urpm/sys.pm @@ -121,7 +121,7 @@ sub check_fs_writable () { local *_; while (<$mounts>) { (undef, our $mountpoint, undef, my $opts) = split ' '; - if ($opts =~ /\bro\b/ && $mountpoint =~ m!^(/|/usr|/s?bin)\z!) { + if ($opts =~ /(?:^|,)ro(?:,|$)/ && $mountpoint =~ m!^(/|/usr|/s?bin)\z!) { return 0; } } -- cgit v1.2.1