summaryrefslogtreecommitdiffstats
path: root/urpm/sys.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-12-01 17:12:28 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-12-01 17:12:28 +0000
commit9d0490fbc17c2eb713c99377c794747e9e81a60c (patch)
treeed3fd28aff8f5763059bafe4908119b59458d469 /urpm/sys.pm
parent2a9a85cdabb342da9544c999501ec92a19148786 (diff)
downloadurpmi-9d0490fbc17c2eb713c99377c794747e9e81a60c.tar
urpmi-9d0490fbc17c2eb713c99377c794747e9e81a60c.tar.gz
urpmi-9d0490fbc17c2eb713c99377c794747e9e81a60c.tar.bz2
urpmi-9d0490fbc17c2eb713c99377c794747e9e81a60c.tar.xz
urpmi-9d0490fbc17c2eb713c99377c794747e9e81a60c.zip
Patch by Blino to be less liberal in what we detect in /proc/mount to figure
out if a filesystem is read-only
Diffstat (limited to 'urpm/sys.pm')
-rw-r--r--urpm/sys.pm2
1 files changed, 1 insertions, 1 deletions
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;
}
}