summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2000-06-29 18:52:18 +0000
committerMike Fulbright <msf@redhat.com>2000-06-29 18:52:18 +0000
commit401d25f26ff867c00a0c6e80a0d31b95dadd05dd (patch)
treefc24854cdabb5d3ea34e0152a6b20e1e9084a7a4 /fstab.py
parent20c05bd428b0f6e1229003e8dbf7afd7a79d4aa0 (diff)
downloadanaconda-401d25f26ff867c00a0c6e80a0d31b95dadd05dd.tar.gz
anaconda-401d25f26ff867c00a0c6e80a0d31b95dadd05dd.tar.xz
anaconda-401d25f26ff867c00a0c6e80a0d31b95dadd05dd.zip
fix for bug #12860
Diffstat (limited to 'fstab.py')
-rw-r--r--fstab.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fstab.py b/fstab.py
index bd2636315..500b31994 100644
--- a/fstab.py
+++ b/fstab.py
@@ -956,7 +956,7 @@ def readFstab (path, fstab):
if not fields: continue
- if fields[0] == "#" and fields[1][0:4] == "LOOP":
+ if fields[0] == "#" and len(fields)>4 and fields[1][0:4] == "LOOP":
device = string.lower(fields[1])
if device[len(device) - 1] == ":":
device = device[0:len(device) - 1]