diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-05-03 07:29:32 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-05-03 07:29:32 +0000 |
commit | e613566694633ec89870f0284588f5f8f69c5991 (patch) | |
tree | 6d164fda98f799456534fd9da6853c0cf7568fe1 /urpm.pm | |
parent | c4b20e7da874f6b0fa4047c599796496ddd325dc (diff) | |
download | urpmi-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.pm | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |