summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-05-03 07:29:32 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-05-03 07:29:32 +0000
commite613566694633ec89870f0284588f5f8f69c5991 (patch)
tree6d164fda98f799456534fd9da6853c0cf7568fe1 /urpm.pm
parentc4b20e7da874f6b0fa4047c599796496ddd325dc (diff)
downloadurpmi-e613566694633ec89870f0284588f5f8f69c5991.tar
urpmi-e613566694633ec89870f0284588f5f8f69c5991.tar.gz
urpmi-e613566694633ec89870f0284588f5f8f69c5991.tar.bz2
urpmi-e613566694633ec89870f0284588f5f8f69c5991.tar.xz
urpmi-e613566694633ec89870f0284588f5f8f69c5991.zip
Skip comments in /etc/fstab
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index afb8229e..05c406d9 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1781,6 +1781,7 @@ sub is_using_supermount {
#- read /etc/fstab and check for existing mount point.
open F, "/etc/fstab";
while (<F>) {
+ next if /^\s*#/;
my ($device, $mntpoint, $fstype, $options) = m|^\s*(\S+)\s+(/\S+)\s+(\S+)\s+(\S+)| or next;
$mntpoint =~ s,/+,/,g; $mntpoint =~ s,/$,,;
if ($fstype eq 'supermount') {
@@ -1801,6 +1802,7 @@ sub find_mntpoints {
#- read /etc/fstab and check for existing mount point.
open F, "/etc/fstab";
while (<F>) {
+ next if /^\s*#/;
my ($device, $mntpoint, $fstype, $options) = m|^\s*(\S+)\s+(/\S+)\s+(\S+)\s+(\S+)| or next;
$mntpoint =~ s,/+,/,g; $mntpoint =~ s,/$,,;
$fstab{$mntpoint} = 0;